entitysearch

package
Version: v58.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 7 Imported by: 241

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)