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

package imagesearch

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

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

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

Index

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

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

func (AggregateOffer) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicCollectionPage Uses

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

AsBasicCollectionPage 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) 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) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer 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) AsBasicWebPage Uses

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

AsBasicWebPage is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsCollectionPage Uses

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

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

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

AsImageGallery is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageInsights Uses

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

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

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

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

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

AsNormalizedRectangle 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) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsRecognizedEntity Uses

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

AsRecognizedEntity is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsRecognizedEntityRegion Uses

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

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

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

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

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

AsTrendingImages is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsWebPage Uses

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

AsWebPage 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 Type `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 Answer Uses

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

Answer defines an answer.

func (Answer) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for Answer.

func (Answer) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicCollectionPage Uses

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

AsBasicCollectionPage is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicWebPage Uses

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

AsBasicWebPage is the BasicResponseBase implementation for Answer.

func (Answer) AsCollectionPage Uses

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

AsCollectionPage is the BasicResponseBase implementation for Answer.

func (Answer) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Answer.

func (Answer) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Answer.

func (Answer) AsImageGallery Uses

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

AsImageGallery is the BasicResponseBase implementation for Answer.

func (Answer) AsImageInsights Uses

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

AsImageInsights is the BasicResponseBase implementation for Answer.

func (Answer) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Answer.

func (Answer) AsImages Uses

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

AsImages is the BasicResponseBase implementation for Answer.

func (Answer) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Answer.

func (Answer) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Answer.

func (Answer) AsNormalizedRectangle Uses

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

AsNormalizedRectangle is the BasicResponseBase implementation for Answer.

func (Answer) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for Answer.

func (Answer) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for Answer.

func (Answer) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for Answer.

func (Answer) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for Answer.

func (Answer) AsRecognizedEntity Uses

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

AsRecognizedEntity is the BasicResponseBase implementation for Answer.

func (Answer) AsRecognizedEntityRegion Uses

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

AsRecognizedEntityRegion is the BasicResponseBase implementation for Answer.

func (Answer) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Answer.

func (Answer) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Answer.

func (Answer) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Answer.

func (Answer) AsTrendingImages Uses

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

AsTrendingImages is the BasicResponseBase implementation for Answer.

func (Answer) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for Answer.

func (Answer) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Answer.

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    Endpoint string
}

BaseClient is the base client for Imagesearch.

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 BasicAnswer Uses

type BasicAnswer interface {
    AsImages() (*Images, bool)
    AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
    AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
    AsAnswer() (*Answer, bool)
}

BasicAnswer defines an answer.

type BasicCollectionPage Uses

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

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

type BasicCreativeWork Uses

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

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

type BasicIdentifiable Uses

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

BasicIdentifiable defines the identity of a resource.

type BasicIntangible Uses

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

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

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

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

type BasicResponseBase Uses

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

BasicResponseBase response base

type BasicSearchResultsAnswer Uses

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

BasicSearchResultsAnswer defines a search result answer.

type BasicStructuredValue Uses

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

BasicStructuredValue ...

type BasicThing Uses

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

BasicThing defines a thing.

type BasicWebPage Uses

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

BasicWebPage defines a webpage that is relevant to the query.

type CollectionPage Uses

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

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

func (CollectionPage) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicCollectionPage Uses

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

AsBasicCollectionPage is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicWebPage Uses

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

AsBasicWebPage is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsCollectionPage Uses

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

AsCollectionPage is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsImageGallery Uses

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

AsImageGallery is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsImageInsights Uses

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

AsImageInsights is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsImages Uses

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

AsImages is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsNormalizedRectangle Uses

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

AsNormalizedRectangle is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsRecognizedEntity Uses

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

AsRecognizedEntity is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsRecognizedEntityRegion Uses

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

AsRecognizedEntityRegion is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsThing Uses

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

AsThing is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsTrendingImages Uses

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

AsTrendingImages is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for CollectionPage.

func (*CollectionPage) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for CollectionPage struct.

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

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

func (CreativeWork) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicCollectionPage Uses

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

AsBasicCollectionPage 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) 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) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer 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) AsBasicWebPage Uses

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

AsBasicWebPage is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsCollectionPage Uses

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

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

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

AsImageGallery is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageInsights Uses

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

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

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

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

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

AsNormalizedRectangle 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) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsRecognizedEntity Uses

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

AsRecognizedEntity is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsRecognizedEntityRegion Uses

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

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

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

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

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

AsTrendingImages is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsWebPage Uses

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

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

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

func (ErrorResponse) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicCollectionPage Uses

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

AsBasicCollectionPage 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) 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) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer 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) AsBasicWebPage Uses

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

AsBasicWebPage is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsCollectionPage Uses

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

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

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

AsImageGallery is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageInsights Uses

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

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

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

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

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

AsNormalizedRectangle 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) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsRecognizedEntity Uses

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

AsRecognizedEntity is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsRecognizedEntityRegion Uses

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

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

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

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

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

AsTrendingImages is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsWebPage Uses

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

AsWebPage 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 Freshness Uses

type Freshness string

Freshness enumerates the values for freshness.

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

func PossibleFreshnessValues Uses

func PossibleFreshnessValues() []Freshness

PossibleFreshnessValues returns an array of possible values for the Freshness const type.

type Identifiable Uses

type Identifiable struct {
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
    Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Identifiable defines the identity of a resource.

func (Identifiable) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicCollectionPage Uses

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

AsBasicCollectionPage 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) 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) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer 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) AsBasicWebPage Uses

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

AsBasicWebPage is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsCollectionPage Uses

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

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

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

AsImageGallery is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageInsights Uses

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

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

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

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

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

AsNormalizedRectangle 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) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsRecognizedEntity Uses

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

AsRecognizedEntity is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsRecognizedEntityRegion Uses

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

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

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

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

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

AsTrendingImages is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for Identifiable.

func (Identifiable) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Identifiable.

type ImageAspect Uses

type ImageAspect string

ImageAspect enumerates the values for image aspect.

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

func PossibleImageAspectValues Uses

func PossibleImageAspectValues() []ImageAspect

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

type ImageColor Uses

type ImageColor string

ImageColor enumerates the values for image color.

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

func PossibleImageColorValues Uses

func PossibleImageColorValues() []ImageColor

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

type ImageContent Uses

type ImageContent string

ImageContent enumerates the values for image content.

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

func PossibleImageContentValues Uses

func PossibleImageContentValues() []ImageContent

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

type ImageCropType Uses

type ImageCropType string

ImageCropType enumerates the values for image crop type.

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

func PossibleImageCropTypeValues Uses

func PossibleImageCropTypeValues() []ImageCropType

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

type ImageGallery Uses

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

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

func (ImageGallery) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicCollectionPage Uses

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

AsBasicCollectionPage is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicWebPage Uses

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

AsBasicWebPage is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsCollectionPage Uses

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

AsCollectionPage is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsImageGallery Uses

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

AsImageGallery is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsImageInsights Uses

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

AsImageInsights is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsImages Uses

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

AsImages is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsNormalizedRectangle Uses

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

AsNormalizedRectangle is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsRecognizedEntity Uses

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

AsRecognizedEntity is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsRecognizedEntityRegion Uses

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

AsRecognizedEntityRegion is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsThing Uses

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

AsThing is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsTrendingImages Uses

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

AsTrendingImages is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageGallery.

func (*ImageGallery) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ImageGallery struct.

type ImageInsightModule Uses

type ImageInsightModule string

ImageInsightModule enumerates the values for image insight module.

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

func PossibleImageInsightModuleValues Uses

func PossibleImageInsightModuleValues() []ImageInsightModule

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

type ImageInsights Uses

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

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

func (ImageInsights) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicCollectionPage Uses

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

AsBasicCollectionPage is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicWebPage Uses

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

AsBasicWebPage is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsCollectionPage Uses

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

AsCollectionPage is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsImageGallery Uses

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

AsImageGallery is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsImageInsights Uses

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

AsImageInsights is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsImages Uses

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

AsImages is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsNormalizedRectangle Uses

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

AsNormalizedRectangle is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsRecognizedEntity Uses

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

AsRecognizedEntity is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsRecognizedEntityRegion Uses

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

AsRecognizedEntityRegion is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsThing Uses

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

AsThing is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsTrendingImages Uses

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

AsTrendingImages is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageInsights.

type ImageInsightsImageCaption Uses

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

ImageInsightsImageCaption defines an image's caption.

type ImageLicense Uses

type ImageLicense string

ImageLicense enumerates the values for image license.

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

func PossibleImageLicenseValues Uses

func PossibleImageLicenseValues() []ImageLicense

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

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

ImageObject defines an image

func (ImageObject) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicCollectionPage Uses

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

AsBasicCollectionPage 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) 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) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer 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) AsBasicWebPage Uses

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

AsBasicWebPage is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsCollectionPage Uses

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

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

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

AsImageGallery is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageInsights Uses

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

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

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

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

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

AsNormalizedRectangle 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) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsRecognizedEntity Uses

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

AsRecognizedEntity is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsRecognizedEntityRegion Uses

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

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

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

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

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

AsTrendingImages is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsWebPage Uses

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

AsWebPage 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 ImageSize Uses

type ImageSize string

ImageSize enumerates the values for image size.

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

func PossibleImageSizeValues Uses

func PossibleImageSizeValues() []ImageSize

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

type ImageTagsModule Uses

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

ImageTagsModule defines the characteristics of content found in an image.

type ImageType Uses

type ImageType string

ImageType enumerates the values for image type.

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

func PossibleImageTypeValues Uses

func PossibleImageTypeValues() []ImageType

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

type Images Uses

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

Images defines an image answer

func (Images) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for Images.

func (Images) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for Images.

func (Images) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Images.

func (Images) AsBasicCollectionPage Uses

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

AsBasicCollectionPage is the BasicResponseBase implementation for Images.

func (Images) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Images.

func (Images) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Images.

func (Images) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Images.

func (Images) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Images.

func (Images) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for Images.

func (Images) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Images.

func (Images) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Images.

func (Images) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Images.

func (Images) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for Images.

func (Images) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Images.

func (Images) AsBasicWebPage Uses

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

AsBasicWebPage is the BasicResponseBase implementation for Images.

func (Images) AsCollectionPage Uses

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

AsCollectionPage is the BasicResponseBase implementation for Images.

func (Images) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Images.

func (Images) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Images.

func (Images) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Images.

func (Images) AsImageGallery Uses

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

AsImageGallery is the BasicResponseBase implementation for Images.

func (Images) AsImageInsights Uses

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

AsImageInsights is the BasicResponseBase implementation for Images.

func (Images) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Images.

func (Images) AsImages Uses

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

AsImages is the BasicResponseBase implementation for Images.

func (Images) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Images.

func (Images) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Images.

func (Images) AsNormalizedRectangle Uses

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

AsNormalizedRectangle is the BasicResponseBase implementation for Images.

func (Images) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for Images.

func (Images) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for Images.

func (Images) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for Images.

func (Images) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for Images.

func (Images) AsRecognizedEntity Uses

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

AsRecognizedEntity is the BasicResponseBase implementation for Images.

func (Images) AsRecognizedEntityRegion Uses

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

AsRecognizedEntityRegion is the BasicResponseBase implementation for Images.

func (Images) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Images.

func (Images) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Images.

func (Images) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Images.

func (Images) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Images.

func (Images) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Images.

func (Images) AsTrendingImages Uses

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

AsTrendingImages is the BasicResponseBase implementation for Images.

func (Images) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for Images.

func (Images) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Images.

type ImagesClient Uses

type ImagesClient struct {
    BaseClient
}

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

func NewImagesClient Uses

func NewImagesClient() ImagesClient

NewImagesClient creates an instance of the ImagesClient client.

func (ImagesClient) Details Uses

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

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

func (ImagesClient) DetailsPreparer Uses

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

DetailsPreparer prepares the Details request.

func (ImagesClient) DetailsResponder Uses

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

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

func (ImagesClient) DetailsSender Uses

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

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

func (ImagesClient) Search Uses

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

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

func (ImagesClient) SearchPreparer Uses

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

SearchPreparer prepares the Search request.

func (ImagesClient) SearchResponder Uses

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

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

func (ImagesClient) SearchSender Uses

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

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

func (ImagesClient) Trending Uses

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

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

func (ImagesClient) TrendingPreparer Uses

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

TrendingPreparer prepares the Trending request.

func (ImagesClient) TrendingResponder Uses

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

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

func (ImagesClient) TrendingSender Uses

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

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

type ImagesImageMetadata Uses

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

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

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 InsightsTag Uses

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

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

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

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

func (Intangible) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicCollectionPage Uses

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

AsBasicCollectionPage 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) 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) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer 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) AsBasicWebPage Uses

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

AsBasicWebPage is the BasicResponseBase implementation for Intangible.

func (Intangible) AsCollectionPage Uses

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

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

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

AsImageGallery is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageInsights Uses

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

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

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

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

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

AsNormalizedRectangle 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) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for Intangible.

func (Intangible) AsRecognizedEntity Uses

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

AsRecognizedEntity is the BasicResponseBase implementation for Intangible.

func (Intangible) AsRecognizedEntityRegion Uses

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

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

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

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

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

AsTrendingImages is the BasicResponseBase implementation for Intangible.

func (Intangible) AsWebPage Uses

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

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

MediaObject defines a media object.

func (MediaObject) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicCollectionPage Uses

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

AsBasicCollectionPage 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) 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) AsBasicSearchResultsAnswer Uses

func (mo MediaObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer 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) AsBasicWebPage Uses

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

AsBasicWebPage is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsCollectionPage Uses

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

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

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

AsImageGallery is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageInsights Uses

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

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

func (mo MediaObject) AsImages() (*Images, bool)

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

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

AsNormalizedRectangle 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) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsRecognizedEntity Uses

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

AsRecognizedEntity is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsRecognizedEntityRegion Uses

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

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

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

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

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

AsTrendingImages is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsWebPage Uses

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

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

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

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

func (NormalizedRectangle) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicCollectionPage Uses

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

AsBasicCollectionPage is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicWebPage Uses

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

AsBasicWebPage is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsCollectionPage Uses

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

AsCollectionPage is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsImageGallery Uses

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

AsImageGallery is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsImageInsights Uses

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

AsImageInsights is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsImages Uses

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

AsImages is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsNormalizedRectangle Uses

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

AsNormalizedRectangle is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsRecognizedEntity Uses

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

AsRecognizedEntity is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsRecognizedEntityRegion Uses

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

AsRecognizedEntityRegion is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsThing Uses

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

AsThing is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsTrendingImages Uses

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

AsTrendingImages is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for NormalizedRectangle.

type Offer Uses

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

Offer defines a merchant's offer.

func (Offer) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for Offer.

func (Offer) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicCollectionPage Uses

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

AsBasicCollectionPage is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicWebPage Uses

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

AsBasicWebPage is the BasicResponseBase implementation for Offer.

func (Offer) AsCollectionPage Uses

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

AsCollectionPage is the BasicResponseBase implementation for Offer.

func (Offer) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Offer.

func (Offer) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Offer.

func (Offer) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Offer.

func (Offer) AsImageGallery Uses

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

AsImageGallery is the BasicResponseBase implementation for Offer.

func (Offer) AsImageInsights Uses

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

AsImageInsights is the BasicResponseBase implementation for Offer.

func (Offer) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Offer.

func (Offer) AsImages Uses

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

AsImages is the BasicResponseBase implementation for Offer.

func (Offer) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Offer.

func (Offer) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Offer.

func (Offer) AsNormalizedRectangle Uses

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

AsNormalizedRectangle is the BasicResponseBase implementation for Offer.

func (Offer) AsOffer Uses

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

AsOffer is the BasicResponseBase implementation for Offer.

func (Offer) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for Offer.

func (Offer) AsPerson Uses

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

AsPerson is the BasicResponseBase implementation for Offer.

func (Offer) AsRecipe Uses

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

AsRecipe is the BasicResponseBase implementation for Offer.

func (Offer) AsRecognizedEntity Uses

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

AsRecognizedEntity is the BasicResponseBase implementation for Offer.

func (Offer) AsRecognizedEntityRegion Uses

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

AsRecognizedEntityRegion is the BasicResponseBase implementation for Offer.

func (Offer) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Offer.

func (Offer) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Offer.

func (Offer) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Offer.

func (Offer) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Offer.

func (Offer) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Offer.

func (Offer) AsTrendingImages Uses

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

AsTrendingImages is the BasicResponseBase implementation for Offer.

func (Offer) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for Offer.

func (Offer) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Offer.

type Organization Uses

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

Organization defines an organization.

func (Organization) AsAggregateOffer Uses

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

AsAggregateOffer is the BasicResponseBase implementation for Organization.

func (Organization) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicCollectionPage Uses

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

AsBasicCollectionPage is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicOffer Uses

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

AsBasicOffer is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicWebPage Uses

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

AsBasicWebPage is the BasicResponseBase implementation for Organization.

func (Organization) AsCollectionPage Uses

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

AsCollectionPage is the BasicResponseBase implementation for Organization.

func (Organization) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Organization.

func (Organization) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Organization.

func (Organization) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Organization.

func (Organization) AsImageGallery Uses

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

AsImageGallery is the BasicResponseBase implementation for Organization.

func (Organization) AsImageInsights Uses

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

AsImageInsights is the BasicResponseBase implementation for Organization.

func (Organization) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Organization.

func (Organization) AsImages Uses

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

AsImages is the BasicResponseBase implementation for Organization.

func (Organization) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Organization.

func (Organization) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Organization.

func (Organization) AsNormalizedRectangle