azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/v1.0/visualsearch Index | Files | Directories

package visualsearch

import "github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/v1.0/visualsearch"

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

Package Files

client.go images.go models.go version.go

Constants

const (
    // DefaultEndpoint is the default value for endpoint
    DefaultEndpoint = "https://api.cognitive.microsoft.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type Action Uses

type Action struct {
    // Result - READ-ONLY; The result produced in the action.
    Result *[]BasicThing `json:"result,omitempty"`
    // DisplayName - READ-ONLY; A display name for the action.
    DisplayName *string `json:"displayName,omitempty"`
    // IsTopAction - READ-ONLY; A Boolean representing whether this result is the top action.
    IsTopAction *bool `json:"isTopAction,omitempty"`
    // ServiceURL - READ-ONLY; 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 - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // DatePublished - READ-ONLY; The date on which the CreativeWork was published.
    DatePublished *string `json:"datePublished,omitempty"`
    // Text - READ-ONLY; Text content of this creative work.
    Text *string `json:"text,omitempty"`
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY; An image of the item.
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // AlternateName - READ-ONLY; An alias for the item.
    AlternateName *string `json:"alternateName,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', '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 Uses

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

AsAction is the BasicResponseBase implementation for Action.

func (Action) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for Action.

func (Action) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for Action.

func (Action) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Action.

func (Action) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Action.

func (Action) AsBasicImageAction Uses

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

AsBasicImageAction is the BasicResponseBase implementation for Action.

func (Action) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Action.

func (Action) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Action.

func (Action) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for Action.

func (Action) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Action.

func (Action) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Action.

func (Action) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for Action.

func (Action) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Action.

func (Action) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Action.

func (Action) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Action.

func (Action) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Action.

func (Action) AsImageAction Uses

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

AsImageAction is the BasicResponseBase implementation for Action.

func (Action) AsImageEntityAction Uses

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

AsImageEntityAction is the BasicResponseBase implementation for Action.

func (Action) AsImageKnowledge Uses

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

AsImageKnowledge is the BasicResponseBase implementation for Action.

func (Action) AsImageModuleAction Uses

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

AsImageModuleAction is the BasicResponseBase implementation for Action.

func (Action) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Action.

func (Action) AsImageRecipesAction Uses

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

AsImageRecipesAction is the BasicResponseBase implementation for Action.

func (Action) AsImageRelatedSearchesAction Uses

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

AsImageRelatedSearchesAction is the BasicResponseBase implementation for Action.

func (Action) AsImageShoppingSourcesAction Uses

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

AsImageShoppingSourcesAction is the BasicResponseBase implementation for Action.

func (Action) AsImageTag Uses

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

AsImageTag is the BasicResponseBase implementation for Action.

func (Action) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Action.

func (Action) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Action.

func (Action) AsNormalizedQuadrilateral Uses

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

AsNormalizedQuadrilateral is the BasicResponseBase implementation for Action.

func (Action) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for Action.

func (Action) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for Action.

func (Action) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for Action.

func (Action) AsPoint2D Uses

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

AsPoint2D is the BasicResponseBase implementation for Action.

func (Action) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for Action.

func (Action) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Action.

func (Action) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Action.

func (Action) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Action.

func (Action) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Action.

func (Action) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Action.

func (*Action) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Action struct.

type AggregateOffer Uses

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

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

AsAction is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicImageAction Uses

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

AsBasicImageAction is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageAction Uses

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

AsImageAction is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageEntityAction Uses

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

AsImageEntityAction is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageKnowledge Uses

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

AsImageKnowledge is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageModuleAction Uses

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

AsImageModuleAction is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageRecipesAction Uses

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

AsImageRecipesAction is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageRelatedSearchesAction Uses

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

AsImageRelatedSearchesAction is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageShoppingSourcesAction Uses

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

AsImageShoppingSourcesAction is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageTag Uses

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

AsImageTag is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsNormalizedQuadrilateral Uses

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

AsNormalizedQuadrilateral is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsPoint2D Uses

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

AsPoint2D is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsThing Uses

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

AsThing is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AggregateOffer.

func (*AggregateOffer) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for AggregateOffer struct.

type AggregateRating Uses

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

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

func (AggregateRating) AsAggregateRating Uses

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

AsAggregateRating is the BasicPropertiesItem implementation for AggregateRating.

func (AggregateRating) AsBasicPropertiesItem Uses

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

AsBasicPropertiesItem is the BasicPropertiesItem implementation for AggregateRating.

func (AggregateRating) AsBasicRating Uses

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

AsBasicRating is the BasicPropertiesItem implementation for AggregateRating.

func (AggregateRating) AsPropertiesItem Uses

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

AsPropertiesItem is the BasicPropertiesItem implementation for AggregateRating.

func (AggregateRating) AsRating Uses

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

AsRating is the BasicPropertiesItem implementation for AggregateRating.

func (AggregateRating) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AggregateRating.

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    Endpoint string
}

BaseClient is the base client for Visualsearch.

func New Uses

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithoutDefaults Uses

func NewWithoutDefaults(endpoint string) BaseClient

NewWithoutDefaults creates an instance of the BaseClient client.

type BasicAction Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

BasicMediaObject defines a media object.

type BasicOffer Uses

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

BasicOffer defines a merchant's offer.

type BasicPropertiesItem Uses

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

BasicPropertiesItem defines an item.

type BasicRating Uses

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

BasicRating defines a rating.

type BasicResponse Uses

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 Uses

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 Uses

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

BasicStructuredValue ...

type BasicThing Uses

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 Uses

type CreativeWork struct {
    // ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // DatePublished - READ-ONLY; The date on which the CreativeWork was published.
    DatePublished *string `json:"datePublished,omitempty"`
    // Text - READ-ONLY; Text content of this creative work.
    Text *string `json:"text,omitempty"`
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY; An image of the item.
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // AlternateName - READ-ONLY; An alias for the item.
    AlternateName *string `json:"alternateName,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', '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 Uses

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

AsAction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicImageAction Uses

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

AsBasicImageAction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageAction Uses

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

AsImageAction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageEntityAction Uses

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

AsImageEntityAction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageKnowledge Uses

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

AsImageKnowledge is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageModuleAction Uses

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

AsImageModuleAction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageRecipesAction Uses

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

AsImageRecipesAction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageRelatedSearchesAction Uses

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

AsImageRelatedSearchesAction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageShoppingSourcesAction Uses

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

AsImageShoppingSourcesAction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageTag Uses

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

AsImageTag is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsNormalizedQuadrilateral Uses

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

AsNormalizedQuadrilateral is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsPoint2D Uses

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

AsPoint2D is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsThing Uses

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

AsThing is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for CreativeWork.

func (*CreativeWork) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for CreativeWork struct.

type CropArea Uses

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 Uses

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 Uses

func PossibleCurrencyValues() []Currency

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

type Error Uses

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

Error defines the error that occurred.

type ErrorCode Uses

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 Uses

func PossibleErrorCodeValues() []ErrorCode

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

type ErrorResponse Uses

type ErrorResponse struct {
    // Errors - A list of errors that describe the reasons why the request failed.
    Errors *[]Error `json:"errors,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', '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 Uses

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

AsAction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicImageAction Uses

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

AsBasicImageAction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageAction Uses

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

AsImageAction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageEntityAction Uses

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

AsImageEntityAction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageKnowledge Uses

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

AsImageKnowledge is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageModuleAction Uses

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

AsImageModuleAction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageRecipesAction Uses

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

AsImageRecipesAction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageRelatedSearchesAction Uses

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

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageShoppingSourcesAction Uses

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

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageTag Uses

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

AsImageTag is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsNormalizedQuadrilateral Uses

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

AsNormalizedQuadrilateral is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsPoint2D Uses

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

AsPoint2D is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsThing Uses

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

AsThing is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ErrorResponse.

type ErrorSubCode Uses

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 Uses

func PossibleErrorSubCodeValues() []ErrorSubCode

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

type Filters Uses

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 Uses

type Identifiable struct {
    // ID - READ-ONLY; 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 Uses

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

AsAction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicImageAction Uses

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

AsBasicImageAction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageAction Uses

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

AsImageAction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageEntityAction Uses

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

AsImageEntityAction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageKnowledge Uses

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

AsImageKnowledge is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageModuleAction Uses

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

AsImageModuleAction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageRecipesAction Uses

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

AsImageRecipesAction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageRelatedSearchesAction Uses

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

AsImageRelatedSearchesAction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageShoppingSourcesAction Uses

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

AsImageShoppingSourcesAction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageTag Uses

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

AsImageTag is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsNormalizedQuadrilateral Uses

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

AsNormalizedQuadrilateral is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsPoint2D Uses

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

AsPoint2D is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Identifiable.

func (Identifiable) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Identifiable.

type ImageAction Uses

type ImageAction struct {
    // ActionType - READ-ONLY; A string representing the type of action.
    ActionType *string `json:"actionType,omitempty"`
    // Result - READ-ONLY; The result produced in the action.
    Result *[]BasicThing `json:"result,omitempty"`
    // DisplayName - READ-ONLY; A display name for the action.
    DisplayName *string `json:"displayName,omitempty"`
    // IsTopAction - READ-ONLY; A Boolean representing whether this result is the top action.
    IsTopAction *bool `json:"isTopAction,omitempty"`
    // ServiceURL - READ-ONLY; 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 - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // DatePublished - READ-ONLY; The date on which the CreativeWork was published.
    DatePublished *string `json:"datePublished,omitempty"`
    // Text - READ-ONLY; Text content of this creative work.
    Text *string `json:"text,omitempty"`
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY; An image of the item.
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // AlternateName - READ-ONLY; An alias for the item.
    AlternateName *string `json:"alternateName,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', '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 Uses

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

AsAction is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicImageAction Uses

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

AsBasicImageAction is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsImageAction Uses

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

AsImageAction is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsImageEntityAction Uses

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

AsImageEntityAction is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsImageKnowledge Uses

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

AsImageKnowledge is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsImageModuleAction Uses

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

AsImageModuleAction is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsImageRecipesAction Uses

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

AsImageRecipesAction is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsImageRelatedSearchesAction Uses

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

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsImageShoppingSourcesAction Uses

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

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsImageTag Uses

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

AsImageTag is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsNormalizedQuadrilateral Uses

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

AsNormalizedQuadrilateral is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsPoint2D Uses

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

AsPoint2D is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsThing Uses

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

AsThing is the BasicResponseBase implementation for ImageAction.

func (ImageAction) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageAction.

func (*ImageAction) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ImageAction struct.

type ImageEntityAction Uses

type ImageEntityAction struct {
    // ActionType - READ-ONLY; A string representing the type of action.
    ActionType *string `json:"actionType,omitempty"`
    // Result - READ-ONLY; The result produced in the action.
    Result *[]BasicThing `json:"result,omitempty"`
    // DisplayName - READ-ONLY; A display name for the action.
    DisplayName *string `json:"displayName,omitempty"`
    // IsTopAction - READ-ONLY; A Boolean representing whether this result is the top action.
    IsTopAction *bool `json:"isTopAction,omitempty"`
    // ServiceURL - READ-ONLY; 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 - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // DatePublished - READ-ONLY; The date on which the CreativeWork was published.
    DatePublished *string `json:"datePublished,omitempty"`
    // Text - READ-ONLY; Text content of this creative work.
    Text *string `json:"text,omitempty"`
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY; An image of the item.
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // AlternateName - READ-ONLY; An alias for the item.
    AlternateName *string `json:"alternateName,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', '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 Uses

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

AsAction is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicImageAction Uses

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

AsBasicImageAction is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsImageAction Uses

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

AsImageAction is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsImageEntityAction Uses

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

AsImageEntityAction is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsImageKnowledge Uses

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

AsImageKnowledge is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsImageModuleAction Uses

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

AsImageModuleAction is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsImageRecipesAction Uses

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

AsImageRecipesAction is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsImageRelatedSearchesAction Uses

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

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsImageShoppingSourcesAction Uses

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

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsImageTag Uses

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

AsImageTag is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsNormalizedQuadrilateral Uses

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

AsNormalizedQuadrilateral is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsPoint2D Uses

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

AsPoint2D is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsThing Uses

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

AsThing is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageEntityAction.

func (*ImageEntityAction) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ImageEntityAction struct.

type ImageInfo Uses

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 Uses

type ImageKnowledge struct {
    autorest.Response `json:"-"`
    // Tags - READ-ONLY; A list of visual search tags.
    Tags *[]ImageTag `json:"tags,omitempty"`
    // Image - READ-ONLY; Image object containing metadata about the requested image.
    Image *ImageObject `json:"image,omitempty"`
    // ReadLink - READ-ONLY; 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 - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', '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 Uses

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

AsAction is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicImageAction Uses

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

AsBasicImageAction is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsImageAction Uses

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

AsImageAction is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsImageEntityAction Uses

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

AsImageEntityAction is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsImageKnowledge Uses

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

AsImageKnowledge is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsImageModuleAction Uses

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

AsImageModuleAction is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsImageRecipesAction Uses

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

AsImageRecipesAction is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsImageRelatedSearchesAction Uses

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

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsImageShoppingSourcesAction Uses

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

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsImageTag Uses

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

AsImageTag is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsNormalizedQuadrilateral Uses

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

AsNormalizedQuadrilateral is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsPoint2D Uses

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

AsPoint2D is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsThing Uses

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

AsThing is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageKnowledge.

type ImageModuleAction Uses

type ImageModuleAction struct {
    // Data - READ-ONLY; A list of images.
    Data *ImagesModule `json:"data,omitempty"`
    // ActionType - READ-ONLY; A string representing the type of action.
    ActionType *string `json:"actionType,omitempty"`
    // Result - READ-ONLY; The result produced in the action.
    Result *[]BasicThing `json:"result,omitempty"`
    // DisplayName - READ-ONLY; A display name for the action.
    DisplayName *string `json:"displayName,omitempty"`
    // IsTopAction - READ-ONLY; A Boolean representing whether this result is the top action.
    IsTopAction *bool `json:"isTopAction,omitempty"`
    // ServiceURL - READ-ONLY; 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 - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // DatePublished - READ-ONLY; The date on which the CreativeWork was published.
    DatePublished *string `json:"datePublished,omitempty"`
    // Text - READ-ONLY; Text content of this creative work.
    Text *string `json:"text,omitempty"`
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY; An image of the item.
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // AlternateName - READ-ONLY; An alias for the item.
    AlternateName *string `json:"alternateName,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', '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 Uses

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

AsAction is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicImageAction Uses

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

AsBasicImageAction is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsImageAction Uses

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

AsImageAction is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsImageEntityAction Uses

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

AsImageEntityAction is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsImageKnowledge Uses

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

AsImageKnowledge is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsImageModuleAction Uses

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

AsImageModuleAction is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsImageRecipesAction Uses

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

AsImageRecipesAction is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsImageRelatedSearchesAction Uses

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

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsImageShoppingSourcesAction Uses

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

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsImageTag Uses

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

AsImageTag is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsNormalizedQuadrilateral Uses

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

AsNormalizedQuadrilateral is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsPoint2D Uses

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

AsPoint2D is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsThing Uses

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

AsThing is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageModuleAction.

func (*ImageModuleAction) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ImageModuleAction struct.

type ImageObject Uses

type ImageObject struct {
    // Thumbnail - READ-ONLY; The URL to a thumbnail of the image.
    Thumbnail *ImageObject `json:"thumbnail,omitempty"`
    // ImageInsightsToken - READ-ONLY; The token that you use in a subsequent call to 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 - READ-ONLY; A count of the number of websites where you can shop or perform other actions related to the image. For example, if the image is of an apple pie, this object includes a count of the number of websites where you can buy an apple pie. To indicate the number of offers in your UX, include badging such as a shopping cart icon that contains the count. When the user clicks on the icon, use imageInsightsToken in a subsequent Visual Search API call to get the list of shopping websites.
    InsightsMetadata *ImagesImageMetadata `json:"insightsMetadata,omitempty"`
    // ImageID - READ-ONLY; Unique Id for the image.
    ImageID *string `json:"imageId,omitempty"`
    // AccentColor - READ-ONLY; A three-byte hexadecimal number that represents the color that dominates the image. Use the color as the temporary background in your client until the image is loaded.
    AccentColor *string `json:"accentColor,omitempty"`
    // VisualWords - READ-ONLY; For internal use only.
    VisualWords *string `json:"visualWords,omitempty"`
    // ContentURL - READ-ONLY; Original URL to retrieve the source (file) for the media object (e.g., the source URL for the image).
    ContentURL *string `json:"contentUrl,omitempty"`
    // HostPageURL - READ-ONLY; URL of the page that hosts the media object.
    HostPageURL *string `json:"hostPageUrl,omitempty"`
    // ContentSize - READ-ONLY; Size of the media object content. Use format "value unit" (e.g., "1024 B").
    ContentSize *string `json:"contentSize,omitempty"`
    // EncodingFormat - READ-ONLY; Encoding format (e.g., png, gif, jpeg, etc).
    EncodingFormat *string `json:"encodingFormat,omitempty"`
    // HostPageDisplayURL - READ-ONLY; Display URL of the page that hosts the media object.
    HostPageDisplayURL *string `json:"hostPageDisplayUrl,omitempty"`
    // Width - READ-ONLY; The width of the media object, in pixels.
    Width *int32 `json:"width,omitempty"`
    // Height - READ-ONLY; The height of the media object, in pixels.
    Height *int32 `json:"height,omitempty"`
    // ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // DatePublished - READ-ONLY; The date on which the CreativeWork was published.
    DatePublished *string `json:"datePublished,omitempty"`
    // Text - READ-ONLY; Text content of this creative work.
    Text *string `json:"text,omitempty"`
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY; An image of the item.
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // AlternateName - READ-ONLY; An alias for the item.
    AlternateName *string `json:"alternateName,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', '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 Uses

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

AsAction is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicImageAction Uses

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

AsBasicImageAction is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageAction Uses

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

AsImageAction is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageEntityAction Uses

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

AsImageEntityAction is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageKnowledge Uses

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

AsImageKnowledge is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageModuleAction Uses

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

AsImageModuleAction is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageRecipesAction Uses

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

AsImageRecipesAction is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageRelatedSearchesAction Uses

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

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageShoppingSourcesAction Uses

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

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageTag Uses

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

AsImageTag is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsNormalizedQuadrilateral Uses

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

AsNormalizedQuadrilateral is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsPoint2D Uses

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

AsPoint2D is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsThing Uses

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

AsThing is the BasicResponseBase implementation for ImageObject.

func (ImageObject) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageObject.

func (*ImageObject) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ImageObject struct.

type ImageRecipesAction Uses

type ImageRecipesAction struct {
    // Data - READ-ONLY; A list of recipes related to the image.
    Data *RecipesModule `json:"data,omitempty"`
    // ActionType - READ-ONLY; A string representing the type of action.
    ActionType *string `json:"actionType,omitempty"`
    // Result - READ-ONLY; The result produced in the action.
    Result *[]BasicThing `json:"result,omitempty"`
    // DisplayName - READ-ONLY; A display name for the action.
    DisplayName *string `json:"displayName,omitempty"`
    // IsTopAction - READ-ONLY; A Boolean representing whether this result is the top action.
    IsTopAction *bool `json:"isTopAction,omitempty"`
    // ServiceURL - READ-ONLY; 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 - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // DatePublished - READ-ONLY; The date on which the CreativeWork was published.
    DatePublished *string `json:"datePublished,omitempty"`
    // Text - READ-ONLY; Text content of this creative work.
    Text *string `json:"text,omitempty"`
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY; An image of the item.
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // AlternateName - READ-ONLY; An alias for the item.
    AlternateName *string `json:"alternateName,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', '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 Uses

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

AsAction is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicImageAction Uses

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

AsBasicImageAction is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsImageAction Uses

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

AsImageAction is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsImageEntityAction Uses

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

AsImageEntityAction is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsImageKnowledge Uses

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

AsImageKnowledge is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsImageModuleAction Uses

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

AsImageModuleAction is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsImageRecipesAction Uses

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

AsImageRecipesAction is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsImageRelatedSearchesAction Uses

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

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsImageShoppingSourcesAction Uses

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

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsImageTag Uses

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

AsImageTag is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsNormalizedQuadrilateral Uses

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

AsNormalizedQuadrilateral is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsPoint2D Uses

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

AsPoint2D is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsThing Uses

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

AsThing is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageRecipesAction.

func (*ImageRecipesAction) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ImageRecipesAction struct.

type ImageRelatedSearchesAction Uses

type ImageRelatedSearchesAction struct {
    // Data - READ-ONLY; A list of queries related to the image.
    Data *RelatedSearchesModule `json:"data,omitempty"`
    // ActionType - READ-ONLY; A string representing the type of action.
    ActionType *string `json:"actionType,omitempty"`
    // Result - READ-ONLY; The result produced in the action.
    Result *[]BasicThing `json:"result,omitempty"`
    // DisplayName - READ-ONLY; A display name for the action.
    DisplayName *string `json:"displayName,omitempty"`
    // IsTopAction - READ-ONLY; A Boolean representing whether this result is the top action.
    IsTopAction *bool `json:"isTopAction,omitempty"`
    // ServiceURL - READ-ONLY; 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 - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // DatePublished - READ-ONLY; The date on which the CreativeWork was published.
    DatePublished *string `json:"datePublished,omitempty"`
    // Text - READ-ONLY; Text content of this creative work.
    Text *string `json:"text,omitempty"`
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY; An image of the item.
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // AlternateName - READ-ONLY; An alias for the item.
    AlternateName *string `json:"alternateName,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', '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 Uses

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

AsAction is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicImageAction Uses

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

AsBasicImageAction is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsImageAction Uses

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

AsImageAction is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsImageEntityAction Uses

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

AsImageEntityAction is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsImageKnowledge Uses

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

AsImageKnowledge is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsImageModuleAction Uses

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

AsImageModuleAction is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsImageRecipesAction Uses

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

AsImageRecipesAction is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsImageRelatedSearchesAction Uses

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

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsImageShoppingSourcesAction Uses

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

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsImageTag Uses

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

AsImageTag is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsNormalizedQuadrilateral Uses

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

AsNormalizedQuadrilateral is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsPoint2D Uses

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

AsPoint2D is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsThing Uses

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

AsThing is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageRelatedSearchesAction.

func (*ImageRelatedSearchesAction) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ImageRelatedSearchesAction struct.

type ImageShoppingSourcesAction Uses

type ImageShoppingSourcesAction struct {
    // Data - READ-ONLY; A list of merchants that offer items related to the image.
    Data *AggregateOffer `json:"data,omitempty"`
    // ActionType - READ-ONLY; A string representing the type of action.
    ActionType *string `json:"actionType,omitempty"`
    // Result - READ-ONLY; The result produced in the action.
    Result *[]BasicThing `json:"result,omitempty"`
    // DisplayName - READ-ONLY; A display name for the action.
    DisplayName *string `json:"displayName,omitempty"`
    // IsTopAction - READ-ONLY; A Boolean representing whether this result is the top action.
    IsTopAction *bool `json:"isTopAction,omitempty"`
    // ServiceURL - READ-ONLY; 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 - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // DatePublished - READ-ONLY; The date on which the CreativeWork was published.
    DatePublished *string `json:"datePublished,omitempty"`
    // Text - READ-ONLY; Text content of this creative work.
    Text *string `json:"text,omitempty"`
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY; An image of the item.
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // AlternateName - READ-ONLY; An alias for the item.
    AlternateName *string `json:"alternateName,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', '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 Uses

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

AsAction is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicImageAction Uses

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

AsBasicImageAction is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsImageAction Uses

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

AsImageAction is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsImageEntityAction Uses

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

AsImageEntityAction is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsImageKnowledge Uses

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

AsImageKnowledge is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsImageModuleAction Uses

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

AsImageModuleAction is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsImageRecipesAction Uses

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

AsImageRecipesAction is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsImageRelatedSearchesAction Uses

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

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsImageShoppingSourcesAction Uses

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

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsImageTag Uses

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

AsImageTag is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsNormalizedQuadrilateral Uses

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

AsNormalizedQuadrilateral is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsPoint2D Uses

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

AsPoint2D is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsThing Uses

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

AsThing is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageShoppingSourcesAction.

func (*ImageShoppingSourcesAction) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ImageShoppingSourcesAction struct.

type ImageTag Uses

type ImageTag struct {
    // DisplayName - READ-ONLY; Display name for this tag. For the default tag, the display name is empty.
    DisplayName *string `json:"displayName,omitempty"`
    // BoundingBox - READ-ONLY; The bounding box for this tag. For the default tag, there is no bounding box.
    BoundingBox *ImageTagRegion `json:"boundingBox,omitempty"`
    // Actions - READ-ONLY; 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 - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY; An image of the item.
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // AlternateName - READ-ONLY; An alias for the item.
    AlternateName *string `json:"alternateName,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', '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 Uses

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

AsAction is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicImageAction Uses

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

AsBasicImageAction is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsImageAction Uses

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

AsImageAction is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsImageEntityAction Uses

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

AsImageEntityAction is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsImageKnowledge Uses

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

AsImageKnowledge is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsImageModuleAction Uses

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

AsImageModuleAction is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsImageRecipesAction Uses

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

AsImageRecipesAction is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsImageRelatedSearchesAction Uses

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

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsImageShoppingSourcesAction Uses

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

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsImageTag Uses

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

AsImageTag is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsNormalizedQuadrilateral Uses

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

AsNormalizedQuadrilateral is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsPoint2D Uses

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

AsPoint2D is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsThing Uses

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

AsThing is the BasicResponseBase implementation for ImageTag.

func (ImageTag) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageTag.

func (*ImageTag) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ImageTag struct.

type ImageTagRegion Uses

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 Uses

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 Uses

func NewImagesClient() ImagesClient

NewImagesClient creates an instance of the ImagesClient client.

func (ImagesClient) VisualSearch Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

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

type ImagesModule Uses

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

ImagesModule defines a list of images.

type Intangible Uses

type Intangible struct {
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY; An image of the item.
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // AlternateName - READ-ONLY; An alias for the item.
    AlternateName *string `json:"alternateName,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', '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 Uses

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

AsAction is the BasicResponseBase implementation for Intangible.

func (Intangible) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicImageAction Uses

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

AsBasicImageAction is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Intangible.

func (Intangible) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Intangible.

func (Intangible) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Intangible.

func (Intangible) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageAction Uses

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

AsImageAction is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageEntityAction Uses

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

AsImageEntityAction is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageKnowledge Uses

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

AsImageKnowledge is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageModuleAction Uses

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

AsImageModuleAction is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageRecipesAction Uses

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

AsImageRecipesAction is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageRelatedSearchesAction Uses

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

AsImageRelatedSearchesAction is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageShoppingSourcesAction Uses

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

AsImageShoppingSourcesAction is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageTag Uses

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

AsImageTag is the BasicResponseBase implementation for Intangible.

func (Intangible) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Intangible.

func (Intangible) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Intangible.

func (Intangible) AsNormalizedQuadrilateral Uses

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

AsNormalizedQuadrilateral is the BasicResponseBase implementation for Intangible.

func (Intangible) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for Intangible.

func (Intangible) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for Intangible.

func (Intangible) AsPoint2D Uses

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

AsPoint2D is the BasicResponseBase implementation for Intangible.

func (Intangible) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for Intangible.

func (Intangible) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Intangible.

func (Intangible) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Intangible.

func (Intangible) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Intangible.

func (Intangible) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Intangible.

func (Intangible) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Intangible.

type ItemAvailability Uses

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 Uses

func PossibleItemAvailabilityValues() []ItemAvailability

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

type KnowledgeRequest Uses

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 Uses

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

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

AsAction is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicCreativeWork Uses

func (mo MediaObject) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicIdentifiable Uses

func (mo MediaObject) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicImageAction Uses

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

AsBasicImageAction is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicIntangible Uses

func (mo MediaObject) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicMediaObject Uses

func (mo MediaObject) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicResponse Uses

func (mo MediaObject) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicResponseBase Uses

func (mo MediaObject) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsCreativeWork Uses

func (mo MediaObject) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsErrorResponse Uses

func (mo MediaObject) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsIdentifiable Uses

func (mo MediaObject) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageAction Uses

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

AsImageAction is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageEntityAction Uses

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

AsImageEntityAction is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageKnowledge Uses

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

AsImageKnowledge is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageModuleAction Uses

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

AsImageModuleAction is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageRecipesAction Uses

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

AsImageRecipesAction is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageRelatedSearchesAction Uses

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

AsImageRelatedSearchesAction is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageShoppingSourcesAction Uses

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

AsImageShoppingSourcesAction is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageTag Uses

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

AsImageTag is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsIntangible Uses

func (mo MediaObject) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsMediaObject Uses

func (mo MediaObject) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsNormalizedQuadrilateral Uses

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

AsNormalizedQuadrilateral is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsPoint2D Uses

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

AsPoint2D is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsResponse Uses

func (mo MediaObject) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsResponseBase Uses

func (mo MediaObject) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsStructuredValue Uses

func (mo MediaObject) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsThing Uses

func (mo MediaObject) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for MediaObject.

func (MediaObject) MarshalJSON Uses

func (mo MediaObject) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MediaObject.

func (*MediaObject) UnmarshalJSON Uses

func (mo *MediaObject) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MediaObject struct.

type NormalizedQuadrilateral Uses

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 - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY; An image of the item.
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // AlternateName - READ-ONLY; An alias for the item.
    AlternateName *string `json:"alternateName,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', '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 Uses

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

AsAction is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsBasicImageAction Uses

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

AsBasicImageAction is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for NormalizedQuadrilateral.