entitysearch

package
Version: v58.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: MIT Imports: 7 Imported by: 273

Documentation

Overview

Package entitysearch implements the Azure ARM Entitysearch service API version 1.0.

The Entity Search API lets you send a search query to Bing and get back search results that include entities and places. Place results include restaurants, hotel, or other local businesses. For places, the query can specify the name of the local business or it can ask for a list (for example, restaurants near me). Entity results include persons, places, or things. Place in this context is tourist attractions, states, countries, etc.

Index

Constants

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

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

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

func Version

func Version() string

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

Types

type Airport

type Airport struct {
	// IataCode - READ-ONLY
	IataCode *string `json:"iataCode,omitempty"`
	// IcaoCode - READ-ONLY
	IcaoCode *string `json:"icaoCode,omitempty"`
	// Address - READ-ONLY; The postal address of where the entity is located
	Address *PostalAddress `json:"address,omitempty"`
	// Telephone - READ-ONLY; The entity's telephone number
	Telephone *string `json:"telephone,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// EntityPresentationInfo - READ-ONLY; Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields.
	EntityPresentationInfo *EntitiesEntityPresentationInfo `json:"entityPresentationInfo,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ContractualRules - READ-ONLY; A list of rules that you must adhere to if you display the item.
	ContractualRules *[]BasicContractualRulesContractualRule `json:"contractualRules,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeThing', 'TypeEntities', 'TypePlaces', 'TypeSearchResponse', 'TypeResponse', 'TypeSearchResultsAnswer', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypePostalAddress', 'TypePlace', 'TypeOrganization', 'TypeCreativeWork', 'TypeIntangible', 'TypeMovieTheater', 'TypeMediaObject', 'TypeCivicStructure', 'TypeLocalBusiness', 'TypeTouristAttraction', 'TypeAirport', 'TypeLicense', 'TypeStructuredValue', 'TypeEntertainmentBusiness', 'TypeFoodEstablishment', 'TypeLodgingBusiness', 'TypeRestaurant', 'TypeHotel'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Airport ...

func (Airport) AsAirport

func (a Airport) AsAirport() (*Airport, bool)

AsAirport is the BasicResponseBase implementation for Airport.

func (Airport) AsAnswer

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

AsAnswer is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicAnswer

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

AsBasicAnswer is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicCivicStructure

func (a Airport) AsBasicCivicStructure() (BasicCivicStructure, bool)

AsBasicCivicStructure is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicCreativeWork

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

AsBasicCreativeWork is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicEntertainmentBusiness

func (a Airport) AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicFoodEstablishment

func (a Airport) AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)

AsBasicFoodEstablishment is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicIdentifiable

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

AsBasicIdentifiable is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicIntangible

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

AsBasicIntangible is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicLocalBusiness

func (a Airport) AsBasicLocalBusiness() (BasicLocalBusiness, bool)

AsBasicLocalBusiness is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicLodgingBusiness

func (a Airport) AsBasicLodgingBusiness() (BasicLodgingBusiness, bool)

AsBasicLodgingBusiness is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicMediaObject

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

AsBasicMediaObject is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicPlace

func (a Airport) AsBasicPlace() (BasicPlace, bool)

AsBasicPlace is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicResponse

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

AsBasicResponse is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicResponseBase

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

AsBasicResponseBase is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicSearchResultsAnswer

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicStructuredValue

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

AsBasicStructuredValue is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicThing

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

AsBasicThing is the BasicResponseBase implementation for Airport.

func (Airport) AsCivicStructure

func (a Airport) AsCivicStructure() (*CivicStructure, bool)

AsCivicStructure is the BasicResponseBase implementation for Airport.

func (Airport) AsCreativeWork

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

AsCreativeWork is the BasicResponseBase implementation for Airport.

func (Airport) AsEntertainmentBusiness

func (a Airport) AsEntertainmentBusiness() (*EntertainmentBusiness, bool)

AsEntertainmentBusiness is the BasicResponseBase implementation for Airport.

func (Airport) AsEntities

func (a Airport) AsEntities() (*Entities, bool)

AsEntities is the BasicResponseBase implementation for Airport.

func (Airport) AsErrorResponse

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

AsErrorResponse is the BasicResponseBase implementation for Airport.

func (Airport) AsFoodEstablishment

func (a Airport) AsFoodEstablishment() (*FoodEstablishment, bool)

AsFoodEstablishment is the BasicResponseBase implementation for Airport.

func (Airport) AsHotel

func (a Airport) AsHotel() (*Hotel, bool)

AsHotel is the BasicResponseBase implementation for Airport.

func (Airport) AsIdentifiable

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

AsIdentifiable is the BasicResponseBase implementation for Airport.

func (Airport) AsImageObject

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

AsImageObject is the BasicResponseBase implementation for Airport.

func (Airport) AsIntangible

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

AsIntangible is the BasicResponseBase implementation for Airport.

func (Airport) AsLicense

func (a Airport) AsLicense() (*License, bool)

AsLicense is the BasicResponseBase implementation for Airport.

func (Airport) AsLocalBusiness

func (a Airport) AsLocalBusiness() (*LocalBusiness, bool)

AsLocalBusiness is the BasicResponseBase implementation for Airport.

func (Airport) AsLodgingBusiness

func (a Airport) AsLodgingBusiness() (*LodgingBusiness, bool)

AsLodgingBusiness is the BasicResponseBase implementation for Airport.

func (Airport) AsMediaObject

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

AsMediaObject is the BasicResponseBase implementation for Airport.

func (Airport) AsMovieTheater

func (a Airport) AsMovieTheater() (*MovieTheater, bool)

AsMovieTheater is the BasicResponseBase implementation for Airport.

func (Airport) AsOrganization

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

AsOrganization is the BasicResponseBase implementation for Airport.

func (Airport) AsPlace

func (a Airport) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for Airport.

func (Airport) AsPlaces

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

AsPlaces is the BasicResponseBase implementation for Airport.

func (Airport) AsPostalAddress

func (a Airport) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for Airport.

func (Airport) AsResponse

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

AsResponse is the BasicResponseBase implementation for Airport.

func (Airport) AsResponseBase

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

AsResponseBase is the BasicResponseBase implementation for Airport.

func (Airport) AsRestaurant

func (a Airport) AsRestaurant() (*Restaurant, bool)

AsRestaurant is the BasicResponseBase implementation for Airport.

func (Airport) AsSearchResponse

func (a Airport) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Airport.

func (Airport) AsSearchResultsAnswer

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Airport.

func (Airport) AsStructuredValue

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

AsStructuredValue is the BasicResponseBase implementation for Airport.

func (Airport) AsThing

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

AsThing is the BasicResponseBase implementation for Airport.

func (Airport) AsTouristAttraction

func (a Airport) AsTouristAttraction() (*TouristAttraction, bool)

AsTouristAttraction is the BasicResponseBase implementation for Airport.

func (Airport) MarshalJSON

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

MarshalJSON is the custom marshaler for Airport.

func (*Airport) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Airport struct.

type Answer

type Answer struct {
	// ContractualRules - READ-ONLY; A list of rules that you must adhere to if you display the item.
	ContractualRules *[]BasicContractualRulesContractualRule `json:"contractualRules,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeThing', 'TypeEntities', 'TypePlaces', 'TypeSearchResponse', 'TypeResponse', 'TypeSearchResultsAnswer', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypePostalAddress', 'TypePlace', 'TypeOrganization', 'TypeCreativeWork', 'TypeIntangible', 'TypeMovieTheater', 'TypeMediaObject', 'TypeCivicStructure', 'TypeLocalBusiness', 'TypeTouristAttraction', 'TypeAirport', 'TypeLicense', 'TypeStructuredValue', 'TypeEntertainmentBusiness', 'TypeFoodEstablishment', 'TypeLodgingBusiness', 'TypeRestaurant', 'TypeHotel'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Answer ...

func (Answer) AsAirport

func (a Answer) AsAirport() (*Airport, bool)

AsAirport is the BasicResponseBase implementation for Answer.

func (Answer) AsAnswer

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

AsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicAnswer

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

AsBasicAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicCivicStructure

func (a Answer) AsBasicCivicStructure() (BasicCivicStructure, bool)

AsBasicCivicStructure is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicCreativeWork

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

AsBasicCreativeWork is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicEntertainmentBusiness

func (a Answer) AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicFoodEstablishment

func (a Answer) AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)

AsBasicFoodEstablishment is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicIdentifiable

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

AsBasicIdentifiable is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicIntangible

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

AsBasicIntangible is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicLocalBusiness

func (a Answer) AsBasicLocalBusiness() (BasicLocalBusiness, bool)

AsBasicLocalBusiness is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicLodgingBusiness

func (a Answer) AsBasicLodgingBusiness() (BasicLodgingBusiness, bool)

AsBasicLodgingBusiness is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicMediaObject

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

AsBasicMediaObject is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicPlace

func (a Answer) AsBasicPlace() (BasicPlace, bool)

AsBasicPlace is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicResponse

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

AsBasicResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicResponseBase

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

AsBasicResponseBase is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicSearchResultsAnswer

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicStructuredValue

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

AsBasicStructuredValue is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicThing

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

AsBasicThing is the BasicResponseBase implementation for Answer.

func (Answer) AsCivicStructure

func (a Answer) AsCivicStructure() (*CivicStructure, bool)

AsCivicStructure is the BasicResponseBase implementation for Answer.

func (Answer) AsCreativeWork

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

AsCreativeWork is the BasicResponseBase implementation for Answer.

func (Answer) AsEntertainmentBusiness

func (a Answer) AsEntertainmentBusiness() (*EntertainmentBusiness, bool)

AsEntertainmentBusiness is the BasicResponseBase implementation for Answer.

func (Answer) AsEntities

func (a Answer) AsEntities() (*Entities, bool)

AsEntities is the BasicResponseBase implementation for Answer.

func (Answer) AsErrorResponse

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

AsErrorResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsFoodEstablishment

func (a Answer) AsFoodEstablishment() (*FoodEstablishment, bool)

AsFoodEstablishment is the BasicResponseBase implementation for Answer.

func (Answer) AsHotel

func (a Answer) AsHotel() (*Hotel, bool)

AsHotel is the BasicResponseBase implementation for Answer.

func (Answer) AsIdentifiable

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

AsIdentifiable is the BasicResponseBase implementation for Answer.

func (Answer) AsImageObject

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

AsImageObject is the BasicResponseBase implementation for Answer.

func (Answer) AsIntangible

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

AsIntangible is the BasicResponseBase implementation for Answer.

func (Answer) AsLicense

func (a Answer) AsLicense() (*License, bool)

AsLicense is the BasicResponseBase implementation for Answer.

func (Answer) AsLocalBusiness

func (a Answer) AsLocalBusiness() (*LocalBusiness, bool)

AsLocalBusiness is the BasicResponseBase implementation for Answer.

func (Answer) AsLodgingBusiness

func (a Answer) AsLodgingBusiness() (*LodgingBusiness, bool)

AsLodgingBusiness is the BasicResponseBase implementation for Answer.

func (Answer) AsMediaObject

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

AsMediaObject is the BasicResponseBase implementation for Answer.

func (Answer) AsMovieTheater

func (a Answer) AsMovieTheater() (*MovieTheater, bool)

AsMovieTheater is the BasicResponseBase implementation for Answer.

func (Answer) AsOrganization

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

AsOrganization is the BasicResponseBase implementation for Answer.

func (Answer) AsPlace

func (a Answer) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for Answer.

func (Answer) AsPlaces

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

AsPlaces is the BasicResponseBase implementation for Answer.

func (Answer) AsPostalAddress

func (a Answer) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for Answer.

func (Answer) AsResponse

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

AsResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsResponseBase

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

AsResponseBase is the BasicResponseBase implementation for Answer.

func (Answer) AsRestaurant

func (a Answer) AsRestaurant() (*Restaurant, bool)

AsRestaurant is the BasicResponseBase implementation for Answer.

func (Answer) AsSearchResponse

func (a Answer) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsSearchResultsAnswer

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsStructuredValue

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

AsStructuredValue is the BasicResponseBase implementation for Answer.

func (Answer) AsThing

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

AsThing is the BasicResponseBase implementation for Answer.

func (Answer) AsTouristAttraction

func (a Answer) AsTouristAttraction() (*TouristAttraction, bool)

AsTouristAttraction is the BasicResponseBase implementation for Answer.

func (Answer) MarshalJSON

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

MarshalJSON is the custom marshaler for Answer.

func (*Answer) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Answer struct.

type AnswerType

type AnswerType string

AnswerType enumerates the values for answer type.

const (
	// AnswerTypeEntities ...
	AnswerTypeEntities AnswerType = "Entities"
	// AnswerTypePlaces ...
	AnswerTypePlaces AnswerType = "Places"
)

func PossibleAnswerTypeValues

func PossibleAnswerTypeValues() []AnswerType

PossibleAnswerTypeValues returns an array of possible values for the AnswerType const type.

type BaseClient

type BaseClient struct {
	autorest.Client
	Endpoint string
}

BaseClient is the base client for Entitysearch.

func New

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithoutDefaults

func NewWithoutDefaults(endpoint string) BaseClient

NewWithoutDefaults creates an instance of the BaseClient client.

type BasicAnswer

type BasicAnswer interface {
	AsEntities() (*Entities, bool)
	AsPlaces() (*Places, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
	AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
	AsAnswer() (*Answer, bool)
}

BasicAnswer ...

type BasicCivicStructure

type BasicCivicStructure interface {
	AsAirport() (*Airport, bool)
	AsCivicStructure() (*CivicStructure, bool)
}

BasicCivicStructure ...

type BasicContractualRulesAttribution

type BasicContractualRulesAttribution interface {
	AsContractualRulesLicenseAttribution() (*ContractualRulesLicenseAttribution, bool)
	AsContractualRulesLinkAttribution() (*ContractualRulesLinkAttribution, bool)
	AsContractualRulesMediaAttribution() (*ContractualRulesMediaAttribution, bool)
	AsContractualRulesTextAttribution() (*ContractualRulesTextAttribution, bool)
	AsContractualRulesAttribution() (*ContractualRulesAttribution, bool)
}

BasicContractualRulesAttribution ...

type BasicContractualRulesContractualRule

type BasicContractualRulesContractualRule interface {
	AsContractualRulesAttribution() (*ContractualRulesAttribution, bool)
	AsBasicContractualRulesAttribution() (BasicContractualRulesAttribution, bool)
	AsContractualRulesLicenseAttribution() (*ContractualRulesLicenseAttribution, bool)
	AsContractualRulesLinkAttribution() (*ContractualRulesLinkAttribution, bool)
	AsContractualRulesMediaAttribution() (*ContractualRulesMediaAttribution, bool)
	AsContractualRulesTextAttribution() (*ContractualRulesTextAttribution, bool)
	AsContractualRulesContractualRule() (*ContractualRulesContractualRule, bool)
}

BasicContractualRulesContractualRule ...

type BasicCreativeWork

type BasicCreativeWork interface {
	AsImageObject() (*ImageObject, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsLicense() (*License, bool)
	AsCreativeWork() (*CreativeWork, bool)
}

BasicCreativeWork ...

type BasicEntertainmentBusiness

type BasicEntertainmentBusiness interface {
	AsMovieTheater() (*MovieTheater, bool)
	AsEntertainmentBusiness() (*EntertainmentBusiness, bool)
}

BasicEntertainmentBusiness ...

type BasicFoodEstablishment

type BasicFoodEstablishment interface {
	AsRestaurant() (*Restaurant, bool)
	AsFoodEstablishment() (*FoodEstablishment, bool)
}

BasicFoodEstablishment ...

type BasicIdentifiable

type BasicIdentifiable interface {
	AsImageObject() (*ImageObject, bool)
	AsThing() (*Thing, bool)
	AsBasicThing() (BasicThing, bool)
	AsEntities() (*Entities, bool)
	AsPlaces() (*Places, bool)
	AsSearchResponse() (*SearchResponse, bool)
	AsResponse() (*Response, bool)
	AsBasicResponse() (BasicResponse, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
	AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
	AsAnswer() (*Answer, bool)
	AsBasicAnswer() (BasicAnswer, bool)
	AsErrorResponse() (*ErrorResponse, bool)
	AsPostalAddress() (*PostalAddress, bool)
	AsPlace() (*Place, bool)
	AsBasicPlace() (BasicPlace, bool)
	AsOrganization() (*Organization, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsMovieTheater() (*MovieTheater, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsCivicStructure() (*CivicStructure, bool)
	AsBasicCivicStructure() (BasicCivicStructure, bool)
	AsLocalBusiness() (*LocalBusiness, bool)
	AsBasicLocalBusiness() (BasicLocalBusiness, bool)
	AsTouristAttraction() (*TouristAttraction, bool)
	AsAirport() (*Airport, bool)
	AsLicense() (*License, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsBasicStructuredValue() (BasicStructuredValue, bool)
	AsEntertainmentBusiness() (*EntertainmentBusiness, bool)
	AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)
	AsFoodEstablishment() (*FoodEstablishment, bool)
	AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)
	AsLodgingBusiness() (*LodgingBusiness, bool)
	AsBasicLodgingBusiness() (BasicLodgingBusiness, bool)
	AsRestaurant() (*Restaurant, bool)
	AsHotel() (*Hotel, bool)
	AsIdentifiable() (*Identifiable, bool)
}

BasicIdentifiable defines the identity of a resource.

type BasicIntangible

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

BasicIntangible ...

type BasicLocalBusiness

type BasicLocalBusiness interface {
	AsMovieTheater() (*MovieTheater, bool)
	AsEntertainmentBusiness() (*EntertainmentBusiness, bool)
	AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)
	AsFoodEstablishment() (*FoodEstablishment, bool)
	AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)
	AsLodgingBusiness() (*LodgingBusiness, bool)
	AsBasicLodgingBusiness() (BasicLodgingBusiness, bool)
	AsRestaurant() (*Restaurant, bool)
	AsHotel() (*Hotel, bool)
	AsLocalBusiness() (*LocalBusiness, bool)
}

BasicLocalBusiness ...

type BasicLodgingBusiness

type BasicLodgingBusiness interface {
	AsHotel() (*Hotel, bool)
	AsLodgingBusiness() (*LodgingBusiness, bool)
}

BasicLodgingBusiness ...

type BasicMediaObject

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

BasicMediaObject ...

type BasicPlace

type BasicPlace interface {
	AsMovieTheater() (*MovieTheater, bool)
	AsCivicStructure() (*CivicStructure, bool)
	AsBasicCivicStructure() (BasicCivicStructure, bool)
	AsLocalBusiness() (*LocalBusiness, bool)
	AsBasicLocalBusiness() (BasicLocalBusiness, bool)
	AsTouristAttraction() (*TouristAttraction, bool)
	AsAirport() (*Airport, bool)
	AsEntertainmentBusiness() (*EntertainmentBusiness, bool)
	AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)
	AsFoodEstablishment() (*FoodEstablishment, bool)
	AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)
	AsLodgingBusiness() (*LodgingBusiness, bool)
	AsBasicLodgingBusiness() (BasicLodgingBusiness, bool)
	AsRestaurant() (*Restaurant, bool)
	AsHotel() (*Hotel, bool)
	AsPlace() (*Place, bool)
}

BasicPlace defines information about a local entity, such as a restaurant or hotel.

type BasicResponse

type BasicResponse interface {
	AsImageObject() (*ImageObject, bool)
	AsThing() (*Thing, bool)
	AsBasicThing() (BasicThing, bool)
	AsEntities() (*Entities, bool)
	AsPlaces() (*Places, bool)
	AsSearchResponse() (*SearchResponse, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
	AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
	AsAnswer() (*Answer, bool)
	AsBasicAnswer() (BasicAnswer, bool)
	AsErrorResponse() (*ErrorResponse, bool)
	AsPostalAddress() (*PostalAddress, bool)
	AsPlace() (*Place, bool)
	AsBasicPlace() (BasicPlace, bool)
	AsOrganization() (*Organization, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsMovieTheater() (*MovieTheater, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsCivicStructure() (*CivicStructure, bool)
	AsBasicCivicStructure() (BasicCivicStructure, bool)
	AsLocalBusiness() (*LocalBusiness, bool)
	AsBasicLocalBusiness() (BasicLocalBusiness, bool)
	AsTouristAttraction() (*TouristAttraction, bool)
	AsAirport() (*Airport, bool)
	AsLicense() (*License, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsBasicStructuredValue() (BasicStructuredValue, bool)
	AsEntertainmentBusiness() (*EntertainmentBusiness, bool)
	AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)
	AsFoodEstablishment() (*FoodEstablishment, bool)
	AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)
	AsLodgingBusiness() (*LodgingBusiness, bool)
	AsBasicLodgingBusiness() (BasicLodgingBusiness, bool)
	AsRestaurant() (*Restaurant, bool)
	AsHotel() (*Hotel, bool)
	AsResponse() (*Response, bool)
}

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

type BasicResponseBase

type BasicResponseBase interface {
	AsImageObject() (*ImageObject, bool)
	AsThing() (*Thing, bool)
	AsBasicThing() (BasicThing, bool)
	AsEntities() (*Entities, bool)
	AsPlaces() (*Places, bool)
	AsSearchResponse() (*SearchResponse, bool)
	AsResponse() (*Response, bool)
	AsBasicResponse() (BasicResponse, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
	AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
	AsIdentifiable() (*Identifiable, bool)
	AsBasicIdentifiable() (BasicIdentifiable, bool)
	AsAnswer() (*Answer, bool)
	AsBasicAnswer() (BasicAnswer, bool)
	AsErrorResponse() (*ErrorResponse, bool)
	AsPostalAddress() (*PostalAddress, bool)
	AsPlace() (*Place, bool)
	AsBasicPlace() (BasicPlace, bool)
	AsOrganization() (*Organization, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsMovieTheater() (*MovieTheater, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsCivicStructure() (*CivicStructure, bool)
	AsBasicCivicStructure() (BasicCivicStructure, bool)
	AsLocalBusiness() (*LocalBusiness, bool)
	AsBasicLocalBusiness() (BasicLocalBusiness, bool)
	AsTouristAttraction() (*TouristAttraction, bool)
	AsAirport() (*Airport, bool)
	AsLicense() (*License, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsBasicStructuredValue() (BasicStructuredValue, bool)
	AsEntertainmentBusiness() (*EntertainmentBusiness, bool)
	AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)
	AsFoodEstablishment() (*FoodEstablishment, bool)
	AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)
	AsLodgingBusiness() (*LodgingBusiness, bool)
	AsBasicLodgingBusiness() (BasicLodgingBusiness, bool)
	AsRestaurant() (*Restaurant, bool)
	AsHotel() (*Hotel, bool)
	AsResponseBase() (*ResponseBase, bool)
}

BasicResponseBase ...

type BasicSearchResultsAnswer

type BasicSearchResultsAnswer interface {
	AsEntities() (*Entities, bool)
	AsPlaces() (*Places, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
}

BasicSearchResultsAnswer ...

type BasicStructuredValue

type BasicStructuredValue interface {
	AsPostalAddress() (*PostalAddress, bool)
	AsStructuredValue() (*StructuredValue, bool)
}

BasicStructuredValue ...

type BasicThing

type BasicThing interface {
	AsImageObject() (*ImageObject, bool)
	AsPostalAddress() (*PostalAddress, bool)
	AsPlace() (*Place, bool)
	AsBasicPlace() (BasicPlace, bool)
	AsOrganization() (*Organization, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsMovieTheater() (*MovieTheater, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsCivicStructure() (*CivicStructure, bool)
	AsBasicCivicStructure() (BasicCivicStructure, bool)
	AsLocalBusiness() (*LocalBusiness, bool)
	AsBasicLocalBusiness() (BasicLocalBusiness, bool)
	AsTouristAttraction() (*TouristAttraction, bool)
	AsAirport() (*Airport, bool)
	AsLicense() (*License, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsBasicStructuredValue() (BasicStructuredValue, bool)
	AsEntertainmentBusiness() (*EntertainmentBusiness, bool)
	AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)
	AsFoodEstablishment() (*FoodEstablishment, bool)
	AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)
	AsLodgingBusiness() (*LodgingBusiness, bool)
	AsBasicLodgingBusiness() (BasicLodgingBusiness, bool)
	AsRestaurant() (*Restaurant, bool)
	AsHotel() (*Hotel, bool)
	AsThing() (*Thing, bool)
}

BasicThing ...

type CivicStructure

type CivicStructure struct {
	// Address - READ-ONLY; The postal address of where the entity is located
	Address *PostalAddress `json:"address,omitempty"`
	// Telephone - READ-ONLY; The entity's telephone number
	Telephone *string `json:"telephone,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// EntityPresentationInfo - READ-ONLY; Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields.
	EntityPresentationInfo *EntitiesEntityPresentationInfo `json:"entityPresentationInfo,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ContractualRules - READ-ONLY; A list of rules that you must adhere to if you display the item.
	ContractualRules *[]BasicContractualRulesContractualRule `json:"contractualRules,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeThing', 'TypeEntities', 'TypePlaces', 'TypeSearchResponse', 'TypeResponse', 'TypeSearchResultsAnswer', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypePostalAddress', 'TypePlace', 'TypeOrganization', 'TypeCreativeWork', 'TypeIntangible', 'TypeMovieTheater', 'TypeMediaObject', 'TypeCivicStructure', 'TypeLocalBusiness', 'TypeTouristAttraction', 'TypeAirport', 'TypeLicense', 'TypeStructuredValue', 'TypeEntertainmentBusiness', 'TypeFoodEstablishment', 'TypeLodgingBusiness', 'TypeRestaurant', 'TypeHotel'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

CivicStructure ...

func (CivicStructure) AsAirport

func (cs CivicStructure) AsAirport() (*Airport, bool)

AsAirport is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsAnswer

func (cs CivicStructure) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicAnswer

func (cs CivicStructure) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicCivicStructure

func (cs CivicStructure) AsBasicCivicStructure() (BasicCivicStructure, bool)

AsBasicCivicStructure is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicCreativeWork

func (cs CivicStructure) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicEntertainmentBusiness

func (cs CivicStructure) AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicFoodEstablishment

func (cs CivicStructure) AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)

AsBasicFoodEstablishment is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicIdentifiable

func (cs CivicStructure) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicIntangible

func (cs CivicStructure) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicLocalBusiness

func (cs CivicStructure) AsBasicLocalBusiness() (BasicLocalBusiness, bool)

AsBasicLocalBusiness is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicLodgingBusiness

func (cs CivicStructure) AsBasicLodgingBusiness() (BasicLodgingBusiness, bool)

AsBasicLodgingBusiness is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicMediaObject

func (cs CivicStructure) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicPlace

func (cs CivicStructure) AsBasicPlace() (BasicPlace, bool)

AsBasicPlace is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicResponse

func (cs CivicStructure) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicResponseBase

func (cs CivicStructure) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicSearchResultsAnswer

func (cs CivicStructure) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicStructuredValue

func (cs CivicStructure) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicThing

func (cs CivicStructure) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsCivicStructure

func (cs CivicStructure) AsCivicStructure() (*CivicStructure, bool)

AsCivicStructure is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsCreativeWork

func (cs CivicStructure) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsEntertainmentBusiness

func (cs CivicStructure) AsEntertainmentBusiness() (*EntertainmentBusiness, bool)

AsEntertainmentBusiness is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsEntities

func (cs CivicStructure) AsEntities() (*Entities, bool)

AsEntities is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsErrorResponse

func (cs CivicStructure) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsFoodEstablishment

func (cs CivicStructure) AsFoodEstablishment() (*FoodEstablishment, bool)

AsFoodEstablishment is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsHotel

func (cs CivicStructure) AsHotel() (*Hotel, bool)

AsHotel is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsIdentifiable

func (cs CivicStructure) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsImageObject

func (cs CivicStructure) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsIntangible

func (cs CivicStructure) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsLicense

func (cs CivicStructure) AsLicense() (*License, bool)

AsLicense is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsLocalBusiness

func (cs CivicStructure) AsLocalBusiness() (*LocalBusiness, bool)

AsLocalBusiness is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsLodgingBusiness

func (cs CivicStructure) AsLodgingBusiness() (*LodgingBusiness, bool)

AsLodgingBusiness is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsMediaObject

func (cs CivicStructure) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsMovieTheater

func (cs CivicStructure) AsMovieTheater() (*MovieTheater, bool)

AsMovieTheater is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsOrganization

func (cs CivicStructure) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsPlace

func (cs CivicStructure) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsPlaces

func (cs CivicStructure) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsPostalAddress

func (cs CivicStructure) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsResponse

func (cs CivicStructure) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsResponseBase

func (cs CivicStructure) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsRestaurant

func (cs CivicStructure) AsRestaurant() (*Restaurant, bool)

AsRestaurant is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsSearchResponse

func (cs CivicStructure) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsSearchResultsAnswer

func (cs CivicStructure) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsStructuredValue

func (cs CivicStructure) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsThing

func (cs CivicStructure) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsTouristAttraction

func (cs CivicStructure) AsTouristAttraction() (*TouristAttraction, bool)

AsTouristAttraction is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) MarshalJSON

func (cs CivicStructure) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CivicStructure.

func (*CivicStructure) UnmarshalJSON

func (cs *CivicStructure) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CivicStructure struct.

type ContractualRulesAttribution

type ContractualRulesAttribution struct {
	// MustBeCloseToContent - READ-ONLY; A Boolean value that determines whether the contents of the rule must be placed in close proximity to the field that the rule applies to. If true, the contents must be placed in close proximity. If false, or this field does not exist, the contents may be placed at the caller's discretion.
	MustBeCloseToContent *bool `json:"mustBeCloseToContent,omitempty"`
	// TargetPropertyName - READ-ONLY; The name of the field that the rule applies to.
	TargetPropertyName *string `json:"targetPropertyName,omitempty"`
	// Type - Possible values include: 'TypeContractualRulesContractualRule', 'TypeContractualRulesAttribution', 'TypeContractualRulesLicenseAttribution', 'TypeContractualRulesLinkAttribution', 'TypeContractualRulesMediaAttribution', 'TypeContractualRulesTextAttribution'
	Type Type `json:"_type,omitempty"`
}

ContractualRulesAttribution ...

func (ContractualRulesAttribution) AsBasicContractualRulesAttribution

func (cra ContractualRulesAttribution) AsBasicContractualRulesAttribution() (BasicContractualRulesAttribution, bool)

AsBasicContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesAttribution.

func (ContractualRulesAttribution) AsBasicContractualRulesContractualRule

func (cra ContractualRulesAttribution) AsBasicContractualRulesContractualRule() (BasicContractualRulesContractualRule, bool)

AsBasicContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesAttribution.

func (ContractualRulesAttribution) AsContractualRulesAttribution

func (cra ContractualRulesAttribution) AsContractualRulesAttribution() (*ContractualRulesAttribution, bool)

AsContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesAttribution.

func (ContractualRulesAttribution) AsContractualRulesContractualRule

func (cra ContractualRulesAttribution) AsContractualRulesContractualRule() (*ContractualRulesContractualRule, bool)

AsContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesAttribution.

func (ContractualRulesAttribution) AsContractualRulesLicenseAttribution

func (cra ContractualRulesAttribution) AsContractualRulesLicenseAttribution() (*ContractualRulesLicenseAttribution, bool)

AsContractualRulesLicenseAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesAttribution.

func (ContractualRulesAttribution) AsContractualRulesLinkAttribution

func (cra ContractualRulesAttribution) AsContractualRulesLinkAttribution() (*ContractualRulesLinkAttribution, bool)

AsContractualRulesLinkAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesAttribution.

func (ContractualRulesAttribution) AsContractualRulesMediaAttribution

func (cra ContractualRulesAttribution) AsContractualRulesMediaAttribution() (*ContractualRulesMediaAttribution, bool)

AsContractualRulesMediaAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesAttribution.

func (ContractualRulesAttribution) AsContractualRulesTextAttribution

func (cra ContractualRulesAttribution) AsContractualRulesTextAttribution() (*ContractualRulesTextAttribution, bool)

AsContractualRulesTextAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesAttribution.

func (ContractualRulesAttribution) MarshalJSON

func (cra ContractualRulesAttribution) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContractualRulesAttribution.

type ContractualRulesContractualRule

type ContractualRulesContractualRule struct {
	// TargetPropertyName - READ-ONLY; The name of the field that the rule applies to.
	TargetPropertyName *string `json:"targetPropertyName,omitempty"`
	// Type - Possible values include: 'TypeContractualRulesContractualRule', 'TypeContractualRulesAttribution', 'TypeContractualRulesLicenseAttribution', 'TypeContractualRulesLinkAttribution', 'TypeContractualRulesMediaAttribution', 'TypeContractualRulesTextAttribution'
	Type Type `json:"_type,omitempty"`
}

ContractualRulesContractualRule ...

func (ContractualRulesContractualRule) AsBasicContractualRulesAttribution

func (crcr ContractualRulesContractualRule) AsBasicContractualRulesAttribution() (BasicContractualRulesAttribution, bool)

AsBasicContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesContractualRule.

func (ContractualRulesContractualRule) AsBasicContractualRulesContractualRule

func (crcr ContractualRulesContractualRule) AsBasicContractualRulesContractualRule() (BasicContractualRulesContractualRule, bool)

AsBasicContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesContractualRule.

func (ContractualRulesContractualRule) AsContractualRulesAttribution

func (crcr ContractualRulesContractualRule) AsContractualRulesAttribution() (*ContractualRulesAttribution, bool)

AsContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesContractualRule.

func (ContractualRulesContractualRule) AsContractualRulesContractualRule

func (crcr ContractualRulesContractualRule) AsContractualRulesContractualRule() (*ContractualRulesContractualRule, bool)

AsContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesContractualRule.

func (ContractualRulesContractualRule) AsContractualRulesLicenseAttribution

func (crcr ContractualRulesContractualRule) AsContractualRulesLicenseAttribution() (*ContractualRulesLicenseAttribution, bool)

AsContractualRulesLicenseAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesContractualRule.

func (ContractualRulesContractualRule) AsContractualRulesLinkAttribution

func (crcr ContractualRulesContractualRule) AsContractualRulesLinkAttribution() (*ContractualRulesLinkAttribution, bool)

AsContractualRulesLinkAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesContractualRule.

func (ContractualRulesContractualRule) AsContractualRulesMediaAttribution

func (crcr ContractualRulesContractualRule) AsContractualRulesMediaAttribution() (*ContractualRulesMediaAttribution, bool)

AsContractualRulesMediaAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesContractualRule.

func (ContractualRulesContractualRule) AsContractualRulesTextAttribution

func (crcr ContractualRulesContractualRule) AsContractualRulesTextAttribution() (*ContractualRulesTextAttribution, bool)

AsContractualRulesTextAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesContractualRule.

func (ContractualRulesContractualRule) MarshalJSON

func (crcr ContractualRulesContractualRule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContractualRulesContractualRule.

type ContractualRulesLicenseAttribution

type ContractualRulesLicenseAttribution struct {
	// License - READ-ONLY; The license under which the content may be used.
	License *License `json:"license,omitempty"`
	// LicenseNotice - READ-ONLY; The license to display next to the targeted field.
	LicenseNotice *string `json:"licenseNotice,omitempty"`
	// MustBeCloseToContent - READ-ONLY; A Boolean value that determines whether the contents of the rule must be placed in close proximity to the field that the rule applies to. If true, the contents must be placed in close proximity. If false, or this field does not exist, the contents may be placed at the caller's discretion.
	MustBeCloseToContent *bool `json:"mustBeCloseToContent,omitempty"`
	// TargetPropertyName - READ-ONLY; The name of the field that the rule applies to.
	TargetPropertyName *string `json:"targetPropertyName,omitempty"`
	// Type - Possible values include: 'TypeContractualRulesContractualRule', 'TypeContractualRulesAttribution', 'TypeContractualRulesLicenseAttribution', 'TypeContractualRulesLinkAttribution', 'TypeContractualRulesMediaAttribution', 'TypeContractualRulesTextAttribution'
	Type Type `json:"_type,omitempty"`
}

ContractualRulesLicenseAttribution defines a contractual rule for license attribution.

func (ContractualRulesLicenseAttribution) AsBasicContractualRulesAttribution

func (crla ContractualRulesLicenseAttribution) AsBasicContractualRulesAttribution() (BasicContractualRulesAttribution, bool)

AsBasicContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLicenseAttribution.

func (ContractualRulesLicenseAttribution) AsBasicContractualRulesContractualRule

func (crla ContractualRulesLicenseAttribution) AsBasicContractualRulesContractualRule() (BasicContractualRulesContractualRule, bool)

AsBasicContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesLicenseAttribution.

func (ContractualRulesLicenseAttribution) AsContractualRulesAttribution

func (crla ContractualRulesLicenseAttribution) AsContractualRulesAttribution() (*ContractualRulesAttribution, bool)

AsContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLicenseAttribution.

func (ContractualRulesLicenseAttribution) AsContractualRulesContractualRule

func (crla ContractualRulesLicenseAttribution) AsContractualRulesContractualRule() (*ContractualRulesContractualRule, bool)

AsContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesLicenseAttribution.

func (ContractualRulesLicenseAttribution) AsContractualRulesLicenseAttribution

func (crla ContractualRulesLicenseAttribution) AsContractualRulesLicenseAttribution() (*ContractualRulesLicenseAttribution, bool)

AsContractualRulesLicenseAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLicenseAttribution.

func (ContractualRulesLicenseAttribution) AsContractualRulesLinkAttribution

func (crla ContractualRulesLicenseAttribution) AsContractualRulesLinkAttribution() (*ContractualRulesLinkAttribution, bool)

AsContractualRulesLinkAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLicenseAttribution.

func (ContractualRulesLicenseAttribution) AsContractualRulesMediaAttribution

func (crla ContractualRulesLicenseAttribution) AsContractualRulesMediaAttribution() (*ContractualRulesMediaAttribution, bool)

AsContractualRulesMediaAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLicenseAttribution.

func (ContractualRulesLicenseAttribution) AsContractualRulesTextAttribution

func (crla ContractualRulesLicenseAttribution) AsContractualRulesTextAttribution() (*ContractualRulesTextAttribution, bool)

AsContractualRulesTextAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLicenseAttribution.

func (ContractualRulesLicenseAttribution) MarshalJSON

func (crla ContractualRulesLicenseAttribution) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContractualRulesLicenseAttribution.

type ContractualRulesLinkAttribution

type ContractualRulesLinkAttribution struct {
	// Text - The attribution text.
	Text *string `json:"text,omitempty"`
	// URL - The URL to the provider's website. Use text and URL to create the hyperlink.
	URL *string `json:"url,omitempty"`
	// OptionalForListDisplay - READ-ONLY; Indicates whether this provider's attribution is optional.
	OptionalForListDisplay *bool `json:"optionalForListDisplay,omitempty"`
	// MustBeCloseToContent - READ-ONLY; A Boolean value that determines whether the contents of the rule must be placed in close proximity to the field that the rule applies to. If true, the contents must be placed in close proximity. If false, or this field does not exist, the contents may be placed at the caller's discretion.
	MustBeCloseToContent *bool `json:"mustBeCloseToContent,omitempty"`
	// TargetPropertyName - READ-ONLY; The name of the field that the rule applies to.
	TargetPropertyName *string `json:"targetPropertyName,omitempty"`
	// Type - Possible values include: 'TypeContractualRulesContractualRule', 'TypeContractualRulesAttribution', 'TypeContractualRulesLicenseAttribution', 'TypeContractualRulesLinkAttribution', 'TypeContractualRulesMediaAttribution', 'TypeContractualRulesTextAttribution'
	Type Type `json:"_type,omitempty"`
}

ContractualRulesLinkAttribution defines a contractual rule for link attribution.

func (ContractualRulesLinkAttribution) AsBasicContractualRulesAttribution

func (crla ContractualRulesLinkAttribution) AsBasicContractualRulesAttribution() (BasicContractualRulesAttribution, bool)

AsBasicContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLinkAttribution.

func (ContractualRulesLinkAttribution) AsBasicContractualRulesContractualRule

func (crla ContractualRulesLinkAttribution) AsBasicContractualRulesContractualRule() (BasicContractualRulesContractualRule, bool)

AsBasicContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesLinkAttribution.

func (ContractualRulesLinkAttribution) AsContractualRulesAttribution

func (crla ContractualRulesLinkAttribution) AsContractualRulesAttribution() (*ContractualRulesAttribution, bool)

AsContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLinkAttribution.

func (ContractualRulesLinkAttribution) AsContractualRulesContractualRule

func (crla ContractualRulesLinkAttribution) AsContractualRulesContractualRule() (*ContractualRulesContractualRule, bool)

AsContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesLinkAttribution.

func (ContractualRulesLinkAttribution) AsContractualRulesLicenseAttribution

func (crla ContractualRulesLinkAttribution) AsContractualRulesLicenseAttribution() (*ContractualRulesLicenseAttribution, bool)

AsContractualRulesLicenseAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLinkAttribution.

func (ContractualRulesLinkAttribution) AsContractualRulesLinkAttribution

func (crla ContractualRulesLinkAttribution) AsContractualRulesLinkAttribution() (*ContractualRulesLinkAttribution, bool)

AsContractualRulesLinkAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLinkAttribution.

func (ContractualRulesLinkAttribution) AsContractualRulesMediaAttribution

func (crla ContractualRulesLinkAttribution) AsContractualRulesMediaAttribution() (*ContractualRulesMediaAttribution, bool)

AsContractualRulesMediaAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLinkAttribution.

func (ContractualRulesLinkAttribution) AsContractualRulesTextAttribution

func (crla ContractualRulesLinkAttribution) AsContractualRulesTextAttribution() (*ContractualRulesTextAttribution, bool)

AsContractualRulesTextAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLinkAttribution.

func (ContractualRulesLinkAttribution) MarshalJSON

func (crla ContractualRulesLinkAttribution) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContractualRulesLinkAttribution.

type ContractualRulesMediaAttribution

type ContractualRulesMediaAttribution struct {
	// URL - READ-ONLY; The URL that you use to create of hyperlink of the media content. For example, if the target is an image, you would use the URL to make the image clickable.
	URL *string `json:"url,omitempty"`
	// MustBeCloseToContent - READ-ONLY; A Boolean value that determines whether the contents of the rule must be placed in close proximity to the field that the rule applies to. If true, the contents must be placed in close proximity. If false, or this field does not exist, the contents may be placed at the caller's discretion.
	MustBeCloseToContent *bool `json:"mustBeCloseToContent,omitempty"`
	// TargetPropertyName - READ-ONLY; The name of the field that the rule applies to.
	TargetPropertyName *string `json:"targetPropertyName,omitempty"`
	// Type - Possible values include: 'TypeContractualRulesContractualRule', 'TypeContractualRulesAttribution', 'TypeContractualRulesLicenseAttribution', 'TypeContractualRulesLinkAttribution', 'TypeContractualRulesMediaAttribution', 'TypeContractualRulesTextAttribution'
	Type Type `json:"_type,omitempty"`
}

ContractualRulesMediaAttribution defines a contractual rule for media attribution.

func (ContractualRulesMediaAttribution) AsBasicContractualRulesAttribution

func (crma ContractualRulesMediaAttribution) AsBasicContractualRulesAttribution() (BasicContractualRulesAttribution, bool)

AsBasicContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesMediaAttribution.

func (ContractualRulesMediaAttribution) AsBasicContractualRulesContractualRule

func (crma ContractualRulesMediaAttribution) AsBasicContractualRulesContractualRule() (BasicContractualRulesContractualRule, bool)

AsBasicContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesMediaAttribution.

func (ContractualRulesMediaAttribution) AsContractualRulesAttribution

func (crma ContractualRulesMediaAttribution) AsContractualRulesAttribution() (*ContractualRulesAttribution, bool)

AsContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesMediaAttribution.

func (ContractualRulesMediaAttribution) AsContractualRulesContractualRule

func (crma ContractualRulesMediaAttribution) AsContractualRulesContractualRule() (*ContractualRulesContractualRule, bool)

AsContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesMediaAttribution.

func (ContractualRulesMediaAttribution) AsContractualRulesLicenseAttribution

func (crma ContractualRulesMediaAttribution) AsContractualRulesLicenseAttribution() (*ContractualRulesLicenseAttribution, bool)

AsContractualRulesLicenseAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesMediaAttribution.

func (ContractualRulesMediaAttribution) AsContractualRulesLinkAttribution

func (crma ContractualRulesMediaAttribution) AsContractualRulesLinkAttribution() (*ContractualRulesLinkAttribution, bool)

AsContractualRulesLinkAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesMediaAttribution.

func (ContractualRulesMediaAttribution) AsContractualRulesMediaAttribution

func (crma ContractualRulesMediaAttribution) AsContractualRulesMediaAttribution() (*ContractualRulesMediaAttribution, bool)

AsContractualRulesMediaAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesMediaAttribution.

func (ContractualRulesMediaAttribution) AsContractualRulesTextAttribution

func (crma ContractualRulesMediaAttribution) AsContractualRulesTextAttribution() (*ContractualRulesTextAttribution, bool)

AsContractualRulesTextAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesMediaAttribution.

func (ContractualRulesMediaAttribution) MarshalJSON

func (crma ContractualRulesMediaAttribution) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContractualRulesMediaAttribution.

type ContractualRulesTextAttribution

type ContractualRulesTextAttribution struct {
	// Text - The attribution text. Text attribution applies to the entity as a whole and should be displayed immediately following the entity presentation. If there are multiple text or link attribution rules that do not specify a target, you should concatenate them and display them using a "Data from:" label.
	Text *string `json:"text,omitempty"`
	// OptionalForListDisplay - READ-ONLY; Indicates whether this provider's attribution is optional.
	OptionalForListDisplay *bool `json:"optionalForListDisplay,omitempty"`
	// MustBeCloseToContent - READ-ONLY; A Boolean value that determines whether the contents of the rule must be placed in close proximity to the field that the rule applies to. If true, the contents must be placed in close proximity. If false, or this field does not exist, the contents may be placed at the caller's discretion.
	MustBeCloseToContent *bool `json:"mustBeCloseToContent,omitempty"`
	// TargetPropertyName - READ-ONLY; The name of the field that the rule applies to.
	TargetPropertyName *string `json:"targetPropertyName,omitempty"`
	// Type - Possible values include: 'TypeContractualRulesContractualRule', 'TypeContractualRulesAttribution', 'TypeContractualRulesLicenseAttribution', 'TypeContractualRulesLinkAttribution', 'TypeContractualRulesMediaAttribution', 'TypeContractualRulesTextAttribution'
	Type Type `json:"_type,omitempty"`
}

ContractualRulesTextAttribution defines a contractual rule for text attribution.

func (ContractualRulesTextAttribution) AsBasicContractualRulesAttribution

func (crta ContractualRulesTextAttribution) AsBasicContractualRulesAttribution() (BasicContractualRulesAttribution, bool)

AsBasicContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesTextAttribution.

func (ContractualRulesTextAttribution) AsBasicContractualRulesContractualRule

func (crta ContractualRulesTextAttribution) AsBasicContractualRulesContractualRule() (BasicContractualRulesContractualRule, bool)

AsBasicContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesTextAttribution.

func (ContractualRulesTextAttribution) AsContractualRulesAttribution

func (crta ContractualRulesTextAttribution) AsContractualRulesAttribution() (*ContractualRulesAttribution, bool)

AsContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesTextAttribution.

func (ContractualRulesTextAttribution) AsContractualRulesContractualRule

func (crta ContractualRulesTextAttribution) AsContractualRulesContractualRule() (*ContractualRulesContractualRule, bool)

AsContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesTextAttribution.

func (ContractualRulesTextAttribution) AsContractualRulesLicenseAttribution

func (crta ContractualRulesTextAttribution) AsContractualRulesLicenseAttribution() (*ContractualRulesLicenseAttribution, bool)

AsContractualRulesLicenseAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesTextAttribution.

func (ContractualRulesTextAttribution) AsContractualRulesLinkAttribution

func (crta ContractualRulesTextAttribution) AsContractualRulesLinkAttribution() (*ContractualRulesLinkAttribution, bool)

AsContractualRulesLinkAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesTextAttribution.

func (ContractualRulesTextAttribution) AsContractualRulesMediaAttribution

func (crta ContractualRulesTextAttribution) AsContractualRulesMediaAttribution() (*ContractualRulesMediaAttribution, bool)

AsContractualRulesMediaAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesTextAttribution.

func (ContractualRulesTextAttribution) AsContractualRulesTextAttribution

func (crta ContractualRulesTextAttribution) AsContractualRulesTextAttribution() (*ContractualRulesTextAttribution, bool)

AsContractualRulesTextAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesTextAttribution.

func (ContractualRulesTextAttribution) MarshalJSON

func (crta ContractualRulesTextAttribution) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContractualRulesTextAttribution.

type CreativeWork

type CreativeWork struct {
	// ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - READ-ONLY; The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// Text - READ-ONLY
	Text *string `json:"text,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// EntityPresentationInfo - READ-ONLY; Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields.
	EntityPresentationInfo *EntitiesEntityPresentationInfo `json:"entityPresentationInfo,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ContractualRules - READ-ONLY; A list of rules that you must adhere to if you display the item.
	ContractualRules *[]BasicContractualRulesContractualRule `json:"contractualRules,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeThing', 'TypeEntities', 'TypePlaces', 'TypeSearchResponse', 'TypeResponse', 'TypeSearchResultsAnswer', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypePostalAddress', 'TypePlace', 'TypeOrganization', 'TypeCreativeWork', 'TypeIntangible', 'TypeMovieTheater', 'TypeMediaObject', 'TypeCivicStructure', 'TypeLocalBusiness', 'TypeTouristAttraction', 'TypeAirport', 'TypeLicense', 'TypeStructuredValue', 'TypeEntertainmentBusiness', 'TypeFoodEstablishment', 'TypeLodgingBusiness', 'TypeRestaurant', 'TypeHotel'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

CreativeWork ...

func (CreativeWork) AsAirport

func (cw CreativeWork) AsAirport() (*Airport, bool)

AsAirport is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsAnswer

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

AsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicAnswer

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

AsBasicAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicCivicStructure

func (cw CreativeWork) AsBasicCivicStructure() (BasicCivicStructure, bool)

AsBasicCivicStructure is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicCreativeWork

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

AsBasicCreativeWork is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicEntertainmentBusiness

func (cw CreativeWork) AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicFoodEstablishment

func (cw CreativeWork) AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)

AsBasicFoodEstablishment is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicIdentifiable

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

AsBasicIdentifiable is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicIntangible

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

AsBasicIntangible is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicLocalBusiness

func (cw CreativeWork) AsBasicLocalBusiness() (BasicLocalBusiness, bool)

AsBasicLocalBusiness is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicLodgingBusiness

func (cw CreativeWork) AsBasicLodgingBusiness() (BasicLodgingBusiness, bool)

AsBasicLodgingBusiness is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicMediaObject

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

AsBasicMediaObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicPlace

func (cw CreativeWork) AsBasicPlace() (BasicPlace, bool)

AsBasicPlace is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicResponse

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

AsBasicResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicResponseBase

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

AsBasicResponseBase is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicSearchResultsAnswer

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicStructuredValue

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

AsBasicStructuredValue is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicThing

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

AsBasicThing is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsCivicStructure

func (cw CreativeWork) AsCivicStructure() (*CivicStructure, bool)

AsCivicStructure is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsCreativeWork

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

AsCreativeWork is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsEntertainmentBusiness

func (cw CreativeWork) AsEntertainmentBusiness() (*EntertainmentBusiness, bool)

AsEntertainmentBusiness is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsEntities

func (cw CreativeWork) AsEntities() (*Entities, bool)

AsEntities is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsErrorResponse

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

AsErrorResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsFoodEstablishment

func (cw CreativeWork) AsFoodEstablishment() (*FoodEstablishment, bool)

AsFoodEstablishment is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsHotel

func (cw CreativeWork) AsHotel() (*Hotel, bool)

AsHotel is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsIdentifiable

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

AsIdentifiable is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageObject

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

AsImageObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsIntangible

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

AsIntangible is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsLicense

func (cw CreativeWork) AsLicense() (*License, bool)

AsLicense is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsLocalBusiness

func (cw CreativeWork) AsLocalBusiness() (*LocalBusiness, bool)

AsLocalBusiness is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsLodgingBusiness

func (cw CreativeWork) AsLodgingBusiness() (*LodgingBusiness, bool)

AsLodgingBusiness is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsMediaObject

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

AsMediaObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsMovieTheater

func (cw CreativeWork) AsMovieTheater() (*MovieTheater, bool)

AsMovieTheater is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsOrganization

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

AsOrganization is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsPlace

func (cw CreativeWork) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsPlaces

func (cw CreativeWork) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsPostalAddress

func (cw CreativeWork) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsResponse

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

AsResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsResponseBase

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

AsResponseBase is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsRestaurant

func (cw CreativeWork) AsRestaurant() (*Restaurant, bool)

AsRestaurant is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsSearchResponse

func (cw CreativeWork) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsSearchResultsAnswer

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

AsSearchResultsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsStructuredValue

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

AsStructuredValue is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsThing

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

AsThing is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsTouristAttraction

func (cw CreativeWork) AsTouristAttraction() (*TouristAttraction, bool)

AsTouristAttraction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) MarshalJSON

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

MarshalJSON is the custom marshaler for CreativeWork.

func (*CreativeWork) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for CreativeWork struct.

type EntertainmentBusiness

type EntertainmentBusiness struct {
	// PriceRange - READ-ONLY; $$.
	PriceRange *string `json:"priceRange,omitempty"`
	// Panoramas - READ-ONLY
	Panoramas *[]ImageObject `json:"panoramas,omitempty"`
	// IsPermanentlyClosed - READ-ONLY
	IsPermanentlyClosed *bool `json:"isPermanentlyClosed,omitempty"`
	// TagLine - READ-ONLY
	TagLine *string `json:"tagLine,omitempty"`
	// Address - READ-ONLY; The postal address of where the entity is located
	Address *PostalAddress `json:"address,omitempty"`
	// Telephone - READ-ONLY; The entity's telephone number
	Telephone *string `json:"telephone,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// EntityPresentationInfo - READ-ONLY; Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields.
	EntityPresentationInfo *EntitiesEntityPresentationInfo `json:"entityPresentationInfo,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ContractualRules - READ-ONLY; A list of rules that you must adhere to if you display the item.
	ContractualRules *[]BasicContractualRulesContractualRule `json:"contractualRules,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeThing', 'TypeEntities', 'TypePlaces', 'TypeSearchResponse', 'TypeResponse', 'TypeSearchResultsAnswer', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypePostalAddress', 'TypePlace', 'TypeOrganization', 'TypeCreativeWork', 'TypeIntangible', 'TypeMovieTheater', 'TypeMediaObject', 'TypeCivicStructure', 'TypeLocalBusiness', 'TypeTouristAttraction', 'TypeAirport', 'TypeLicense', 'TypeStructuredValue', 'TypeEntertainmentBusiness', 'TypeFoodEstablishment', 'TypeLodgingBusiness', 'TypeRestaurant', 'TypeHotel'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

EntertainmentBusiness ...

func (EntertainmentBusiness) AsAirport

func (eb EntertainmentBusiness) AsAirport() (*Airport, bool)

AsAirport is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsAnswer

func (eb EntertainmentBusiness) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicAnswer

func (eb EntertainmentBusiness) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicCivicStructure

func (eb EntertainmentBusiness) AsBasicCivicStructure() (BasicCivicStructure, bool)

AsBasicCivicStructure is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicCreativeWork

func (eb EntertainmentBusiness) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicEntertainmentBusiness

func (eb EntertainmentBusiness) AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicFoodEstablishment

func (eb EntertainmentBusiness) AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)

AsBasicFoodEstablishment is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicIdentifiable

func (eb EntertainmentBusiness) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicIntangible

func (eb EntertainmentBusiness) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicLocalBusiness

func (eb EntertainmentBusiness) AsBasicLocalBusiness() (BasicLocalBusiness, bool)

AsBasicLocalBusiness is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicLodgingBusiness

func (eb EntertainmentBusiness) AsBasicLodgingBusiness() (BasicLodgingBusiness, bool)

AsBasicLodgingBusiness is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicMediaObject

func (eb EntertainmentBusiness) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicPlace

func (eb EntertainmentBusiness) AsBasicPlace() (BasicPlace, bool)

AsBasicPlace is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicResponse

func (eb EntertainmentBusiness) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicResponseBase

func (eb EntertainmentBusiness) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicSearchResultsAnswer

func (eb EntertainmentBusiness) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicStructuredValue

func (eb EntertainmentBusiness) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicThing

func (eb EntertainmentBusiness) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsCivicStructure

func (eb EntertainmentBusiness) AsCivicStructure() (*CivicStructure, bool)

AsCivicStructure is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsCreativeWork

func (eb EntertainmentBusiness) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsEntertainmentBusiness

func (eb EntertainmentBusiness) AsEntertainmentBusiness() (*EntertainmentBusiness, bool)

AsEntertainmentBusiness is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsEntities

func (eb EntertainmentBusiness) AsEntities() (*Entities, bool)

AsEntities is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsErrorResponse

func (eb EntertainmentBusiness) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsFoodEstablishment

func (eb EntertainmentBusiness) AsFoodEstablishment() (*FoodEstablishment, bool)

AsFoodEstablishment is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsHotel

func (eb EntertainmentBusiness) AsHotel() (*Hotel, bool)

AsHotel is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsIdentifiable

func (eb EntertainmentBusiness) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsImageObject

func (eb EntertainmentBusiness) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsIntangible

func (eb EntertainmentBusiness) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsLicense

func (eb EntertainmentBusiness) AsLicense() (*License, bool)

AsLicense is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsLocalBusiness

func (eb EntertainmentBusiness) AsLocalBusiness() (*LocalBusiness, bool)

AsLocalBusiness is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsLodgingBusiness

func (eb EntertainmentBusiness) AsLodgingBusiness() (*LodgingBusiness, bool)

AsLodgingBusiness is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsMediaObject

func (eb EntertainmentBusiness) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsMovieTheater

func (eb EntertainmentBusiness) AsMovieTheater() (*MovieTheater, bool)

AsMovieTheater is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsOrganization

func (eb EntertainmentBusiness) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsPlace

func (eb EntertainmentBusiness) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsPlaces

func (eb EntertainmentBusiness) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsPostalAddress

func (eb EntertainmentBusiness) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsResponse

func (eb EntertainmentBusiness) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsResponseBase

func (eb EntertainmentBusiness) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsRestaurant

func (eb EntertainmentBusiness) AsRestaurant() (*Restaurant, bool)

AsRestaurant is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsSearchResponse

func (eb EntertainmentBusiness) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsSearchResultsAnswer

func (eb EntertainmentBusiness) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsStructuredValue

func (eb EntertainmentBusiness) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsThing

func (eb EntertainmentBusiness) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsTouristAttraction

func (eb EntertainmentBusiness) AsTouristAttraction() (*TouristAttraction, bool)

AsTouristAttraction is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) MarshalJSON

func (eb EntertainmentBusiness) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EntertainmentBusiness.

func (*EntertainmentBusiness) UnmarshalJSON

func (eb *EntertainmentBusiness) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for EntertainmentBusiness struct.

type Entities

type Entities struct {
	// QueryScenario - READ-ONLY; The supported query scenario. This field is set to DominantEntity or DisambiguationItem. The field is set to DominantEntity if Bing determines that only a single entity satisfies the request. For example, a book, movie, person, or attraction. If multiple entities could satisfy the request, the field is set to DisambiguationItem. For example, if the request uses the generic title of a movie franchise, the entity's type would likely be DisambiguationItem. But, if the request specifies a specific title from the franchise, the entity's type would likely be DominantEntity. Possible values include: 'DominantEntity', 'DominantEntityWithDisambiguation', 'Disambiguation', 'List', 'ListWithPivot'
	QueryScenario EntityQueryScenario `json:"queryScenario,omitempty"`
	// Value - A list of entities.
	Value *[]BasicThing `json:"value,omitempty"`
	// QueryContext - READ-ONLY
	QueryContext *QueryContext `json:"queryContext,omitempty"`
	// ContractualRules - READ-ONLY; A list of rules that you must adhere to if you display the item.
	ContractualRules *[]BasicContractualRulesContractualRule `json:"contractualRules,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeThing', 'TypeEntities', 'TypePlaces', 'TypeSearchResponse', 'TypeResponse', 'TypeSearchResultsAnswer', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypePostalAddress', 'TypePlace', 'TypeOrganization', 'TypeCreativeWork', 'TypeIntangible', 'TypeMovieTheater', 'TypeMediaObject', 'TypeCivicStructure', 'TypeLocalBusiness', 'TypeTouristAttraction', 'TypeAirport', 'TypeLicense', 'TypeStructuredValue', 'TypeEntertainmentBusiness', 'TypeFoodEstablishment', 'TypeLodgingBusiness', 'TypeRestaurant', 'TypeHotel'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Entities defines an entity answer.

func (Entities) AsAirport

func (e Entities) AsAirport() (*Airport, bool)

AsAirport is the BasicResponseBase implementation for Entities.

func (Entities) AsAnswer

func (e Entities) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicAnswer

func (e Entities) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicCivicStructure

func (e Entities) AsBasicCivicStructure() (BasicCivicStructure, bool)

AsBasicCivicStructure is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicCreativeWork

func (e Entities) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicEntertainmentBusiness

func (e Entities) AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicFoodEstablishment

func (e Entities) AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)

AsBasicFoodEstablishment is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicIdentifiable

func (e Entities) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicIntangible

func (e Entities) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicLocalBusiness

func (e Entities) AsBasicLocalBusiness() (BasicLocalBusiness, bool)

AsBasicLocalBusiness is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicLodgingBusiness

func (e Entities) AsBasicLodgingBusiness() (BasicLodgingBusiness, bool)

AsBasicLodgingBusiness is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicMediaObject

func (e Entities) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicPlace

func (e Entities) AsBasicPlace() (BasicPlace, bool)

AsBasicPlace is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicResponse

func (e Entities) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicResponseBase

func (e Entities) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicSearchResultsAnswer

func (e Entities) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicStructuredValue

func (e Entities) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicThing

func (e Entities) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Entities.

func (Entities) AsCivicStructure

func (e Entities) AsCivicStructure() (*CivicStructure, bool)

AsCivicStructure is the BasicResponseBase implementation for Entities.

func (Entities) AsCreativeWork

func (e Entities) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Entities.

func (Entities) AsEntertainmentBusiness

func (e Entities) AsEntertainmentBusiness() (*EntertainmentBusiness, bool)

AsEntertainmentBusiness is the BasicResponseBase implementation for Entities.

func (Entities) AsEntities

func (e Entities) AsEntities() (*Entities, bool)

AsEntities is the BasicResponseBase implementation for Entities.

func (Entities) AsErrorResponse

func (e Entities) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Entities.

func (Entities) AsFoodEstablishment

func (e Entities) AsFoodEstablishment() (*FoodEstablishment, bool)

AsFoodEstablishment is the BasicResponseBase implementation for Entities.

func (Entities) AsHotel

func (e Entities) AsHotel() (*Hotel, bool)

AsHotel is the BasicResponseBase implementation for Entities.

func (Entities) AsIdentifiable

func (e Entities) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Entities.

func (Entities) AsImageObject

func (e Entities) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Entities.

func (Entities) AsIntangible

func (e Entities) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Entities.

func (Entities) AsLicense

func (e Entities) AsLicense() (*License, bool)

AsLicense is the BasicResponseBase implementation for Entities.

func (Entities) AsLocalBusiness

func (e Entities) AsLocalBusiness() (*LocalBusiness, bool)

AsLocalBusiness is the BasicResponseBase implementation for Entities.

func (Entities) AsLodgingBusiness

func (e Entities) AsLodgingBusiness() (*LodgingBusiness, bool)

AsLodgingBusiness is the BasicResponseBase implementation for Entities.

func (Entities) AsMediaObject

func (e Entities) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Entities.

func (Entities) AsMovieTheater

func (e Entities) AsMovieTheater() (*MovieTheater, bool)

AsMovieTheater is the BasicResponseBase implementation for Entities.

func (Entities) AsOrganization

func (e Entities) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for Entities.

func (Entities) AsPlace

func (e Entities) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for Entities.

func (Entities) AsPlaces

func (e Entities) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for Entities.

func (Entities) AsPostalAddress

func (e Entities) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for Entities.

func (Entities) AsResponse

func (e Entities) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Entities.

func (Entities) AsResponseBase

func (e Entities) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Entities.

func (Entities) AsRestaurant

func (e Entities) AsRestaurant() (*Restaurant, bool)

AsRestaurant is the BasicResponseBase implementation for Entities.

func (Entities) AsSearchResponse

func (e Entities) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Entities.

func (Entities) AsSearchResultsAnswer

func (e Entities) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Entities.

func (Entities) AsStructuredValue

func (e Entities) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Entities.

func (Entities) AsThing

func (e Entities) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Entities.

func (Entities) AsTouristAttraction

func (e Entities) AsTouristAttraction() (*TouristAttraction, bool)

AsTouristAttraction is the BasicResponseBase implementation for Entities.

func (Entities) MarshalJSON

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

MarshalJSON is the custom marshaler for Entities.

func (*Entities) UnmarshalJSON

func (e *Entities) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Entities struct.

type EntitiesClient

type EntitiesClient struct {
	BaseClient
}

EntitiesClient is the the Entity Search API lets you send a search query to Bing and get back search results that include entities and places. Place results include restaurants, hotel, or other local businesses. For places, the query can specify the name of the local business or it can ask for a list (for example, restaurants near me). Entity results include persons, places, or things. Place in this context is tourist attractions, states, countries, etc.

func NewEntitiesClient

func NewEntitiesClient() EntitiesClient

NewEntitiesClient creates an instance of the EntitiesClient client.

func (EntitiesClient) Search

func (client EntitiesClient) Search(ctx context.Context, query string, acceptLanguage string, pragma string, userAgent string, clientID string, clientIP string, location string, countryCode string, market string, responseFilter []AnswerType, responseFormat []ResponseFormat, safeSearch SafeSearch, setLang string) (result SearchResponse, err error)

Search sends the search request. Parameters: query - the user's search term. 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 query parameter are mutually exclusive; do not specify both. If you set this header, you must also specify the cc query parameter. Bing will use the first supported language it finds from the list, and combine that language with the cc parameter value to determine the market to return results for. If the list does not include a supported language, Bing will find the closest language and market that supports the request, and may use an aggregated or default market for the results instead of a specified one. You should use this header and the cc query parameter only if you specify multiple languages; otherwise, you should use the mkt and setLang query parameters. A user interface string is a string that's used as a label in a user interface. There are very few user interface strings in the JSON response objects. Any links in the response objects to Bing.com properties will apply the specified language. pragma - by default, Bing returns cached content, if available. To prevent Bing from returning cached content, set the Pragma header to no-cache (for example, Pragma: no-cache). userAgent - the user agent originating the request. Bing uses the user agent to provide mobile users with an optimized experience. Although optional, you are strongly encouraged to always specify this header. The user-agent should be the same string that any commonly used browser would send. For information about user agents, see [RFC 2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). 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 market. If you specify this query parameter, it must be set to us. If you set this parameter, you must also specify the Accept-Language header. Bing uses the first supported language it finds from the langu