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

package entitysearch

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

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

Package Files

client.go entities.go models.go version.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type Airport Uses

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 Uses

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

AsAirport is the BasicResponseBase implementation for Airport.

func (Airport) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicCivicStructure Uses

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

AsBasicCivicStructure is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicEntertainmentBusiness Uses

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

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicFoodEstablishment Uses

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

AsBasicFoodEstablishment is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicLocalBusiness Uses

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

AsBasicLocalBusiness is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicLodgingBusiness Uses

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

AsBasicLodgingBusiness is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicPlace Uses

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

AsBasicPlace is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for Airport.

func (Airport) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Airport.

func (Airport) AsCivicStructure Uses

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

AsCivicStructure is the BasicResponseBase implementation for Airport.

func (Airport) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Airport.

func (Airport) AsEntertainmentBusiness Uses

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

AsEntertainmentBusiness is the BasicResponseBase implementation for Airport.

func (Airport) AsEntities Uses

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

AsEntities is the BasicResponseBase implementation for Airport.

func (Airport) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Airport.

func (Airport) AsFoodEstablishment Uses

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

AsFoodEstablishment is the BasicResponseBase implementation for Airport.

func (Airport) AsHotel Uses

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

AsHotel is the BasicResponseBase implementation for Airport.

func (Airport) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Airport.

func (Airport) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Airport.

func (Airport) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Airport.

func (Airport) AsLicense Uses

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

AsLicense is the BasicResponseBase implementation for Airport.

func (Airport) AsLocalBusiness Uses

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

AsLocalBusiness is the BasicResponseBase implementation for Airport.

func (Airport) AsLodgingBusiness Uses

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

AsLodgingBusiness is the BasicResponseBase implementation for Airport.

func (Airport) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Airport.

func (Airport) AsMovieTheater Uses

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

AsMovieTheater is the BasicResponseBase implementation for Airport.

func (Airport) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for Airport.

func (Airport) AsPlace Uses

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

AsPlace is the BasicResponseBase implementation for Airport.

func (Airport) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for Airport.

func (Airport) AsPostalAddress Uses

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

AsPostalAddress is the BasicResponseBase implementation for Airport.

func (Airport) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Airport.

func (Airport) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Airport.

func (Airport) AsRestaurant Uses

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

AsRestaurant is the BasicResponseBase implementation for Airport.

func (Airport) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for Airport.

func (Airport) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Airport.

func (Airport) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Airport.

func (Airport) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Airport.

func (Airport) AsTouristAttraction Uses

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

AsTouristAttraction is the BasicResponseBase implementation for Airport.

func (Airport) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Airport.

func (*Airport) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Airport struct.

type Answer Uses

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 Uses

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

AsAirport is the BasicResponseBase implementation for Answer.

func (Answer) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicCivicStructure Uses

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

AsBasicCivicStructure is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicEntertainmentBusiness Uses

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

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicFoodEstablishment Uses

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

AsBasicFoodEstablishment is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicLocalBusiness Uses

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

AsBasicLocalBusiness is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicLodgingBusiness Uses

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

AsBasicLodgingBusiness is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicPlace Uses

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

AsBasicPlace is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Answer.

func (Answer) AsCivicStructure Uses

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

AsCivicStructure is the BasicResponseBase implementation for Answer.

func (Answer) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Answer.

func (Answer) AsEntertainmentBusiness Uses

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

AsEntertainmentBusiness is the BasicResponseBase implementation for Answer.

func (Answer) AsEntities Uses

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

AsEntities is the BasicResponseBase implementation for Answer.

func (Answer) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsFoodEstablishment Uses

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

AsFoodEstablishment is the BasicResponseBase implementation for Answer.

func (Answer) AsHotel Uses

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

AsHotel is the BasicResponseBase implementation for Answer.

func (Answer) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Answer.

func (Answer) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Answer.

func (Answer) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Answer.

func (Answer) AsLicense Uses

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

AsLicense is the BasicResponseBase implementation for Answer.

func (Answer) AsLocalBusiness Uses

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

AsLocalBusiness is the BasicResponseBase implementation for Answer.

func (Answer) AsLodgingBusiness Uses

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

AsLodgingBusiness is the BasicResponseBase implementation for Answer.

func (Answer) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Answer.

func (Answer) AsMovieTheater Uses

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

AsMovieTheater is the BasicResponseBase implementation for Answer.

func (Answer) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for Answer.

func (Answer) AsPlace Uses

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

AsPlace is the BasicResponseBase implementation for Answer.

func (Answer) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for Answer.

func (Answer) AsPostalAddress Uses

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

AsPostalAddress is the BasicResponseBase implementation for Answer.

func (Answer) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Answer.

func (Answer) AsRestaurant Uses

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

AsRestaurant is the BasicResponseBase implementation for Answer.

func (Answer) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Answer.

func (Answer) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Answer.

func (Answer) AsTouristAttraction Uses

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

AsTouristAttraction is the BasicResponseBase implementation for Answer.

func (Answer) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Answer.

func (*Answer) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Answer struct.

type AnswerType Uses

type AnswerType string

AnswerType enumerates the values for answer type.

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

func PossibleAnswerTypeValues Uses

func PossibleAnswerTypeValues() []AnswerType

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

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    Endpoint string
}

BaseClient is the base client for Entitysearch.

func New Uses

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithoutDefaults Uses

func NewWithoutDefaults(endpoint string) BaseClient

NewWithoutDefaults creates an instance of the BaseClient client.

type BasicAnswer Uses

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

BasicAnswer ...

type BasicCivicStructure Uses

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

BasicCivicStructure ...

type BasicContractualRulesAttribution Uses

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

BasicContractualRulesAttribution ...

type BasicContractualRulesContractualRule Uses

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 Uses

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

BasicCreativeWork ...

type BasicEntertainmentBusiness Uses

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

BasicEntertainmentBusiness ...

type BasicFoodEstablishment Uses

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

BasicFoodEstablishment ...

type BasicIdentifiable Uses

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 Uses

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

BasicIntangible ...

type BasicLocalBusiness Uses

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 Uses

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

BasicLodgingBusiness ...

type BasicMediaObject Uses

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

BasicMediaObject ...

type BasicPlace Uses

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 Uses

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 Uses

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 Uses

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

BasicSearchResultsAnswer ...

type BasicStructuredValue Uses

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

BasicStructuredValue ...

type BasicThing Uses

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 Uses

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 Uses

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

AsAirport is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicCivicStructure Uses

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

AsBasicCivicStructure is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicEntertainmentBusiness Uses

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

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicFoodEstablishment Uses

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

AsBasicFoodEstablishment is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicLocalBusiness Uses

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

AsBasicLocalBusiness is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicLodgingBusiness Uses

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

AsBasicLodgingBusiness is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicPlace Uses

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

AsBasicPlace is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsCivicStructure Uses

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

AsCivicStructure is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsEntertainmentBusiness Uses

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

AsEntertainmentBusiness is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsEntities Uses

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

AsEntities is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsFoodEstablishment Uses

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

AsFoodEstablishment is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsHotel Uses

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

AsHotel is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsLicense Uses

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

AsLicense is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsLocalBusiness Uses

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

AsLocalBusiness is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsLodgingBusiness Uses

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

AsLodgingBusiness is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsMovieTheater Uses

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

AsMovieTheater is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsPlace Uses

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

AsPlace is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsPostalAddress Uses

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

AsPostalAddress is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsRestaurant Uses

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

AsRestaurant is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsThing Uses

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

AsThing is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) AsTouristAttraction Uses

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

AsTouristAttraction is the BasicResponseBase implementation for CivicStructure.

func (CivicStructure) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for CivicStructure.

func (*CivicStructure) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for CivicStructure struct.

type ContractualRulesAttribution Uses

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 Uses

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

AsBasicContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesAttribution.

func (ContractualRulesAttribution) AsBasicContractualRulesContractualRule Uses

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

AsBasicContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesAttribution.

func (ContractualRulesAttribution) AsContractualRulesAttribution Uses

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

AsContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesAttribution.

func (ContractualRulesAttribution) AsContractualRulesContractualRule Uses

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

AsContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesAttribution.

func (ContractualRulesAttribution) AsContractualRulesLicenseAttribution Uses

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

AsContractualRulesLicenseAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesAttribution.

func (ContractualRulesAttribution) AsContractualRulesLinkAttribution Uses

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

AsContractualRulesLinkAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesAttribution.

func (ContractualRulesAttribution) AsContractualRulesMediaAttribution Uses

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

AsContractualRulesMediaAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesAttribution.

func (ContractualRulesAttribution) AsContractualRulesTextAttribution Uses

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

AsContractualRulesTextAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesAttribution.

func (ContractualRulesAttribution) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ContractualRulesAttribution.

type ContractualRulesContractualRule Uses

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 Uses

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

AsBasicContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesContractualRule.

func (ContractualRulesContractualRule) AsBasicContractualRulesContractualRule Uses

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

AsBasicContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesContractualRule.

func (ContractualRulesContractualRule) AsContractualRulesAttribution Uses

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

AsContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesContractualRule.

func (ContractualRulesContractualRule) AsContractualRulesContractualRule Uses

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

AsContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesContractualRule.

func (ContractualRulesContractualRule) AsContractualRulesLicenseAttribution Uses

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

AsContractualRulesLicenseAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesContractualRule.

func (ContractualRulesContractualRule) AsContractualRulesLinkAttribution Uses

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

AsContractualRulesLinkAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesContractualRule.

func (ContractualRulesContractualRule) AsContractualRulesMediaAttribution Uses

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

AsContractualRulesMediaAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesContractualRule.

func (ContractualRulesContractualRule) AsContractualRulesTextAttribution Uses

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

AsContractualRulesTextAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesContractualRule.

func (ContractualRulesContractualRule) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ContractualRulesContractualRule.

type ContractualRulesLicenseAttribution Uses

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 Uses

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

AsBasicContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLicenseAttribution.

func (ContractualRulesLicenseAttribution) AsBasicContractualRulesContractualRule Uses

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

AsBasicContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesLicenseAttribution.

func (ContractualRulesLicenseAttribution) AsContractualRulesAttribution Uses

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

AsContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLicenseAttribution.

func (ContractualRulesLicenseAttribution) AsContractualRulesContractualRule Uses

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

AsContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesLicenseAttribution.

func (ContractualRulesLicenseAttribution) AsContractualRulesLicenseAttribution Uses

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

AsContractualRulesLicenseAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLicenseAttribution.

func (ContractualRulesLicenseAttribution) AsContractualRulesLinkAttribution Uses

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

AsContractualRulesLinkAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLicenseAttribution.

func (ContractualRulesLicenseAttribution) AsContractualRulesMediaAttribution Uses

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

AsContractualRulesMediaAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLicenseAttribution.

func (ContractualRulesLicenseAttribution) AsContractualRulesTextAttribution Uses

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

AsContractualRulesTextAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLicenseAttribution.

func (ContractualRulesLicenseAttribution) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ContractualRulesLicenseAttribution.

type ContractualRulesLinkAttribution Uses

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 Uses

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

AsBasicContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLinkAttribution.

func (ContractualRulesLinkAttribution) AsBasicContractualRulesContractualRule Uses

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

AsBasicContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesLinkAttribution.

func (ContractualRulesLinkAttribution) AsContractualRulesAttribution Uses

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

AsContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLinkAttribution.

func (ContractualRulesLinkAttribution) AsContractualRulesContractualRule Uses

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

AsContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesLinkAttribution.

func (ContractualRulesLinkAttribution) AsContractualRulesLicenseAttribution Uses

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

AsContractualRulesLicenseAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLinkAttribution.

func (ContractualRulesLinkAttribution) AsContractualRulesLinkAttribution Uses

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

AsContractualRulesLinkAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLinkAttribution.

func (ContractualRulesLinkAttribution) AsContractualRulesMediaAttribution Uses

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

AsContractualRulesMediaAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLinkAttribution.

func (ContractualRulesLinkAttribution) AsContractualRulesTextAttribution Uses

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

AsContractualRulesTextAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesLinkAttribution.

func (ContractualRulesLinkAttribution) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ContractualRulesLinkAttribution.

type ContractualRulesMediaAttribution Uses

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 Uses

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

AsBasicContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesMediaAttribution.

func (ContractualRulesMediaAttribution) AsBasicContractualRulesContractualRule Uses

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

AsBasicContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesMediaAttribution.

func (ContractualRulesMediaAttribution) AsContractualRulesAttribution Uses

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

AsContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesMediaAttribution.

func (ContractualRulesMediaAttribution) AsContractualRulesContractualRule Uses

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

AsContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesMediaAttribution.

func (ContractualRulesMediaAttribution) AsContractualRulesLicenseAttribution Uses

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

AsContractualRulesLicenseAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesMediaAttribution.

func (ContractualRulesMediaAttribution) AsContractualRulesLinkAttribution Uses

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

AsContractualRulesLinkAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesMediaAttribution.

func (ContractualRulesMediaAttribution) AsContractualRulesMediaAttribution Uses

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

AsContractualRulesMediaAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesMediaAttribution.

func (ContractualRulesMediaAttribution) AsContractualRulesTextAttribution Uses

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

AsContractualRulesTextAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesMediaAttribution.

func (ContractualRulesMediaAttribution) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ContractualRulesMediaAttribution.

type ContractualRulesTextAttribution Uses

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 Uses

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

AsBasicContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesTextAttribution.

func (ContractualRulesTextAttribution) AsBasicContractualRulesContractualRule Uses

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

AsBasicContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesTextAttribution.

func (ContractualRulesTextAttribution) AsContractualRulesAttribution Uses

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

AsContractualRulesAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesTextAttribution.

func (ContractualRulesTextAttribution) AsContractualRulesContractualRule Uses

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

AsContractualRulesContractualRule is the BasicContractualRulesContractualRule implementation for ContractualRulesTextAttribution.

func (ContractualRulesTextAttribution) AsContractualRulesLicenseAttribution Uses

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

AsContractualRulesLicenseAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesTextAttribution.

func (ContractualRulesTextAttribution) AsContractualRulesLinkAttribution Uses

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

AsContractualRulesLinkAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesTextAttribution.

func (ContractualRulesTextAttribution) AsContractualRulesMediaAttribution Uses

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

AsContractualRulesMediaAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesTextAttribution.

func (ContractualRulesTextAttribution) AsContractualRulesTextAttribution Uses

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

AsContractualRulesTextAttribution is the BasicContractualRulesContractualRule implementation for ContractualRulesTextAttribution.

func (ContractualRulesTextAttribution) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ContractualRulesTextAttribution.

type CreativeWork Uses

type CreativeWork struct {
    // ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // 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 Uses

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

AsAirport is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicCivicStructure Uses

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

AsBasicCivicStructure is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicEntertainmentBusiness Uses

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

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicFoodEstablishment Uses

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

AsBasicFoodEstablishment is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicLocalBusiness Uses

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

AsBasicLocalBusiness is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicLodgingBusiness Uses

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

AsBasicLodgingBusiness is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicPlace Uses

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

AsBasicPlace is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsCivicStructure Uses

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

AsCivicStructure is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsEntertainmentBusiness Uses

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

AsEntertainmentBusiness is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsEntities Uses

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

AsEntities is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsFoodEstablishment Uses

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

AsFoodEstablishment is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsHotel Uses

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

AsHotel is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsLicense Uses

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

AsLicense is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsLocalBusiness Uses

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

AsLocalBusiness is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsLodgingBusiness Uses

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

AsLodgingBusiness is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsMovieTheater Uses

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

AsMovieTheater is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsPlace Uses

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

AsPlace is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsPostalAddress Uses

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

AsPostalAddress is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsRestaurant Uses

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

AsRestaurant is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsThing Uses

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

AsThing is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsTouristAttraction Uses

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

AsTouristAttraction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for CreativeWork.

func (*CreativeWork) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for CreativeWork struct.

type EntertainmentBusiness Uses

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 Uses

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

AsAirport is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicCivicStructure Uses

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

AsBasicCivicStructure is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicEntertainmentBusiness Uses

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

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicFoodEstablishment Uses

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

AsBasicFoodEstablishment is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicLocalBusiness Uses

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

AsBasicLocalBusiness is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicLodgingBusiness Uses

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

AsBasicLodgingBusiness is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicPlace Uses

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

AsBasicPlace is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsCivicStructure Uses

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

AsCivicStructure is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsEntertainmentBusiness Uses

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

AsEntertainmentBusiness is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsEntities Uses

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

AsEntities is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsFoodEstablishment Uses

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

AsFoodEstablishment is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsHotel Uses

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

AsHotel is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsLicense Uses

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

AsLicense is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsLocalBusiness Uses

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

AsLocalBusiness is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsLodgingBusiness Uses

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

AsLodgingBusiness is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsMovieTheater Uses

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

AsMovieTheater is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsPlace Uses

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

AsPlace is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsPostalAddress Uses

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

AsPostalAddress is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsRestaurant Uses

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

AsRestaurant is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsThing Uses

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

AsThing is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) AsTouristAttraction Uses

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

AsTouristAttraction is the BasicResponseBase implementation for EntertainmentBusiness.

func (EntertainmentBusiness) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for EntertainmentBusiness.

func (*EntertainmentBusiness) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for EntertainmentBusiness struct.

type Entities Uses

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 Uses

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

AsAirport is the BasicResponseBase implementation for Entities.

func (Entities) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicCivicStructure Uses

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

AsBasicCivicStructure is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicEntertainmentBusiness Uses

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

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicFoodEstablishment Uses

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

AsBasicFoodEstablishment is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicLocalBusiness Uses

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

AsBasicLocalBusiness is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicLodgingBusiness Uses

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

AsBasicLodgingBusiness is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicPlace Uses

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

AsBasicPlace is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for Entities.

func (Entities) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Entities.

func (Entities) AsCivicStructure Uses

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

AsCivicStructure is the BasicResponseBase implementation for Entities.

func (Entities) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Entities.

func (Entities) AsEntertainmentBusiness Uses

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

AsEntertainmentBusiness is the BasicResponseBase implementation for Entities.

func (Entities) AsEntities Uses

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

AsEntities is the BasicResponseBase implementation for Entities.

func (Entities) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Entities.

func (Entities) AsFoodEstablishment Uses

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

AsFoodEstablishment is the BasicResponseBase implementation for Entities.

func (Entities) AsHotel Uses

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

AsHotel is the BasicResponseBase implementation for Entities.

func (Entities) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Entities.

func (Entities) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Entities.

func (Entities) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Entities.

func (Entities) AsLicense Uses

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

AsLicense is the BasicResponseBase implementation for Entities.

func (Entities) AsLocalBusiness Uses

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

AsLocalBusiness is the BasicResponseBase implementation for Entities.

func (Entities) AsLodgingBusiness Uses

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

AsLodgingBusiness is the BasicResponseBase implementation for Entities.

func (Entities) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Entities.

func (Entities) AsMovieTheater Uses

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

AsMovieTheater is the BasicResponseBase implementation for Entities.

func (Entities) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for Entities.

func (Entities) AsPlace Uses

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

AsPlace is the BasicResponseBase implementation for Entities.

func (Entities) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for Entities.

func (Entities) AsPostalAddress Uses

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

AsPostalAddress is the BasicResponseBase implementation for Entities.

func (Entities) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Entities.

func (Entities) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Entities.

func (Entities) AsRestaurant Uses

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

AsRestaurant is the BasicResponseBase implementation for Entities.

func (Entities) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for Entities.

func (Entities) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Entities.

func (Entities) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Entities.

func (Entities) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Entities.

func (Entities) AsTouristAttraction Uses

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

AsTouristAttraction is the BasicResponseBase implementation for Entities.

func (Entities) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Entities.

func (*Entities) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Entities struct.

type EntitiesClient Uses

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 Uses

func NewEntitiesClient() EntitiesClient

NewEntitiesClient creates an instance of the EntitiesClient client.

func (EntitiesClient) Search Uses

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 languages list, and combine that language with the country code that you specify to determine the market to return results for. If the languages list does not include a supported language, Bing finds the closest language and market that supports the request, or it may use an aggregated or default market for the results instead of a specified one. You should use this query parameter and the Accept-Language query parameter only if you specify multiple languages; otherwise, you should use the mkt and setLang query parameters. This parameter and the mkt query parameter are mutually exclusive—do not specify both. market - the market where the results come from. You are strongly encouraged to always specify the market, if known. Specifying the market helps Bing route the request and return an appropriate and optimal response. This parameter and the cc query parameter are mutually exclusive—do not specify both. responseFilter - a comma-delimited list of answers to include in the response. If you do not specify this parameter, the response includes all search answers for which there's relevant data. responseFormat - the media type to use for the response. The following are the possible case-insensitive values: JSON, JSONLD. The default is JSON. If you specify JSONLD, the response body includes JSON-LD objects that contain the search results. safeSearch - a filter used to filter adult content. Off: Return webpages with adult text, images, or videos. Moderate: Return webpages with adult text, but not adult images or videos. Strict: Do not return webpages with adult text, images, or videos. The default is Moderate. If the request comes from a market that Bing's adult policy requires that safeSearch is set to Strict, Bing ignores the safeSearch value and uses Strict. If you use the site: query operator, there is the chance that the response may contain adult content regardless of what the safeSearch query parameter is set to. Use site: only if you are aware of the content on the site and your scenario supports the possibility of adult content. setLang - the language to use for user interface strings. Specify the language using the ISO 639-1 2-letter language code. For example, the language code for English is EN. The default is EN (English). Although optional, you should always specify the language. Typically, you set setLang to the same language specified by mkt unless the user wants the user interface strings displayed in a different language. This parameter and the Accept-Language header are mutually exclusive; do not specify both. A user interface string is a string that's used as a label in a user interface. There are few user interface strings in the JSON response objects. Also, any links to Bing.com properties in the response objects apply the specified language.

func (EntitiesClient) SearchPreparer Uses

func (client EntitiesClient) SearchPreparer(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) (*http.Request, error)

SearchPreparer prepares the Search request.

func (EntitiesClient) SearchResponder Uses

func (client EntitiesClient) SearchResponder(resp *http.Response) (result SearchResponse, err error)

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

func (EntitiesClient) SearchSender Uses

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

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

type EntitiesEntityPresentationInfo Uses

type EntitiesEntityPresentationInfo struct {
    // EntityScenario - The supported scenario. Possible values include: 'EntityScenarioDominantEntity', 'EntityScenarioDisambiguationItem', 'EntityScenarioListItem'
    EntityScenario EntityScenario `json:"entityScenario,omitempty"`
    // EntityTypeHints - READ-ONLY; A list of hints that indicate the entity's type. The list could contain a single hint such as Movie or a list of hints such as Place, LocalBusiness, Restaurant. Each successive hint in the array narrows the entity's type.
    EntityTypeHints *[]EntityType `json:"entityTypeHints,omitempty"`
    // EntityTypeDisplayHint - READ-ONLY; A display version of the entity hint. For example, if entityTypeHints is Artist, this field may be set to American Singer.
    EntityTypeDisplayHint *string `json:"entityTypeDisplayHint,omitempty"`
}

EntitiesEntityPresentationInfo defines additional information about an entity such as type hints.

type EntityQueryScenario Uses

type EntityQueryScenario string

EntityQueryScenario enumerates the values for entity query scenario.

const (
    // Disambiguation ...
    Disambiguation EntityQueryScenario = "Disambiguation"
    // DominantEntity ...
    DominantEntity EntityQueryScenario = "DominantEntity"
    // DominantEntityWithDisambiguation ...
    DominantEntityWithDisambiguation EntityQueryScenario = "DominantEntityWithDisambiguation"
    // List ...
    List EntityQueryScenario = "List"
    // ListWithPivot ...
    ListWithPivot EntityQueryScenario = "ListWithPivot"
)

func PossibleEntityQueryScenarioValues Uses

func PossibleEntityQueryScenarioValues() []EntityQueryScenario

PossibleEntityQueryScenarioValues returns an array of possible values for the EntityQueryScenario const type.

type EntityScenario Uses

type EntityScenario string

EntityScenario enumerates the values for entity scenario.

const (
    // EntityScenarioDisambiguationItem ...
    EntityScenarioDisambiguationItem EntityScenario = "DisambiguationItem"
    // EntityScenarioDominantEntity ...
    EntityScenarioDominantEntity EntityScenario = "DominantEntity"
    // EntityScenarioListItem ...
    EntityScenarioListItem EntityScenario = "ListItem"
)

func PossibleEntityScenarioValues Uses

func PossibleEntityScenarioValues() []EntityScenario

PossibleEntityScenarioValues returns an array of possible values for the EntityScenario const type.

type EntityType Uses

type EntityType string

EntityType enumerates the values for entity type.

const (
    // EntityTypeActor ...
    EntityTypeActor EntityType = "Actor"
    // EntityTypeAnimal ...
    EntityTypeAnimal EntityType = "Animal"
    // EntityTypeArtist ...
    EntityTypeArtist EntityType = "Artist"
    // EntityTypeAttorney ...
    EntityTypeAttorney EntityType = "Attorney"
    // EntityTypeAttraction ...
    EntityTypeAttraction EntityType = "Attraction"
    // EntityTypeBook ...
    EntityTypeBook EntityType = "Book"
    // EntityTypeCar ...
    EntityTypeCar EntityType = "Car"
    // EntityTypeCity ...
    EntityTypeCity EntityType = "City"
    // EntityTypeCollegeOrUniversity ...
    EntityTypeCollegeOrUniversity EntityType = "CollegeOrUniversity"
    // EntityTypeComposition ...
    EntityTypeComposition EntityType = "Composition"
    // EntityTypeContinent ...
    EntityTypeContinent EntityType = "Continent"
    // EntityTypeCountry ...
    EntityTypeCountry EntityType = "Country"
    // EntityTypeDrug ...
    EntityTypeDrug EntityType = "Drug"
    // EntityTypeEvent ...
    EntityTypeEvent EntityType = "Event"
    // EntityTypeFood ...
    EntityTypeFood EntityType = "Food"
    // EntityTypeGeneric ...
    EntityTypeGeneric EntityType = "Generic"
    // EntityTypeHotel ...
    EntityTypeHotel EntityType = "Hotel"
    // EntityTypeHouse ...
    EntityTypeHouse EntityType = "House"
    // EntityTypeLocalBusiness ...
    EntityTypeLocalBusiness EntityType = "LocalBusiness"
    // EntityTypeLocality ...
    EntityTypeLocality EntityType = "Locality"
    // EntityTypeMedia ...
    EntityTypeMedia EntityType = "Media"
    // EntityTypeMinorRegion ...
    EntityTypeMinorRegion EntityType = "MinorRegion"
    // EntityTypeMovie ...
    EntityTypeMovie EntityType = "Movie"
    // EntityTypeMusicAlbum ...
    EntityTypeMusicAlbum EntityType = "MusicAlbum"
    // EntityTypeMusicGroup ...
    EntityTypeMusicGroup EntityType = "MusicGroup"
    // EntityTypeMusicRecording ...
    EntityTypeMusicRecording EntityType = "MusicRecording"
    // EntityTypeNeighborhood ...
    EntityTypeNeighborhood EntityType = "Neighborhood"
    // EntityTypeOrganization ...
    EntityTypeOrganization EntityType = "Organization"
    // EntityTypeOther ...
    EntityTypeOther EntityType = "Other"
    // EntityTypePerson ...
    EntityTypePerson EntityType = "Person"
    // EntityTypePlace ...
    EntityTypePlace EntityType = "Place"
    // EntityTypePointOfInterest ...
    EntityTypePointOfInterest EntityType = "PointOfInterest"
    // EntityTypePostalCode ...
    EntityTypePostalCode EntityType = "PostalCode"
    // EntityTypeProduct ...
    EntityTypeProduct EntityType = "Product"
    // EntityTypeRadioStation ...
    EntityTypeRadioStation EntityType = "RadioStation"
    // EntityTypeRegion ...
    EntityTypeRegion EntityType = "Region"
    // EntityTypeRestaurant ...
    EntityTypeRestaurant EntityType = "Restaurant"
    // EntityTypeSchool ...
    EntityTypeSchool EntityType = "School"
    // EntityTypeSpeciality ...
    EntityTypeSpeciality EntityType = "Speciality"
    // EntityTypeSportsTeam ...
    EntityTypeSportsTeam EntityType = "SportsTeam"
    // EntityTypeState ...
    EntityTypeState EntityType = "State"
    // EntityTypeStreetAddress ...
    EntityTypeStreetAddress EntityType = "StreetAddress"
    // EntityTypeSubRegion ...
    EntityTypeSubRegion EntityType = "SubRegion"
    // EntityTypeTelevisionSeason ...
    EntityTypeTelevisionSeason EntityType = "TelevisionSeason"
    // EntityTypeTelevisionShow ...
    EntityTypeTelevisionShow EntityType = "TelevisionShow"
    // EntityTypeTheaterPlay ...
    EntityTypeTheaterPlay EntityType = "TheaterPlay"
    // EntityTypeTouristAttraction ...
    EntityTypeTouristAttraction EntityType = "TouristAttraction"
    // EntityTypeTravel ...
    EntityTypeTravel EntityType = "Travel"
    // EntityTypeVideoGame ...
    EntityTypeVideoGame EntityType = "VideoGame"
)

func PossibleEntityTypeValues Uses

func PossibleEntityTypeValues() []EntityType

PossibleEntityTypeValues returns an array of possible values for the EntityType const type.

type Error Uses

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

Error defines the error that occurred.

type ErrorCode Uses

type ErrorCode string

ErrorCode enumerates the values for error code.

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

func PossibleErrorCodeValues Uses

func PossibleErrorCodeValues() []ErrorCode

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

type ErrorResponse Uses

type ErrorResponse struct {
    // Errors - A list of errors that describe the reasons why the request failed.
    Errors *[]Error `json:"errors,omitempty"`
    // 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"`
}

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

func (ErrorResponse) AsAirport Uses

func (er ErrorResponse) AsAirport() (*Airport, bool)

AsAirport is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicCivicStructure Uses

func (er ErrorResponse) AsBasicCivicStructure() (BasicCivicStructure, bool)

AsBasicCivicStructure is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicEntertainmentBusiness Uses

func (er ErrorResponse) AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicFoodEstablishment Uses

func (er ErrorResponse) AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)

AsBasicFoodEstablishment is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicLocalBusiness Uses

func (er ErrorResponse) AsBasicLocalBusiness() (BasicLocalBusiness, bool)

AsBasicLocalBusiness is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicLodgingBusiness Uses

func (er ErrorResponse) AsBasicLodgingBusiness() (BasicLodgingBusiness, bool)

AsBasicLodgingBusiness is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicPlace Uses

func (er ErrorResponse) AsBasicPlace() (BasicPlace, bool)

AsBasicPlace is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsCivicStructure Uses

func (er ErrorResponse) AsCivicStructure() (*CivicStructure, bool)

AsCivicStructure is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsEntertainmentBusiness Uses

func (er ErrorResponse) AsEntertainmentBusiness() (*EntertainmentBusiness, bool)

AsEntertainmentBusiness is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsEntities Uses

func (er ErrorResponse) AsEntities() (*Entities, bool)

AsEntities is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsFoodEstablishment Uses

func (er ErrorResponse) AsFoodEstablishment() (*FoodEstablishment, bool)

AsFoodEstablishment is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsHotel Uses

func (er ErrorResponse) AsHotel() (*Hotel, bool)

AsHotel is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsLicense Uses

func (er ErrorResponse) AsLicense() (*License, bool)

AsLicense is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsLocalBusiness Uses

func (er ErrorResponse) AsLocalBusiness() (*LocalBusiness, bool)

AsLocalBusiness is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsLodgingBusiness Uses

func (er ErrorResponse) AsLodgingBusiness() (*LodgingBusiness, bool)

AsLodgingBusiness is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsMovieTheater Uses

func (er ErrorResponse) AsMovieTheater() (*MovieTheater, bool)

AsMovieTheater is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsPlace Uses

func (er ErrorResponse) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsPlaces Uses

func (er ErrorResponse) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsPostalAddress Uses

func (er ErrorResponse) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsRestaurant Uses

func (er ErrorResponse) AsRestaurant() (*Restaurant, bool)

AsRestaurant is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsSearchResponse Uses

func (er ErrorResponse) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsThing Uses

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

AsThing is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsTouristAttraction Uses

func (er ErrorResponse) AsTouristAttraction() (*TouristAttraction, bool)

AsTouristAttraction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ErrorResponse.

func (*ErrorResponse) UnmarshalJSON Uses

func (er *ErrorResponse) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ErrorResponse struct.

type ErrorSubCode Uses

type ErrorSubCode string

ErrorSubCode enumerates the values for error sub code.

const (
    // AuthorizationDisabled ...
    AuthorizationDisabled ErrorSubCode = "AuthorizationDisabled"
    // AuthorizationExpired ...
    AuthorizationExpired ErrorSubCode = "AuthorizationExpired"
    // AuthorizationMissing ...
    AuthorizationMissing ErrorSubCode = "AuthorizationMissing"
    // AuthorizationRedundancy ...
    AuthorizationRedundancy ErrorSubCode = "AuthorizationRedundancy"
    // Blocked ...
    Blocked ErrorSubCode = "Blocked"
    // HTTPNotAllowed ...
    HTTPNotAllowed ErrorSubCode = "HttpNotAllowed"
    // NotImplemented ...
    NotImplemented ErrorSubCode = "NotImplemented"
    // ParameterInvalidValue ...
    ParameterInvalidValue ErrorSubCode = "ParameterInvalidValue"
    // ParameterMissing ...
    ParameterMissing ErrorSubCode = "ParameterMissing"
    // ResourceError ...
    ResourceError ErrorSubCode = "ResourceError"
    // UnexpectedError ...
    UnexpectedError ErrorSubCode = "UnexpectedError"
)

func PossibleErrorSubCodeValues Uses

func PossibleErrorSubCodeValues() []ErrorSubCode

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

type FoodEstablishment Uses

type FoodEstablishment 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"`
}

FoodEstablishment ...

func (FoodEstablishment) AsAirport Uses

func (fe FoodEstablishment) AsAirport() (*Airport, bool)

AsAirport is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsAnswer Uses

func (fe FoodEstablishment) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsBasicAnswer Uses

func (fe FoodEstablishment) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsBasicCivicStructure Uses

func (fe FoodEstablishment) AsBasicCivicStructure() (BasicCivicStructure, bool)

AsBasicCivicStructure is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsBasicCreativeWork Uses

func (fe FoodEstablishment) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsBasicEntertainmentBusiness Uses

func (fe FoodEstablishment) AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsBasicFoodEstablishment Uses

func (fe FoodEstablishment) AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)

AsBasicFoodEstablishment is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsBasicIdentifiable Uses

func (fe FoodEstablishment) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsBasicIntangible Uses

func (fe FoodEstablishment) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsBasicLocalBusiness Uses

func (fe FoodEstablishment) AsBasicLocalBusiness() (BasicLocalBusiness, bool)

AsBasicLocalBusiness is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsBasicLodgingBusiness Uses

func (fe FoodEstablishment) AsBasicLodgingBusiness() (BasicLodgingBusiness, bool)

AsBasicLodgingBusiness is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsBasicMediaObject Uses

func (fe FoodEstablishment) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsBasicPlace Uses

func (fe FoodEstablishment) AsBasicPlace() (BasicPlace, bool)

AsBasicPlace is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsBasicResponse Uses

func (fe FoodEstablishment) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsBasicResponseBase Uses

func (fe FoodEstablishment) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsBasicSearchResultsAnswer Uses

func (fe FoodEstablishment) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsBasicStructuredValue Uses

func (fe FoodEstablishment) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsBasicThing Uses

func (fe FoodEstablishment) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsCivicStructure Uses

func (fe FoodEstablishment) AsCivicStructure() (*CivicStructure, bool)

AsCivicStructure is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsCreativeWork Uses

func (fe FoodEstablishment) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsEntertainmentBusiness Uses

func (fe FoodEstablishment) AsEntertainmentBusiness() (*EntertainmentBusiness, bool)

AsEntertainmentBusiness is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsEntities Uses

func (fe FoodEstablishment) AsEntities() (*Entities, bool)

AsEntities is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsErrorResponse Uses

func (fe FoodEstablishment) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsFoodEstablishment Uses

func (fe FoodEstablishment) AsFoodEstablishment() (*FoodEstablishment, bool)

AsFoodEstablishment is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsHotel Uses

func (fe FoodEstablishment) AsHotel() (*Hotel, bool)

AsHotel is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsIdentifiable Uses

func (fe FoodEstablishment) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsImageObject Uses

func (fe FoodEstablishment) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsIntangible Uses

func (fe FoodEstablishment) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsLicense Uses

func (fe FoodEstablishment) AsLicense() (*License, bool)

AsLicense is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsLocalBusiness Uses

func (fe FoodEstablishment) AsLocalBusiness() (*LocalBusiness, bool)

AsLocalBusiness is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsLodgingBusiness Uses

func (fe FoodEstablishment) AsLodgingBusiness() (*LodgingBusiness, bool)

AsLodgingBusiness is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsMediaObject Uses

func (fe FoodEstablishment) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsMovieTheater Uses

func (fe FoodEstablishment) AsMovieTheater() (*MovieTheater, bool)

AsMovieTheater is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsOrganization Uses

func (fe FoodEstablishment) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsPlace Uses

func (fe FoodEstablishment) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsPlaces Uses

func (fe FoodEstablishment) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsPostalAddress Uses

func (fe FoodEstablishment) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsResponse Uses

func (fe FoodEstablishment) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsResponseBase Uses

func (fe FoodEstablishment) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsRestaurant Uses

func (fe FoodEstablishment) AsRestaurant() (*Restaurant, bool)

AsRestaurant is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsSearchResponse Uses

func (fe FoodEstablishment) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsSearchResultsAnswer Uses

func (fe FoodEstablishment) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsStructuredValue Uses

func (fe FoodEstablishment) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsThing Uses

func (fe FoodEstablishment) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) AsTouristAttraction Uses

func (fe FoodEstablishment) AsTouristAttraction() (*TouristAttraction, bool)

AsTouristAttraction is the BasicResponseBase implementation for FoodEstablishment.

func (FoodEstablishment) MarshalJSON Uses

func (fe FoodEstablishment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FoodEstablishment.

func (*FoodEstablishment) UnmarshalJSON Uses

func (fe *FoodEstablishment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for FoodEstablishment struct.

type Hotel Uses

type Hotel struct {
    // HotelClass - READ-ONLY
    HotelClass *string `json:"hotelClass,omitempty"`
    // Amenities - READ-ONLY
    Amenities *[]string `json:"amenities,omitempty"`
    // 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"`
}

Hotel ...

func (Hotel) AsAirport Uses

func (h Hotel) AsAirport() (*Airport, bool)

AsAirport is the BasicResponseBase implementation for Hotel.

func (Hotel) AsAnswer Uses

func (h Hotel) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Hotel.

func (Hotel) AsBasicAnswer Uses

func (h Hotel) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Hotel.

func (Hotel) AsBasicCivicStructure Uses

func (h Hotel) AsBasicCivicStructure() (BasicCivicStructure, bool)

AsBasicCivicStructure is the BasicResponseBase implementation for Hotel.

func (Hotel) AsBasicCreativeWork Uses

func (h Hotel) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Hotel.

func (Hotel) AsBasicEntertainmentBusiness Uses

func (h Hotel) AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for Hotel.

func (Hotel) AsBasicFoodEstablishment Uses

func (h Hotel) AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)

AsBasicFoodEstablishment is the BasicResponseBase implementation for Hotel.

func (Hotel) AsBasicIdentifiable Uses

func (h Hotel) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Hotel.

func (Hotel) AsBasicIntangible Uses

func (h Hotel) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Hotel.

func (Hotel) AsBasicLocalBusiness Uses

func (h Hotel) AsBasicLocalBusiness() (BasicLocalBusiness, bool)

AsBasicLocalBusiness is the BasicResponseBase implementation for Hotel.

func (Hotel) AsBasicLodgingBusiness Uses

func (h Hotel) AsBasicLodgingBusiness() (BasicLodgingBusiness, bool)

AsBasicLodgingBusiness is the BasicResponseBase implementation for Hotel.

func (Hotel) AsBasicMediaObject Uses

func (h Hotel) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Hotel.

func (Hotel) AsBasicPlace Uses

func (h Hotel) AsBasicPlace() (BasicPlace, bool)

AsBasicPlace is the BasicResponseBase implementation for Hotel.

func (Hotel) AsBasicResponse Uses

func (h Hotel) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Hotel.

func (Hotel) AsBasicResponseBase Uses

func (h Hotel) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Hotel.

func (Hotel) AsBasicSearchResultsAnswer Uses

func (h Hotel) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Hotel.

func (Hotel) AsBasicStructuredValue Uses

func (h Hotel) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Hotel.

func (Hotel) AsBasicThing Uses

func (h Hotel) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Hotel.

func (Hotel) AsCivicStructure Uses

func (h Hotel) AsCivicStructure() (*CivicStructure, bool)

AsCivicStructure is the BasicResponseBase implementation for Hotel.

func (Hotel) AsCreativeWork Uses

func (h Hotel) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Hotel.

func (Hotel) AsEntertainmentBusiness Uses

func (h Hotel) AsEntertainmentBusiness() (*EntertainmentBusiness, bool)

AsEntertainmentBusiness is the BasicResponseBase implementation for Hotel.

func (Hotel) AsEntities Uses

func (h Hotel) AsEntities() (*Entities, bool)

AsEntities is the BasicResponseBase implementation for Hotel.

func (Hotel) AsErrorResponse Uses

func (h Hotel) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Hotel.

func (Hotel) AsFoodEstablishment Uses

func (h Hotel) AsFoodEstablishment() (*FoodEstablishment, bool)

AsFoodEstablishment is the BasicResponseBase implementation for Hotel.

func (Hotel) AsHotel Uses

func (h Hotel) AsHotel() (*Hotel, bool)

AsHotel is the BasicResponseBase implementation for Hotel.

func (Hotel) AsIdentifiable Uses

func (h Hotel) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Hotel.

func (Hotel) AsImageObject Uses

func (h Hotel) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Hotel.

func (Hotel) AsIntangible Uses

func (h Hotel) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Hotel.

func (Hotel) AsLicense Uses

func (h Hotel) AsLicense() (*License, bool)

AsLicense is the BasicResponseBase implementation for Hotel.

func (Hotel) AsLocalBusiness Uses

func (h Hotel) AsLocalBusiness() (*LocalBusiness, bool)

AsLocalBusiness is the BasicResponseBase implementation for Hotel.

func (Hotel) AsLodgingBusiness Uses

func (h Hotel) AsLodgingBusiness() (*LodgingBusiness, bool)

AsLodgingBusiness is the BasicResponseBase implementation for Hotel.

func (Hotel) AsMediaObject Uses

func (h Hotel) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Hotel.

func (Hotel) AsMovieTheater Uses

func (h Hotel) AsMovieTheater() (*MovieTheater, bool)

AsMovieTheater is the BasicResponseBase implementation for Hotel.

func (Hotel) AsOrganization Uses

func (h Hotel) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for Hotel.

func (Hotel) AsPlace Uses

func (h Hotel) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for Hotel.

func (Hotel) AsPlaces Uses

func (h Hotel) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for Hotel.

func (Hotel) AsPostalAddress Uses

func (h Hotel) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for Hotel.

func (Hotel) AsResponse Uses

func (h Hotel) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Hotel.

func (Hotel) AsResponseBase Uses

func (h Hotel) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Hotel.

func (Hotel) AsRestaurant Uses

func (h Hotel) AsRestaurant() (*Restaurant, bool)

AsRestaurant is the BasicResponseBase implementation for Hotel.

func (Hotel) AsSearchResponse Uses

func (h Hotel) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Hotel.

func (Hotel) AsSearchResultsAnswer Uses

func (h Hotel) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Hotel.

func (Hotel) AsStructuredValue Uses

func (h Hotel) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Hotel.

func (Hotel) AsThing Uses

func (h Hotel) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Hotel.

func (Hotel) AsTouristAttraction Uses

func (h Hotel) AsTouristAttraction() (*TouristAttraction, bool)

AsTouristAttraction is the BasicResponseBase implementation for Hotel.

func (Hotel) MarshalJSON Uses

func (h Hotel) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Hotel.

func (*Hotel) UnmarshalJSON Uses

func (h *Hotel) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Hotel struct.

type Identifiable Uses

type Identifiable struct {
    // 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"`
}

Identifiable defines the identity of a resource.

func (Identifiable) AsAirport Uses

func (i Identifiable) AsAirport() (*Airport, bool)

AsAirport is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicCivicStructure Uses

func (i Identifiable) AsBasicCivicStructure() (BasicCivicStructure, bool)

AsBasicCivicStructure is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicEntertainmentBusiness Uses

func (i Identifiable) AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicFoodEstablishment Uses

func (i Identifiable) AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)

AsBasicFoodEstablishment is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicLocalBusiness Uses

func (i Identifiable) AsBasicLocalBusiness() (BasicLocalBusiness, bool)

AsBasicLocalBusiness is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicLodgingBusiness Uses

func (i Identifiable) AsBasicLodgingBusiness() (BasicLodgingBusiness, bool)

AsBasicLodgingBusiness is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicPlace Uses

func (i Identifiable) AsBasicPlace() (BasicPlace, bool)

AsBasicPlace is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsCivicStructure Uses

func (i Identifiable) AsCivicStructure() (*CivicStructure, bool)

AsCivicStructure is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsEntertainmentBusiness Uses

func (i Identifiable) AsEntertainmentBusiness() (*EntertainmentBusiness, bool)

AsEntertainmentBusiness is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsEntities Uses

func (i Identifiable) AsEntities() (*Entities, bool)

AsEntities is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsFoodEstablishment Uses

func (i Identifiable) AsFoodEstablishment() (*FoodEstablishment, bool)

AsFoodEstablishment is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsHotel Uses

func (i Identifiable) AsHotel() (*Hotel, bool)

AsHotel is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsLicense Uses

func (i Identifiable) AsLicense() (*License, bool)

AsLicense is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsLocalBusiness Uses

func (i Identifiable) AsLocalBusiness() (*LocalBusiness, bool)

AsLocalBusiness is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsLodgingBusiness Uses

func (i Identifiable) AsLodgingBusiness() (*LodgingBusiness, bool)

AsLodgingBusiness is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsMovieTheater Uses

func (i Identifiable) AsMovieTheater() (*MovieTheater, bool)

AsMovieTheater is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsPlace Uses

func (i Identifiable) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsPlaces Uses

func (i Identifiable) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsPostalAddress Uses

func (i Identifiable) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsRestaurant Uses

func (i Identifiable) AsRestaurant() (*Restaurant, bool)

AsRestaurant is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsSearchResponse Uses

func (i Identifiable) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsTouristAttraction Uses

func (i Identifiable) AsTouristAttraction() (*TouristAttraction, bool)

AsTouristAttraction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Identifiable.

type ImageObject Uses

type ImageObject struct {
    // Thumbnail - READ-ONLY; The URL to a thumbnail of the image
    Thumbnail *ImageObject `json:"thumbnail,omitempty"`
    // ContentURL - READ-ONLY; Original URL to retrieve the source (file) for the media object (e.g the source URL for the image).
    ContentURL *string `json:"contentUrl,omitempty"`
    // HostPageURL - READ-ONLY; URL of the page that hosts the media object.
    HostPageURL *string `json:"hostPageUrl,omitempty"`
    // Width - READ-ONLY; The width of the source media object, in pixels.
    Width *int32 `json:"width,omitempty"`
    // Height - READ-ONLY; The height of the source media object, in pixels.
    Height *int32 `json:"height,omitempty"`
    // ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // 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"`
}

ImageObject defines an image

func (ImageObject) AsAirport Uses

func (ioVar ImageObject) AsAirport() (*Airport, bool)

AsAirport is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicCivicStructure Uses

func (ioVar ImageObject) AsBasicCivicStructure() (BasicCivicStructure, bool)

AsBasicCivicStructure is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicEntertainmentBusiness Uses

func (ioVar ImageObject) AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicFoodEstablishment Uses

func (ioVar ImageObject) AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)

AsBasicFoodEstablishment is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicLocalBusiness Uses

func (ioVar ImageObject) AsBasicLocalBusiness() (BasicLocalBusiness, bool)

AsBasicLocalBusiness is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicLodgingBusiness Uses

func (ioVar ImageObject) AsBasicLodgingBusiness() (BasicLodgingBusiness, bool)

AsBasicLodgingBusiness is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicPlace Uses

func (ioVar ImageObject) AsBasicPlace() (BasicPlace, bool)

AsBasicPlace is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsCivicStructure Uses

func (ioVar ImageObject) AsCivicStructure() (*CivicStructure, bool)

AsCivicStructure is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsEntertainmentBusiness Uses

func (ioVar ImageObject) AsEntertainmentBusiness() (*EntertainmentBusiness, bool)

AsEntertainmentBusiness is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsEntities Uses

func (ioVar ImageObject) AsEntities() (*Entities, bool)

AsEntities is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsFoodEstablishment Uses

func (ioVar ImageObject) AsFoodEstablishment() (*FoodEstablishment, bool)

AsFoodEstablishment is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsHotel Uses

func (ioVar ImageObject) AsHotel() (*Hotel, bool)

AsHotel is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsLicense Uses

func (ioVar ImageObject) AsLicense() (*License, bool)

AsLicense is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsLocalBusiness Uses

func (ioVar ImageObject) AsLocalBusiness() (*LocalBusiness, bool)

AsLocalBusiness is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsLodgingBusiness Uses

func (ioVar ImageObject) AsLodgingBusiness() (*LodgingBusiness, bool)

AsLodgingBusiness is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsMovieTheater Uses

func (ioVar ImageObject) AsMovieTheater() (*MovieTheater, bool)

AsMovieTheater is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsPlace Uses

func (ioVar ImageObject) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsPlaces Uses

func (ioVar ImageObject) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsPostalAddress Uses

func (ioVar ImageObject) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsRestaurant Uses

func (ioVar ImageObject) AsRestaurant() (*Restaurant, bool)

AsRestaurant is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsSearchResponse Uses

func (ioVar ImageObject) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsThing Uses

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

AsThing is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsTouristAttraction Uses

func (ioVar ImageObject) AsTouristAttraction() (*TouristAttraction, bool)

AsTouristAttraction is the BasicResponseBase implementation for ImageObject.

func (ImageObject) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageObject.

func (*ImageObject) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ImageObject struct.

type Intangible Uses

type Intangible struct {
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY
    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"`
}

Intangible ...

func (Intangible) AsAirport Uses

func (i Intangible) AsAirport() (*Airport, bool)

AsAirport is the BasicResponseBase implementation for Intangible.

func (Intangible) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicCivicStructure Uses

func (i Intangible) AsBasicCivicStructure() (BasicCivicStructure, bool)

AsBasicCivicStructure is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicEntertainmentBusiness Uses

func (i Intangible) AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicFoodEstablishment Uses

func (i Intangible) AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)

AsBasicFoodEstablishment is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicLocalBusiness Uses

func (i Intangible) AsBasicLocalBusiness() (BasicLocalBusiness, bool)

AsBasicLocalBusiness is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicLodgingBusiness Uses

func (i Intangible) AsBasicLodgingBusiness() (BasicLodgingBusiness, bool)

AsBasicLodgingBusiness is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicPlace Uses

func (i Intangible) AsBasicPlace() (BasicPlace, bool)

AsBasicPlace is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Intangible.

func (Intangible) AsCivicStructure Uses

func (i Intangible) AsCivicStructure() (*CivicStructure, bool)

AsCivicStructure is the BasicResponseBase implementation for Intangible.

func (Intangible) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Intangible.

func (Intangible) AsEntertainmentBusiness Uses

func (i Intangible) AsEntertainmentBusiness() (*EntertainmentBusiness, bool)

AsEntertainmentBusiness is the BasicResponseBase implementation for Intangible.

func (Intangible) AsEntities Uses

func (i Intangible) AsEntities() (*Entities, bool)

AsEntities is the BasicResponseBase implementation for Intangible.

func (Intangible) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Intangible.

func (Intangible) AsFoodEstablishment Uses

func (i Intangible) AsFoodEstablishment() (*FoodEstablishment, bool)

AsFoodEstablishment is the BasicResponseBase implementation for Intangible.

func (Intangible) AsHotel Uses

func (i Intangible) AsHotel() (*Hotel, bool)

AsHotel is the BasicResponseBase implementation for Intangible.

func (Intangible) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Intangible.

func (Intangible) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Intangible.

func (Intangible) AsLicense Uses

func (i Intangible) AsLicense() (*License, bool)

AsLicense is the BasicResponseBase implementation for Intangible.

func (Intangible) AsLocalBusiness Uses

func (i Intangible) AsLocalBusiness() (*LocalBusiness, bool)

AsLocalBusiness is the BasicResponseBase implementation for Intangible.

func (Intangible) AsLodgingBusiness Uses

func (i Intangible) AsLodgingBusiness() (*LodgingBusiness, bool)

AsLodgingBusiness is the BasicResponseBase implementation for Intangible.

func (Intangible) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Intangible.

func (Intangible) AsMovieTheater Uses

func (i Intangible) AsMovieTheater() (*MovieTheater, bool)

AsMovieTheater is the BasicResponseBase implementation for Intangible.

func (Intangible) AsOrganization Uses

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

AsOrganization is the BasicResponseBase implementation for Intangible.

func (Intangible) AsPlace Uses

func (i Intangible) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for Intangible.

func (Intangible) AsPlaces Uses

func (i Intangible) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for Intangible.

func (Intangible) AsPostalAddress Uses

func (i Intangible) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for Intangible.

func (Intangible) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Intangible.

func (Intangible) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Intangible.

func (Intangible) AsRestaurant Uses

func (i Intangible) AsRestaurant() (*Restaurant, bool)

AsRestaurant is the BasicResponseBase implementation for Intangible.

func (Intangible) AsSearchResponse Uses

func (i Intangible) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Intangible.

func (Intangible) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Intangible.

func (Intangible) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Intangible.

func (Intangible) AsTouristAttraction Uses

func (i Intangible) AsTouristAttraction() (*TouristAttraction, bool)

AsTouristAttraction is the BasicResponseBase implementation for Intangible.

func (Intangible) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Intangible.

func (*Intangible) UnmarshalJSON Uses

func (i *Intangible) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Intangible struct.

type License Uses

type License 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"`
}

License defines the license under which the text or photo may be used.

func (License) AsAirport Uses

func (l License) AsAirport() (*Airport, bool)

AsAirport is the BasicResponseBase implementation for License.

func (License) AsAnswer Uses

func (l License) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for License.

func (License) AsBasicAnswer Uses

func (l License) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for License.

func (License) AsBasicCivicStructure Uses

func (l License) AsBasicCivicStructure() (BasicCivicStructure, bool)

AsBasicCivicStructure is the BasicResponseBase implementation for License.

func (License) AsBasicCreativeWork Uses

func (l License) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for License.

func (License) AsBasicEntertainmentBusiness Uses

func (l License) AsBasicEntertainmentBusiness() (BasicEntertainmentBusiness, bool)

AsBasicEntertainmentBusiness is the BasicResponseBase implementation for License.

func (License) AsBasicFoodEstablishment Uses

func (l License) AsBasicFoodEstablishment() (BasicFoodEstablishment, bool)

AsBasicFoodEstablishment is the BasicResponseBase implementation for License.

func (License) AsBasicIdentifiable Uses

func (l License) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for License.

func (License) AsBasicIntangible Uses

func (l License) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for License.

func (License) AsBasicLocalBusiness Uses

func (l License) AsBasicLocalBusiness() (BasicLocalBusiness, bool)

AsBasicLocalBusiness is the BasicResponseBase implementation for License.

func (License) AsBasicLodgingBusiness Uses