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

package localsearch

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

Package localsearch implements the Azure ARM Localsearch service API version 1.0.

The Local Search client lets you send a search query to Bing and get back search results that include local businesses such as restaurants, hotels, retail stores, or other local businesses. The query can specify the name of the local business or it can ask for a list (for example, restaurants near me).

Index

Package Files

client.go local.go models.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Localsearch
    DefaultBaseURI = "https://api.cognitive.microsoft.com/bing"
)

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type Action Uses

type Action struct {
    // Location - READ-ONLY
    Location *[]Place `json:"location,omitempty"`
    // Result - READ-ONLY; The result produced in the action.
    Result *[]BasicThing `json:"result,omitempty"`
    // DisplayName - READ-ONLY; A display name for the action.
    DisplayName *string `json:"displayName,omitempty"`
    // IsTopAction - READ-ONLY; A Boolean representing whether this result is the top action.
    IsTopAction *bool `json:"isTopAction,omitempty"`
    // ServiceURL - READ-ONLY; Use this URL to get additional data to determine how to take the appropriate action. For example, the serviceUrl might return JSON along with an image URL.
    ServiceURL *string `json:"serviceUrl,omitempty"`
    // ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // About - READ-ONLY; For internal use only.
    About *[]BasicThing `json:"about,omitempty"`
    // Mentions - READ-ONLY; For internal use only.
    Mentions *[]BasicThing `json:"mentions,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // Creator - READ-ONLY
    Creator BasicThing `json:"creator,omitempty"`
    // Text - READ-ONLY; Text content of this creative work
    Text *string `json:"text,omitempty"`
    // DiscussionURL - READ-ONLY
    DiscussionURL *string `json:"discussionUrl,omitempty"`
    // CommentCount - READ-ONLY
    CommentCount *int32 `json:"commentCount,omitempty"`
    // MainEntity - READ-ONLY
    MainEntity BasicThing `json:"mainEntity,omitempty"`
    // HeadLine - READ-ONLY
    HeadLine *string `json:"headLine,omitempty"`
    // CopyrightHolder - READ-ONLY
    CopyrightHolder BasicThing `json:"copyrightHolder,omitempty"`
    // CopyrightYear - READ-ONLY
    CopyrightYear *int32 `json:"copyrightYear,omitempty"`
    // Disclaimer - READ-ONLY
    Disclaimer *string `json:"disclaimer,omitempty"`
    // IsAccessibleForFree - READ-ONLY
    IsAccessibleForFree *bool `json:"isAccessibleForFree,omitempty"`
    // Genre - READ-ONLY
    Genre *[]string `json:"genre,omitempty"`
    // IsFamilyFriendly - READ-ONLY
    IsFamilyFriendly *bool `json:"isFamilyFriendly,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"`
    // 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 BasicEntitiesEntityPresentationInfo `json:"entityPresentationInfo,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // PotentialAction - READ-ONLY
    PotentialAction *[]BasicAction `json:"potentialAction,omitempty"`
    // ImmediateAction - READ-ONLY
    ImmediateAction *[]BasicAction `json:"immediateAction,omitempty"`
    // PreferredClickthroughURL - READ-ONLY
    PreferredClickthroughURL *string `json:"preferredClickthroughUrl,omitempty"`
    // AdaptiveCard - READ-ONLY
    AdaptiveCard *string `json:"adaptiveCard,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeSearchResponse', 'TypePostalAddress', 'TypePlace', 'TypeAction', 'TypeResponse', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeSearchAction', 'TypeStructuredValue'
    Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Action defines an action.

func (Action) AsAction Uses

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

AsAction is the BasicResponseBase implementation for Action.

func (Action) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for Action.

func (Action) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for Action.

func (Action) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Action.

func (Action) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Action.

func (Action) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Action.

func (Action) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Action.

func (Action) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Action.

func (Action) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Action.

func (Action) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Action.

func (Action) AsBasicStructuredValue Uses

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

AsBasicStructuredValue is the BasicResponseBase implementation for Action.

func (Action) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Action.

func (Action) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Action.

func (Action) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Action.

func (Action) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Action.

func (Action) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Action.

func (Action) AsPlace Uses

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

AsPlace is the BasicResponseBase implementation for Action.

func (Action) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for Action.

func (Action) AsPostalAddress Uses

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

AsPostalAddress is the BasicResponseBase implementation for Action.

func (Action) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Action.

func (Action) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Action.

func (Action) AsSearchAction Uses

func (a Action) AsSearchAction() (*SearchAction, bool)

AsSearchAction is the BasicResponseBase implementation for Action.

func (Action) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for Action.

func (Action) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Action.

func (Action) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Action.

func (Action) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Action.

func (Action) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Action.

func (*Action) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Action struct.

type Answer Uses

type Answer struct {
    // ReadLink - READ-ONLY; The URL that returns this resource.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // PotentialAction - READ-ONLY
    PotentialAction *[]BasicAction `json:"potentialAction,omitempty"`
    // ImmediateAction - READ-ONLY
    ImmediateAction *[]BasicAction `json:"immediateAction,omitempty"`
    // PreferredClickthroughURL - READ-ONLY
    PreferredClickthroughURL *string `json:"preferredClickthroughUrl,omitempty"`
    // AdaptiveCard - READ-ONLY
    AdaptiveCard *string `json:"adaptiveCard,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeSearchResponse', 'TypePostalAddress', 'TypePlace', 'TypeAction', 'TypeResponse', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeSearchAction', 'TypeStructuredValue'
    Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Answer defines an answer.

func (Answer) AsAction Uses

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

AsAction 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) AsBasicAction Uses

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

AsBasicAction 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) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Answer.

func (Answer) 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) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Answer.

func (Answer) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Answer.

func (Answer) AsIntangible Uses

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

AsIntangible 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) AsSearchAction Uses

func (a Answer) AsSearchAction() (*SearchAction, bool)

AsSearchAction 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) 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 BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI string
}

BaseClient is the base client for Localsearch.

func New Uses

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BasicAction Uses

type BasicAction interface {
    AsSearchAction() (*SearchAction, bool)
    AsAction() (*Action, bool)
}

BasicAction defines an action.

type BasicAnswer Uses

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

BasicAnswer defines an answer.

type BasicCreativeWork Uses

type BasicCreativeWork interface {
    AsAction() (*Action, bool)
    AsBasicAction() (BasicAction, bool)
    AsSearchAction() (*SearchAction, bool)
    AsCreativeWork() (*CreativeWork, bool)
}

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

type BasicEntitiesEntityPresentationInfo Uses

type BasicEntitiesEntityPresentationInfo interface {
    AsEntitiesEntityPresentationInfo() (*EntitiesEntityPresentationInfo, bool)
}

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

type BasicError Uses

type BasicError interface {
    AsError() (*Error, bool)
}

BasicError defines the error that occurred.

type BasicGeoCoordinates Uses

type BasicGeoCoordinates interface {
    AsGeoCoordinates() (*GeoCoordinates, bool)
}

BasicGeoCoordinates ...

type BasicIdentifiable Uses

type BasicIdentifiable interface {
    AsThing() (*Thing, bool)
    AsBasicThing() (BasicThing, bool)
    AsPlaces() (*Places, bool)
    AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
    AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
    AsSearchResponse() (*SearchResponse, bool)
    AsPostalAddress() (*PostalAddress, bool)
    AsPlace() (*Place, bool)
    AsAction() (*Action, bool)
    AsBasicAction() (BasicAction, bool)
    AsResponse() (*Response, bool)
    AsBasicResponse() (BasicResponse, bool)
    AsAnswer() (*Answer, bool)
    AsBasicAnswer() (BasicAnswer, bool)
    AsErrorResponse() (*ErrorResponse, bool)
    AsCreativeWork() (*CreativeWork, bool)
    AsBasicCreativeWork() (BasicCreativeWork, bool)
    AsIntangible() (*Intangible, bool)
    AsBasicIntangible() (BasicIntangible, bool)
    AsSearchAction() (*SearchAction, bool)
    AsStructuredValue() (*StructuredValue, bool)
    AsBasicStructuredValue() (BasicStructuredValue, 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 a utility class that serves as the umbrella for a number of 'intangible' things such as quantities, structured values, etc.

type BasicQueryContext Uses

type BasicQueryContext interface {
    AsQueryContext() (*QueryContext, bool)
}

BasicQueryContext defines the query context that Bing used for the request.

type BasicResponse Uses

type BasicResponse interface {
    AsThing() (*Thing, bool)
    AsBasicThing() (BasicThing, bool)
    AsPlaces() (*Places, bool)
    AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
    AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
    AsSearchResponse() (*SearchResponse, bool)
    AsPostalAddress() (*PostalAddress, bool)
    AsPlace() (*Place, bool)
    AsAction() (*Action, bool)
    AsBasicAction() (BasicAction, bool)
    AsAnswer() (*Answer, bool)
    AsBasicAnswer() (BasicAnswer, bool)
    AsErrorResponse() (*ErrorResponse, bool)
    AsCreativeWork() (*CreativeWork, bool)
    AsBasicCreativeWork() (BasicCreativeWork, bool)
    AsIntangible() (*Intangible, bool)
    AsBasicIntangible() (BasicIntangible, bool)
    AsSearchAction() (*SearchAction, bool)
    AsStructuredValue() (*StructuredValue, bool)
    AsBasicStructuredValue() (BasicStructuredValue, bool)
    AsResponse() (*Response, bool)
}

BasicResponse defines a response. All schemas that return at the root of the response must inherit from this object.

type BasicResponseBase Uses

type BasicResponseBase interface {
    AsThing() (*Thing, bool)
    AsBasicThing() (BasicThing, bool)
    AsPlaces() (*Places, bool)
    AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
    AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
    AsSearchResponse() (*SearchResponse, bool)
    AsPostalAddress() (*PostalAddress, bool)
    AsPlace() (*Place, bool)
    AsAction() (*Action, bool)
    AsBasicAction() (BasicAction, bool)
    AsResponse() (*Response, bool)
    AsBasicResponse() (BasicResponse, bool)
    AsIdentifiable() (*Identifiable, bool)
    AsBasicIdentifiable() (BasicIdentifiable, bool)
    AsAnswer() (*Answer, bool)
    AsBasicAnswer() (BasicAnswer, bool)
    AsErrorResponse() (*ErrorResponse, bool)
    AsCreativeWork() (*CreativeWork, bool)
    AsBasicCreativeWork() (BasicCreativeWork, bool)
    AsIntangible() (*Intangible, bool)
    AsBasicIntangible() (BasicIntangible, bool)
    AsSearchAction() (*SearchAction, bool)
    AsStructuredValue() (*StructuredValue, bool)
    AsBasicStructuredValue() (BasicStructuredValue, bool)
    AsResponseBase() (*ResponseBase, bool)
}

BasicResponseBase response base

type BasicSearchResultsAnswer Uses

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

BasicSearchResultsAnswer defines a search result answer.

type BasicStructuredValue Uses

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

BasicStructuredValue ...

type BasicThing Uses

type BasicThing interface {
    AsPostalAddress() (*PostalAddress, bool)
    AsPlace() (*Place, bool)
    AsAction() (*Action, bool)
    AsBasicAction() (BasicAction, bool)
    AsCreativeWork() (*CreativeWork, bool)
    AsBasicCreativeWork() (BasicCreativeWork, bool)
    AsIntangible() (*Intangible, bool)
    AsBasicIntangible() (BasicIntangible, bool)
    AsSearchAction() (*SearchAction, bool)
    AsStructuredValue() (*StructuredValue, bool)
    AsBasicStructuredValue() (BasicStructuredValue, bool)
    AsThing() (*Thing, bool)
}

BasicThing defines a thing.

type CreativeWork Uses

type CreativeWork struct {
    // ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // About - READ-ONLY; For internal use only.
    About *[]BasicThing `json:"about,omitempty"`
    // Mentions - READ-ONLY; For internal use only.
    Mentions *[]BasicThing `json:"mentions,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // Creator - READ-ONLY
    Creator BasicThing `json:"creator,omitempty"`
    // Text - READ-ONLY; Text content of this creative work
    Text *string `json:"text,omitempty"`
    // DiscussionURL - READ-ONLY
    DiscussionURL *string `json:"discussionUrl,omitempty"`
    // CommentCount - READ-ONLY
    CommentCount *int32 `json:"commentCount,omitempty"`
    // MainEntity - READ-ONLY
    MainEntity BasicThing `json:"mainEntity,omitempty"`
    // HeadLine - READ-ONLY
    HeadLine *string `json:"headLine,omitempty"`
    // CopyrightHolder - READ-ONLY
    CopyrightHolder BasicThing `json:"copyrightHolder,omitempty"`
    // CopyrightYear - READ-ONLY
    CopyrightYear *int32 `json:"copyrightYear,omitempty"`
    // Disclaimer - READ-ONLY
    Disclaimer *string `json:"disclaimer,omitempty"`
    // IsAccessibleForFree - READ-ONLY
    IsAccessibleForFree *bool `json:"isAccessibleForFree,omitempty"`
    // Genre - READ-ONLY
    Genre *[]string `json:"genre,omitempty"`
    // IsFamilyFriendly - READ-ONLY
    IsFamilyFriendly *bool `json:"isFamilyFriendly,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"`
    // 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 BasicEntitiesEntityPresentationInfo `json:"entityPresentationInfo,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // PotentialAction - READ-ONLY
    PotentialAction *[]BasicAction `json:"potentialAction,omitempty"`
    // ImmediateAction - READ-ONLY
    ImmediateAction *[]BasicAction `json:"immediateAction,omitempty"`
    // PreferredClickthroughURL - READ-ONLY
    PreferredClickthroughURL *string `json:"preferredClickthroughUrl,omitempty"`
    // AdaptiveCard - READ-ONLY
    AdaptiveCard *string `json:"adaptiveCard,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeSearchResponse', 'TypePostalAddress', 'TypePlace', 'TypeAction', 'TypeResponse', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeSearchAction', 'TypeStructuredValue'
    Type TypeBasicResponseBase `json:"_type,omitempty"`
}

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

func (CreativeWork) AsAction Uses

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

AsAction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) 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) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsIntangible Uses

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

AsIntangible 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) AsSearchAction Uses

func (cw CreativeWork) AsSearchAction() (*SearchAction, bool)

AsSearchAction 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) 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 EntitiesEntityPresentationInfo Uses

type EntitiesEntityPresentationInfo struct {
    // EntityScenario - The supported scenario. Possible values include: 'DominantEntity', 'DisambiguationItem', 'ListItem'
    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"`
    // Query - READ-ONLY
    Query *string `json:"query,omitempty"`
    // EntitySubTypeHints - READ-ONLY
    EntitySubTypeHints *[]string `json:"entitySubTypeHints,omitempty"`
    // Type - Possible values include: 'TypeEntitiesEntityPresentationInfo'
    Type TypeBasicEntitiesEntityPresentationInfo `json:"_type,omitempty"`
}

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

func (EntitiesEntityPresentationInfo) AsBasicEntitiesEntityPresentationInfo Uses

func (eepi EntitiesEntityPresentationInfo) AsBasicEntitiesEntityPresentationInfo() (BasicEntitiesEntityPresentationInfo, bool)

AsBasicEntitiesEntityPresentationInfo is the BasicEntitiesEntityPresentationInfo implementation for EntitiesEntityPresentationInfo.

func (EntitiesEntityPresentationInfo) AsEntitiesEntityPresentationInfo Uses

func (eepi EntitiesEntityPresentationInfo) AsEntitiesEntityPresentationInfo() (*EntitiesEntityPresentationInfo, bool)

AsEntitiesEntityPresentationInfo is the BasicEntitiesEntityPresentationInfo implementation for EntitiesEntityPresentationInfo.

func (EntitiesEntityPresentationInfo) MarshalJSON Uses

func (eepi EntitiesEntityPresentationInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EntitiesEntityPresentationInfo.

type EntityScenario Uses

type EntityScenario string

EntityScenario enumerates the values for entity scenario.

const (
    // DisambiguationItem ...
    DisambiguationItem EntityScenario = "DisambiguationItem"
    // DominantEntity ...
    DominantEntity EntityScenario = "DominantEntity"
    // ListItem ...
    ListItem 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 (
    // EntityTypeHotel ...
    EntityTypeHotel EntityType = "Hotel"
    // EntityTypeLocalBusiness ...
    EntityTypeLocalBusiness EntityType = "LocalBusiness"
    // EntityTypePlace ...
    EntityTypePlace EntityType = "Place"
    // EntityTypeRestaurant ...
    EntityTypeRestaurant EntityType = "Restaurant"
)

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"`
    // Type - Possible values include: 'TypeError'
    Type TypeBasicError `json:"_type,omitempty"`
}

Error defines the error that occurred.

func (Error) AsBasicError Uses

func (e Error) AsBasicError() (BasicError, bool)

AsBasicError is the BasicError implementation for Error.

func (Error) AsError Uses

func (e Error) AsError() (*Error, bool)

AsError is the BasicError implementation for Error.

func (Error) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Error.

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 *[]BasicError `json:"errors,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // PotentialAction - READ-ONLY
    PotentialAction *[]BasicAction `json:"potentialAction,omitempty"`
    // ImmediateAction - READ-ONLY
    ImmediateAction *[]BasicAction `json:"immediateAction,omitempty"`
    // PreferredClickthroughURL - READ-ONLY
    PreferredClickthroughURL *string `json:"preferredClickthroughUrl,omitempty"`
    // AdaptiveCard - READ-ONLY
    AdaptiveCard *string `json:"adaptiveCard,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeSearchResponse', 'TypePostalAddress', 'TypePlace', 'TypeAction', 'TypeResponse', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeSearchAction', 'TypeStructuredValue'
    Type TypeBasicResponseBase `json:"_type,omitempty"`
}

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

func (ErrorResponse) AsAction Uses

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

AsAction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) 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) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsIntangible Uses

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

AsIntangible 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) AsSearchAction Uses

func (er ErrorResponse) AsSearchAction() (*SearchAction, bool)

AsSearchAction 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) 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 GeoCoordinates Uses

type GeoCoordinates struct {
    Latitude  *float64 `json:"latitude,omitempty"`
    Longitude *float64 `json:"longitude,omitempty"`
    // Elevation - READ-ONLY
    Elevation *float64 `json:"elevation,omitempty"`
    // Type - Possible values include: 'TypeGeoCoordinates'
    Type TypeBasicGeoCoordinates `json:"_type,omitempty"`
}

GeoCoordinates ...

func (GeoCoordinates) AsBasicGeoCoordinates Uses

func (gc GeoCoordinates) AsBasicGeoCoordinates() (BasicGeoCoordinates, bool)

AsBasicGeoCoordinates is the BasicGeoCoordinates implementation for GeoCoordinates.

func (GeoCoordinates) AsGeoCoordinates Uses

func (gc GeoCoordinates) AsGeoCoordinates() (*GeoCoordinates, bool)

AsGeoCoordinates is the BasicGeoCoordinates implementation for GeoCoordinates.

func (GeoCoordinates) MarshalJSON Uses

func (gc GeoCoordinates) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GeoCoordinates.

type Identifiable Uses

type Identifiable struct {
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeSearchResponse', 'TypePostalAddress', 'TypePlace', 'TypeAction', 'TypeResponse', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeSearchAction', 'TypeStructuredValue'
    Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Identifiable defines the identity of a resource.

func (Identifiable) AsAction Uses

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

AsAction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsAnswer Uses

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

AsAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicAction Uses

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

AsBasicAction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Identifiable.

func (Identifiable) 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) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsIntangible Uses

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

AsIntangible 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) AsSearchAction Uses

func (i Identifiable) AsSearchAction() (*SearchAction, bool)

AsSearchAction 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) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Identifiable.

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"`
    // 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 BasicEntitiesEntityPresentationInfo `json:"entityPresentationInfo,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // PotentialAction - READ-ONLY
    PotentialAction *[]BasicAction `json:"potentialAction,omitempty"`
    // ImmediateAction - READ-ONLY
    ImmediateAction *[]BasicAction `json:"immediateAction,omitempty"`
    // PreferredClickthroughURL - READ-ONLY
    PreferredClickthroughURL *string `json:"preferredClickthroughUrl,omitempty"`
    // AdaptiveCard - READ-ONLY
    AdaptiveCard *string `json:"adaptiveCard,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeSearchResponse', 'TypePostalAddress', 'TypePlace', 'TypeAction', 'TypeResponse', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeSearchAction', 'TypeStructuredValue'
    Type TypeBasicResponseBase `json:"_type,omitempty"`
}

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

func (Intangible) AsAction Uses

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

AsAction 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) AsBasicAction Uses

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

AsBasicAction 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) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Intangible.

func (Intangible) 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) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Intangible.

func (Intangible) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Intangible.

func (Intangible) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Intangible.

func (Intangible) AsIntangible Uses

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

AsIntangible 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) AsSearchAction Uses

func (i Intangible) AsSearchAction() (*SearchAction, bool)

AsSearchAction 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) 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 LocalClient Uses

type LocalClient struct {
    BaseClient
}

LocalClient is the the Local Search client lets you send a search query to Bing and get back search results that include local businesses such as restaurants, hotels, retail stores, or other local businesses. The query can specify the name of the local business or it can ask for a list (for example, restaurants near me).

func NewLocalClient Uses

func NewLocalClient() LocalClient

NewLocalClient creates an instance of the LocalClient client.

func NewLocalClientWithBaseURI Uses

func NewLocalClientWithBaseURI(baseURI string) LocalClient

NewLocalClientWithBaseURI creates an instance of the LocalClient client.

func (LocalClient) Search Uses

func (client LocalClient) Search(ctx context.Context, query string, acceptLanguage string, pragma string, userAgent string, clientID string, clientIP string, location string, countryCode string, market string, localCategories string, localCircularView string, localMapView string, count string, first string, 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. localCategories - comma-delimited list of business categories to search for. Supported categories can be high-level such as EatDrink, Shop, SeeDo. localCircularView - preferred location to search around, expressed as Latitude, longitude and radius in meters. For example 47.61503,-122.1719,5000. Note that circular view should only be used to indicate a search around a point on the map, not as an approximation for a view port of a map rectangle. localMapView - preferred bounding box for results, specified in NW_latitude, NW_Longitude, SE_Latitude, SE_Longitude format. For example 47.64,-122.13,47.63,-122.12. These values are lat, long pairs for the Northwest corner and the Southeast corner of a rectangle. count - preferred number of results to return. If not specified, then Bing returns 1-20 of the most relevant results. first - first result to return. zero-based. default is 0. 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 (LocalClient) SearchPreparer Uses

func (client LocalClient) SearchPreparer(ctx context.Context, query string, acceptLanguage string, pragma string, userAgent string, clientID string, clientIP string, location string, countryCode string, market string, localCategories string, localCircularView string, localMapView string, count string, first string, responseFormat []ResponseFormat, safeSearch SafeSearch, setLang string) (*http.Request, error)

SearchPreparer prepares the Search request.

func (LocalClient) SearchResponder Uses

func (client LocalClient) 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 (LocalClient) SearchSender Uses

func (client LocalClient) 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 Place Uses

type Place struct {
    // Geo - READ-ONLY
    Geo BasicGeoCoordinates `json:"geo,omitempty"`
    // RoutablePoint - READ-ONLY
    RoutablePoint BasicGeoCoordinates `json:"routablePoint,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"`
    // 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 BasicEntitiesEntityPresentationInfo `json:"entityPresentationInfo,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // PotentialAction - READ-ONLY
    PotentialAction *[]BasicAction `json:"potentialAction,omitempty"`
    // ImmediateAction - READ-ONLY
    ImmediateAction *[]BasicAction `json:"immediateAction,omitempty"`
    // PreferredClickthroughURL - READ-ONLY
    PreferredClickthroughURL *string `json:"preferredClickthroughUrl,omitempty"`
    // AdaptiveCard - READ-ONLY
    AdaptiveCard *string `json:"adaptiveCard,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeSearchResponse', 'TypePostalAddress', 'TypePlace', 'TypeAction', 'TypeResponse', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeSearchAction', 'TypeStructuredValue'
    Type TypeBasicResponseBase `json:"_type,omitempty"`
}

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

func (Place) AsAction Uses

func (p Place) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for Place.

func (Place) AsAnswer Uses

func (p Place) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Place.

func (Place) AsBasicAction Uses

func (p Place) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for Place.

func (Place) AsBasicAnswer Uses

func (p Place) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Place.

func (Place) AsBasicCreativeWork Uses

func (p Place) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Place.

func (Place) AsBasicIdentifiable Uses

func (p Place) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Place.

func (Place) AsBasicIntangible Uses

func (p Place) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Place.

func (Place) AsBasicResponse Uses

func (p Place) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Place.

func (Place) AsBasicResponseBase Uses

func (p Place) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Place.

func (Place) AsBasicSearchResultsAnswer Uses

func (p Place) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Place.

func (Place) AsBasicStructuredValue Uses

func (p Place) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Place.

func (Place) AsBasicThing Uses

func (p Place) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Place.

func (Place) AsCreativeWork Uses

func (p Place) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Place.

func (Place) AsErrorResponse Uses

func (p Place) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Place.

func (Place) AsIdentifiable Uses

func (p Place) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Place.

func (Place) AsIntangible Uses

func (p Place) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Place.

func (Place) AsPlace Uses

func (p Place) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for Place.

func (Place) AsPlaces Uses

func (p Place) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for Place.

func (Place) AsPostalAddress Uses

func (p Place) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for Place.

func (Place) AsResponse Uses

func (p Place) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Place.

func (Place) AsResponseBase Uses

func (p Place) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Place.

func (Place) AsSearchAction Uses

func (p Place) AsSearchAction() (*SearchAction, bool)

AsSearchAction is the BasicResponseBase implementation for Place.

func (Place) AsSearchResponse Uses

func (p Place) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Place.

func (Place) AsSearchResultsAnswer Uses

func (p Place) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Place.

func (Place) AsStructuredValue Uses

func (p Place) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Place.

func (Place) AsThing Uses

func (p Place) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Place.

func (Place) MarshalJSON Uses

func (p Place) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Place.

func (*Place) UnmarshalJSON Uses

func (p *Place) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Place struct.

type Places Uses

type Places struct {
    // Value - A list of local entities, such as restaurants or hotels.
    Value *[]BasicThing `json:"value,omitempty"`
    // QueryContext - READ-ONLY
    QueryContext BasicQueryContext `json:"queryContext,omitempty"`
    // TotalEstimatedMatches - READ-ONLY; The estimated number of webpages that are relevant to the query. Use this number along with the count and offset query parameters to page the results.
    TotalEstimatedMatches *int64 `json:"totalEstimatedMatches,omitempty"`
    // IsFamilyFriendly - READ-ONLY
    IsFamilyFriendly *bool `json:"isFamilyFriendly,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // PotentialAction - READ-ONLY
    PotentialAction *[]BasicAction `json:"potentialAction,omitempty"`
    // ImmediateAction - READ-ONLY
    ImmediateAction *[]BasicAction `json:"immediateAction,omitempty"`
    // PreferredClickthroughURL - READ-ONLY
    PreferredClickthroughURL *string `json:"preferredClickthroughUrl,omitempty"`
    // AdaptiveCard - READ-ONLY
    AdaptiveCard *string `json:"adaptiveCard,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeSearchResponse', 'TypePostalAddress', 'TypePlace', 'TypeAction', 'TypeResponse', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeSearchAction', 'TypeStructuredValue'
    Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Places defines a local entity answer.

func (Places) AsAction Uses

func (p Places) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for Places.

func (Places) AsAnswer Uses

func (p Places) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Places.

func (Places) AsBasicAction Uses

func (p Places) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for Places.

func (Places) AsBasicAnswer Uses

func (p Places) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Places.

func (Places) AsBasicCreativeWork Uses

func (p Places) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Places.

func (Places) AsBasicIdentifiable Uses

func (p Places) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Places.

func (Places) AsBasicIntangible Uses

func (p Places) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Places.

func (Places) AsBasicResponse Uses

func (p Places) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Places.

func (Places) AsBasicResponseBase Uses

func (p Places) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Places.

func (Places) AsBasicSearchResultsAnswer Uses

func (p Places) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Places.

func (Places) AsBasicStructuredValue Uses

func (p Places) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Places.

func (Places) AsBasicThing Uses

func (p Places) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Places.

func (Places) AsCreativeWork Uses

func (p Places) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Places.

func (Places) AsErrorResponse Uses

func (p Places) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Places.

func (Places) AsIdentifiable Uses

func (p Places) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Places.

func (Places) AsIntangible Uses

func (p Places) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Places.

func (Places) AsPlace Uses

func (p Places) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for Places.

func (Places) AsPlaces Uses

func (p Places) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for Places.

func (Places) AsPostalAddress Uses

func (p Places) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for Places.

func (Places) AsResponse Uses

func (p Places) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Places.

func (Places) AsResponseBase Uses

func (p Places) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Places.

func (Places) AsSearchAction Uses

func (p Places) AsSearchAction() (*SearchAction, bool)

AsSearchAction is the BasicResponseBase implementation for Places.

func (Places) AsSearchResponse Uses

func (p Places) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Places.

func (Places) AsSearchResultsAnswer Uses

func (p Places) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Places.

func (Places) AsStructuredValue Uses

func (p Places) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Places.

func (Places) AsThing Uses

func (p Places) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Places.

func (Places) MarshalJSON Uses

func (p Places) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Places.

func (*Places) UnmarshalJSON Uses

func (p *Places) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Places struct.

type PostalAddress Uses

type PostalAddress struct {
    // StreetAddress - READ-ONLY
    StreetAddress *string `json:"streetAddress,omitempty"`
    // AddressLocality - READ-ONLY; The city where the street address is located. For example, Seattle.
    AddressLocality *string `json:"addressLocality,omitempty"`
    // AddressSubregion - READ-ONLY
    AddressSubregion *string `json:"addressSubregion,omitempty"`
    // AddressRegion - READ-ONLY; The state or province code where the street address is located. This could be the two-letter code. For example, WA, or the full name , Washington.
    AddressRegion *string `json:"addressRegion,omitempty"`
    // PostalCode - READ-ONLY; The zip code or postal code where the street address is located. For example, 98052.
    PostalCode *string `json:"postalCode,omitempty"`
    // PostOfficeBoxNumber - READ-ONLY
    PostOfficeBoxNumber *string `json:"postOfficeBoxNumber,omitempty"`
    // AddressCountry - READ-ONLY; The country/region where the street address is located. This could be the two-letter ISO code. For example, US, or the full name, United States.
    AddressCountry *string `json:"addressCountry,omitempty"`
    // CountryIso - READ-ONLY; The two letter ISO code of this country. For example, US.
    CountryIso *string `json:"countryIso,omitempty"`
    // Neighborhood - READ-ONLY; The neighborhood where the street address is located. For example, Westlake.
    Neighborhood *string `json:"neighborhood,omitempty"`
    // AddressRegionAbbreviation - READ-ONLY; Region Abbreviation. For example, WA.
    AddressRegionAbbreviation *string `json:"addressRegionAbbreviation,omitempty"`
    // Text - READ-ONLY; The complete address. For example, 2100 Westlake Ave N, Bellevue, WA 98052.
    Text *string `json:"text,omitempty"`
    // HouseNumber - READ-ONLY
    HouseNumber *string `json:"houseNumber,omitempty"`
    // StreetName - READ-ONLY
    StreetName *string `json:"streetName,omitempty"`
    // FormattingRuleID - READ-ONLY
    FormattingRuleID *string `json:"formattingRuleId,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"`
    // 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 BasicEntitiesEntityPresentationInfo `json:"entityPresentationInfo,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // PotentialAction - READ-ONLY
    PotentialAction *[]BasicAction `json:"potentialAction,omitempty"`
    // ImmediateAction - READ-ONLY
    ImmediateAction *[]BasicAction `json:"immediateAction,omitempty"`
    // PreferredClickthroughURL - READ-ONLY
    PreferredClickthroughURL *string `json:"preferredClickthroughUrl,omitempty"`
    // AdaptiveCard - READ-ONLY
    AdaptiveCard *string `json:"adaptiveCard,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeSearchResponse', 'TypePostalAddress', 'TypePlace', 'TypeAction', 'TypeResponse', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeSearchAction', 'TypeStructuredValue'
    Type TypeBasicResponseBase `json:"_type,omitempty"`
}

PostalAddress defines a postal address.

func (PostalAddress) AsAction Uses

func (pa PostalAddress) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsAnswer Uses

func (pa PostalAddress) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsBasicAction Uses

func (pa PostalAddress) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsBasicAnswer Uses

func (pa PostalAddress) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsBasicCreativeWork Uses

func (pa PostalAddress) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsBasicIdentifiable Uses

func (pa PostalAddress) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsBasicIntangible Uses

func (pa PostalAddress) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsBasicResponse Uses

func (pa PostalAddress) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsBasicResponseBase Uses

func (pa PostalAddress) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsBasicSearchResultsAnswer Uses

func (pa PostalAddress) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsBasicStructuredValue Uses

func (pa PostalAddress) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsBasicThing Uses

func (pa PostalAddress) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsCreativeWork Uses

func (pa PostalAddress) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsErrorResponse Uses

func (pa PostalAddress) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsIdentifiable Uses

func (pa PostalAddress) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsIntangible Uses

func (pa PostalAddress) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsPlace Uses

func (pa PostalAddress) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsPlaces Uses

func (pa PostalAddress) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsPostalAddress Uses

func (pa PostalAddress) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsResponse Uses

func (pa PostalAddress) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsResponseBase Uses

func (pa PostalAddress) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsSearchAction Uses

func (pa PostalAddress) AsSearchAction() (*SearchAction, bool)

AsSearchAction is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsSearchResponse Uses

func (pa PostalAddress) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsSearchResultsAnswer Uses

func (pa PostalAddress) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsStructuredValue Uses

func (pa PostalAddress) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) AsThing Uses

func (pa PostalAddress) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for PostalAddress.

func (PostalAddress) MarshalJSON Uses

func (pa PostalAddress) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PostalAddress.

func (*PostalAddress) UnmarshalJSON Uses

func (pa *PostalAddress) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PostalAddress struct.

type QueryContext Uses

type QueryContext struct {
    // OriginalQuery - The query string as specified in the request.
    OriginalQuery *string `json:"originalQuery,omitempty"`
    // AlteredQuery - READ-ONLY; The query string used by Bing to perform the query. Bing uses the altered query string if the original query string contained spelling mistakes. For example, if the query string is "saling downwind", the altered query string will be "sailing downwind". This field is included only if the original query string contains a spelling mistake.
    AlteredQuery *string `json:"alteredQuery,omitempty"`
    // AlterationDisplayQuery - READ-ONLY; AlteredQuery that is formatted for display purpose. The query string in the AlterationDisplayQuery can be html-escaped and can contain hit-highlighting characters
    AlterationDisplayQuery *string `json:"alterationDisplayQuery,omitempty"`
    // AlterationOverrideQuery - READ-ONLY; The query string to use to force Bing to use the original string. For example, if the query string is "saling downwind", the override query string will be "+saling downwind". Remember to encode the query string which results in "%2Bsaling+downwind". This field is included only if the original query string contains a spelling mistake.
    AlterationOverrideQuery *string `json:"alterationOverrideQuery,omitempty"`
    // AdultIntent - READ-ONLY; A Boolean value that indicates whether the specified query has adult intent. The value is true if the query has adult intent; otherwise, false.
    AdultIntent *bool `json:"adultIntent,omitempty"`
    // AskUserForLocation - READ-ONLY; A Boolean value that indicates whether Bing requires the user's location to provide accurate results. If you specified the user's location by using the X-MSEdge-ClientIP and X-Search-Location headers, you can ignore this field. For location aware queries, such as "today's weather" or "restaurants near me" that need the user's location to provide accurate results, this field is set to true. For location aware queries that include the location (for example, "Seattle weather"), this field is set to false. This field is also set to false for queries that are not location aware, such as "best sellers".
    AskUserForLocation *bool `json:"askUserForLocation,omitempty"`
    // IsTransactional - READ-ONLY
    IsTransactional *bool `json:"isTransactional,omitempty"`
    // Type - Possible values include: 'TypeQueryContext'
    Type Type `json:"_type,omitempty"`
}

QueryContext defines the query context that Bing used for the request.

func (QueryContext) AsBasicQueryContext Uses

func (qc QueryContext) AsBasicQueryContext() (BasicQueryContext, bool)

AsBasicQueryContext is the BasicQueryContext implementation for QueryContext.

func (QueryContext) AsQueryContext Uses

func (qc QueryContext) AsQueryContext() (*QueryContext, bool)

AsQueryContext is the BasicQueryContext implementation for QueryContext.

func (QueryContext) MarshalJSON Uses

func (qc QueryContext) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for QueryContext.

type Response Uses

type Response struct {
    // ReadLink - READ-ONLY; The URL that returns this resource.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // PotentialAction - READ-ONLY
    PotentialAction *[]BasicAction `json:"potentialAction,omitempty"`
    // ImmediateAction - READ-ONLY
    ImmediateAction *[]BasicAction `json:"immediateAction,omitempty"`
    // PreferredClickthroughURL - READ-ONLY
    PreferredClickthroughURL *string `json:"preferredClickthroughUrl,omitempty"`
    // AdaptiveCard - READ-ONLY
    AdaptiveCard *string `json:"adaptiveCard,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeSearchResponse', 'TypePostalAddress', 'TypePlace', 'TypeAction', 'TypeResponse', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeSearchAction', 'TypeStructuredValue'
    Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Response defines a response. All schemas that return at the root of the response must inherit from this object.

func (Response) AsAction Uses

func (r Response) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for Response.

func (Response) AsAnswer Uses

func (r Response) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Response.

func (Response) AsBasicAction Uses

func (r Response) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for Response.

func (Response) AsBasicAnswer Uses

func (r Response) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Response.

func (Response) AsBasicCreativeWork Uses

func (r Response) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Response.

func (Response) AsBasicIdentifiable Uses

func (r Response) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Response.

func (Response) AsBasicIntangible Uses

func (r Response) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Response.

func (Response) AsBasicResponse Uses

func (r Response) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Response.

func (Response) AsBasicResponseBase Uses

func (r Response) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Response.

func (Response) AsBasicSearchResultsAnswer Uses

func (r Response) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Response.

func (Response) AsBasicStructuredValue Uses

func (r Response) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Response.

func (Response) AsBasicThing Uses

func (r Response) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Response.

func (Response) AsCreativeWork Uses

func (r Response) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Response.

func (Response) AsErrorResponse Uses

func (r Response) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Response.

func (Response) AsIdentifiable Uses

func (r Response) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Response.

func (Response) AsIntangible Uses

func (r Response) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Response.

func (Response) AsPlace Uses

func (r Response) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for Response.

func (Response) AsPlaces Uses

func (r Response) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for Response.

func (Response) AsPostalAddress Uses

func (r Response) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for Response.

func (Response) AsResponse Uses

func (r Response) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Response.

func (Response) AsResponseBase Uses

func (r Response) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Response.

func (Response) AsSearchAction Uses

func (r Response) AsSearchAction() (*SearchAction, bool)

AsSearchAction is the BasicResponseBase implementation for Response.

func (Response) AsSearchResponse Uses

func (r Response) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Response.

func (Response) AsSearchResultsAnswer Uses

func (r Response) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Response.

func (Response) AsStructuredValue Uses

func (r Response) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Response.

func (Response) AsThing Uses

func (r Response) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Response.

func (Response) MarshalJSON Uses

func (r Response) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Response.

func (*Response) UnmarshalJSON Uses

func (r *Response) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Response struct.

type ResponseBase Uses

type ResponseBase struct {
    // Type - Possible values include: 'TypeResponseBase', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeSearchResponse', 'TypePostalAddress', 'TypePlace', 'TypeAction', 'TypeResponse', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeSearchAction', 'TypeStructuredValue'
    Type TypeBasicResponseBase `json:"_type,omitempty"`
}

ResponseBase response base

func (ResponseBase) AsAction Uses

func (rb ResponseBase) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsAnswer Uses

func (rb ResponseBase) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicAction Uses

func (rb ResponseBase) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicAnswer Uses

func (rb ResponseBase) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicCreativeWork Uses

func (rb ResponseBase) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicIdentifiable Uses

func (rb ResponseBase) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicIntangible Uses

func (rb ResponseBase) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicResponse Uses

func (rb ResponseBase) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicResponseBase Uses

func (rb ResponseBase) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicSearchResultsAnswer Uses

func (rb ResponseBase) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicStructuredValue Uses

func (rb ResponseBase) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicThing Uses

func (rb ResponseBase) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsCreativeWork Uses

func (rb ResponseBase) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsErrorResponse Uses

func (rb ResponseBase) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsIdentifiable Uses

func (rb ResponseBase) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsIntangible Uses

func (rb ResponseBase) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsPlace Uses

func (rb ResponseBase) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsPlaces Uses

func (rb ResponseBase) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsPostalAddress Uses

func (rb ResponseBase) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsResponse Uses

func (rb ResponseBase) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsResponseBase Uses

func (rb ResponseBase) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsSearchAction Uses

func (rb ResponseBase) AsSearchAction() (*SearchAction, bool)

AsSearchAction is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsSearchResponse Uses

func (rb ResponseBase) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsSearchResultsAnswer Uses

func (rb ResponseBase) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsStructuredValue Uses

func (rb ResponseBase) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsThing Uses

func (rb ResponseBase) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) MarshalJSON Uses

func (rb ResponseBase) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResponseBase.

type ResponseFormat Uses

type ResponseFormat string

ResponseFormat enumerates the values for response format.

const (
    // JSON ...
    JSON ResponseFormat = "Json"
    // JSONLd ...
    JSONLd ResponseFormat = "JsonLd"
)

func PossibleResponseFormatValues Uses

func PossibleResponseFormatValues() []ResponseFormat

PossibleResponseFormatValues returns an array of possible values for the ResponseFormat const type.

type SafeSearch Uses

type SafeSearch string

SafeSearch enumerates the values for safe search.

const (
    // Moderate ...
    Moderate SafeSearch = "Moderate"
    // Off ...
    Off SafeSearch = "Off"
    // Strict ...
    Strict SafeSearch = "Strict"
)

func PossibleSafeSearchValues Uses

func PossibleSafeSearchValues() []SafeSearch

PossibleSafeSearchValues returns an array of possible values for the SafeSearch const type.

type SearchAction Uses

type SearchAction struct {
    // DisplayText - READ-ONLY
    DisplayText *string `json:"displayText,omitempty"`
    // Query - READ-ONLY
    Query *string `json:"query,omitempty"`
    // RichContent - READ-ONLY
    RichContent *[]BasicAnswer `json:"richContent,omitempty"`
    // FormattingRuleID - READ-ONLY
    FormattingRuleID *string `json:"formattingRuleId,omitempty"`
    // Location - READ-ONLY
    Location *[]Place `json:"location,omitempty"`
    // Result - READ-ONLY; The result produced in the action.
    Result *[]BasicThing `json:"result,omitempty"`
    // DisplayName - READ-ONLY; A display name for the action.
    DisplayName *string `json:"displayName,omitempty"`
    // IsTopAction - READ-ONLY; A Boolean representing whether this result is the top action.
    IsTopAction *bool `json:"isTopAction,omitempty"`
    // ServiceURL - READ-ONLY; Use this URL to get additional data to determine how to take the appropriate action. For example, the serviceUrl might return JSON along with an image URL.
    ServiceURL *string `json:"serviceUrl,omitempty"`
    // ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // About - READ-ONLY; For internal use only.
    About *[]BasicThing `json:"about,omitempty"`
    // Mentions - READ-ONLY; For internal use only.
    Mentions *[]BasicThing `json:"mentions,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // Creator - READ-ONLY
    Creator BasicThing `json:"creator,omitempty"`
    // Text - READ-ONLY; Text content of this creative work
    Text *string `json:"text,omitempty"`
    // DiscussionURL - READ-ONLY
    DiscussionURL *string `json:"discussionUrl,omitempty"`
    // CommentCount - READ-ONLY
    CommentCount *int32 `json:"commentCount,omitempty"`
    // MainEntity - READ-ONLY
    MainEntity BasicThing `json:"mainEntity,omitempty"`
    // HeadLine - READ-ONLY
    HeadLine *string `json:"headLine,omitempty"`
    // CopyrightHolder - READ-ONLY
    CopyrightHolder BasicThing `json:"copyrightHolder,omitempty"`
    // CopyrightYear - READ-ONLY
    CopyrightYear *int32 `json:"copyrightYear,omitempty"`
    // Disclaimer - READ-ONLY
    Disclaimer *string `json:"disclaimer,omitempty"`
    // IsAccessibleForFree - READ-ONLY
    IsAccessibleForFree *bool `json:"isAccessibleForFree,omitempty"`
    // Genre - READ-ONLY
    Genre *[]string `json:"genre,omitempty"`
    // IsFamilyFriendly - READ-ONLY
    IsFamilyFriendly *bool `json:"isFamilyFriendly,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"`
    // 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 BasicEntitiesEntityPresentationInfo `json:"entityPresentationInfo,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // PotentialAction - READ-ONLY
    PotentialAction *[]BasicAction `json:"potentialAction,omitempty"`
    // ImmediateAction - READ-ONLY
    ImmediateAction *[]BasicAction `json:"immediateAction,omitempty"`
    // PreferredClickthroughURL - READ-ONLY
    PreferredClickthroughURL *string `json:"preferredClickthroughUrl,omitempty"`
    // AdaptiveCard - READ-ONLY
    AdaptiveCard *string `json:"adaptiveCard,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeSearchResponse', 'TypePostalAddress', 'TypePlace', 'TypeAction', 'TypeResponse', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeSearchAction', 'TypeStructuredValue'
    Type TypeBasicResponseBase `json:"_type,omitempty"`
}

SearchAction ...

func (SearchAction) AsAction Uses

func (sa SearchAction) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsAnswer Uses

func (sa SearchAction) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsBasicAction Uses

func (sa SearchAction) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsBasicAnswer Uses

func (sa SearchAction) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsBasicCreativeWork Uses

func (sa SearchAction) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsBasicIdentifiable Uses

func (sa SearchAction) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsBasicIntangible Uses

func (sa SearchAction) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsBasicResponse Uses

func (sa SearchAction) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsBasicResponseBase Uses

func (sa SearchAction) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsBasicSearchResultsAnswer Uses

func (sa SearchAction) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsBasicStructuredValue Uses

func (sa SearchAction) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsBasicThing Uses

func (sa SearchAction) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsCreativeWork Uses

func (sa SearchAction) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsErrorResponse Uses

func (sa SearchAction) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsIdentifiable Uses

func (sa SearchAction) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsIntangible Uses

func (sa SearchAction) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsPlace Uses

func (sa SearchAction) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsPlaces Uses

func (sa SearchAction) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsPostalAddress Uses

func (sa SearchAction) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsResponse Uses

func (sa SearchAction) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsResponseBase Uses

func (sa SearchAction) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsSearchAction Uses

func (sa SearchAction) AsSearchAction() (*SearchAction, bool)

AsSearchAction is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsSearchResponse Uses

func (sa SearchAction) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsSearchResultsAnswer Uses

func (sa SearchAction) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsStructuredValue Uses

func (sa SearchAction) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for SearchAction.

func (SearchAction) AsThing Uses

func (sa SearchAction) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for SearchAction.

func (SearchAction) MarshalJSON Uses

func (sa SearchAction) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SearchAction.

func (*SearchAction) UnmarshalJSON Uses

func (sa *SearchAction) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SearchAction struct.

type SearchResponse Uses

type SearchResponse struct {
    autorest.Response `json:"-"`
    // QueryContext - READ-ONLY; An object that contains the query string that Bing used for the request. This object contains the query string as entered by the user. It may also contain an altered query string that Bing used for the query if the query string contained a spelling mistake.
    QueryContext BasicQueryContext `json:"queryContext,omitempty"`
    // Places - READ-ONLY; A list of local entities such as restaurants or hotels that are relevant to the query.
    Places *Places `json:"places,omitempty"`
    // Lottery - READ-ONLY
    Lottery BasicSearchResultsAnswer `json:"lottery,omitempty"`
    // SearchResultsConfidenceScore - READ-ONLY
    SearchResultsConfidenceScore *float64 `json:"searchResultsConfidenceScore,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // PotentialAction - READ-ONLY
    PotentialAction *[]BasicAction `json:"potentialAction,omitempty"`
    // ImmediateAction - READ-ONLY
    ImmediateAction *[]BasicAction `json:"immediateAction,omitempty"`
    // PreferredClickthroughURL - READ-ONLY
    PreferredClickthroughURL *string `json:"preferredClickthroughUrl,omitempty"`
    // AdaptiveCard - READ-ONLY
    AdaptiveCard *string `json:"adaptiveCard,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeSearchResponse', 'TypePostalAddress', 'TypePlace', 'TypeAction', 'TypeResponse', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeSearchAction', 'TypeStructuredValue'
    Type TypeBasicResponseBase `json:"_type,omitempty"`
}

SearchResponse defines the top-level object that the response includes when the request succeeds.

func (SearchResponse) AsAction Uses

func (sr SearchResponse) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsAnswer Uses

func (sr SearchResponse) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicAction Uses

func (sr SearchResponse) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicAnswer Uses

func (sr SearchResponse) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicCreativeWork Uses

func (sr SearchResponse) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicIdentifiable Uses

func (sr SearchResponse) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicIntangible Uses

func (sr SearchResponse) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicResponse Uses

func (sr SearchResponse) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicResponseBase Uses

func (sr SearchResponse) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicSearchResultsAnswer Uses

func (sr SearchResponse) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicStructuredValue Uses

func (sr SearchResponse) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicThing Uses

func (sr SearchResponse) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsCreativeWork Uses

func (sr SearchResponse) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsErrorResponse Uses

func (sr SearchResponse) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsIdentifiable Uses

func (sr SearchResponse) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsIntangible Uses

func (sr SearchResponse) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsPlace Uses

func (sr SearchResponse) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsPlaces Uses

func (sr SearchResponse) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsPostalAddress Uses

func (sr SearchResponse) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsResponse Uses

func (sr SearchResponse) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsResponseBase Uses

func (sr SearchResponse) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsSearchAction Uses

func (sr SearchResponse) AsSearchAction() (*SearchAction, bool)

AsSearchAction is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsSearchResponse Uses

func (sr SearchResponse) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsSearchResultsAnswer Uses

func (sr SearchResponse) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsStructuredValue Uses

func (sr SearchResponse) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsThing Uses

func (sr SearchResponse) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) MarshalJSON Uses

func (sr SearchResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SearchResponse.

func (*SearchResponse) UnmarshalJSON Uses

func (sr *SearchResponse) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SearchResponse struct.

type SearchResultsAnswer Uses

type SearchResultsAnswer struct {
    // QueryContext - READ-ONLY
    QueryContext BasicQueryContext `json:"queryContext,omitempty"`
    // TotalEstimatedMatches - READ-ONLY; The estimated number of webpages that are relevant to the query. Use this number along with the count and offset query parameters to page the results.
    TotalEstimatedMatches *int64 `json:"totalEstimatedMatches,omitempty"`
    // IsFamilyFriendly - READ-ONLY
    IsFamilyFriendly *bool `json:"isFamilyFriendly,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // PotentialAction - READ-ONLY
    PotentialAction *[]BasicAction `json:"potentialAction,omitempty"`
    // ImmediateAction - READ-ONLY
    ImmediateAction *[]BasicAction `json:"immediateAction,omitempty"`
    // PreferredClickthroughURL - READ-ONLY
    PreferredClickthroughURL *string `json:"preferredClickthroughUrl,omitempty"`
    // AdaptiveCard - READ-ONLY
    AdaptiveCard *string `json:"adaptiveCard,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeSearchResponse', 'TypePostalAddress', 'TypePlace', 'TypeAction', 'TypeResponse', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeSearchAction', 'TypeStructuredValue'
    Type TypeBasicResponseBase `json:"_type,omitempty"`
}

SearchResultsAnswer defines a search result answer.

func (SearchResultsAnswer) AsAction Uses

func (sra SearchResultsAnswer) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsAnswer Uses

func (sra SearchResultsAnswer) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicAction Uses

func (sra SearchResultsAnswer) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicAnswer Uses

func (sra SearchResultsAnswer) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicCreativeWork Uses

func (sra SearchResultsAnswer) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicIdentifiable Uses

func (sra SearchResultsAnswer) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicIntangible Uses

func (sra SearchResultsAnswer) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicResponse Uses

func (sra SearchResultsAnswer) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicResponseBase Uses

func (sra SearchResultsAnswer) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicSearchResultsAnswer Uses

func (sra SearchResultsAnswer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicStructuredValue Uses

func (sra SearchResultsAnswer) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicThing Uses

func (sra SearchResultsAnswer) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsCreativeWork Uses

func (sra SearchResultsAnswer) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsErrorResponse Uses

func (sra SearchResultsAnswer) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsIdentifiable Uses

func (sra SearchResultsAnswer) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsIntangible Uses

func (sra SearchResultsAnswer) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsPlace Uses

func (sra SearchResultsAnswer) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsPlaces Uses

func (sra SearchResultsAnswer) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsPostalAddress Uses

func (sra SearchResultsAnswer) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsResponse Uses

func (sra SearchResultsAnswer) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsResponseBase Uses

func (sra SearchResultsAnswer) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsSearchAction Uses

func (sra SearchResultsAnswer) AsSearchAction() (*SearchAction, bool)

AsSearchAction is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsSearchResponse Uses

func (sra SearchResultsAnswer) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsSearchResultsAnswer Uses

func (sra SearchResultsAnswer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsStructuredValue Uses

func (sra SearchResultsAnswer) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsThing Uses

func (sra SearchResultsAnswer) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) MarshalJSON Uses

func (sra SearchResultsAnswer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SearchResultsAnswer.

func (*SearchResultsAnswer) UnmarshalJSON Uses

func (sra *SearchResultsAnswer) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SearchResultsAnswer struct.

type StructuredValue Uses

type StructuredValue 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"`
    // 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 BasicEntitiesEntityPresentationInfo `json:"entityPresentationInfo,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // PotentialAction - READ-ONLY
    PotentialAction *[]BasicAction `json:"potentialAction,omitempty"`
    // ImmediateAction - READ-ONLY
    ImmediateAction *[]BasicAction `json:"immediateAction,omitempty"`
    // PreferredClickthroughURL - READ-ONLY
    PreferredClickthroughURL *string `json:"preferredClickthroughUrl,omitempty"`
    // AdaptiveCard - READ-ONLY
    AdaptiveCard *string `json:"adaptiveCard,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeSearchResponse', 'TypePostalAddress', 'TypePlace', 'TypeAction', 'TypeResponse', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeSearchAction', 'TypeStructuredValue'
    Type TypeBasicResponseBase `json:"_type,omitempty"`
}

StructuredValue ...

func (StructuredValue) AsAction Uses

func (sv StructuredValue) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsAnswer Uses

func (sv StructuredValue) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicAction Uses

func (sv StructuredValue) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicAnswer Uses

func (sv StructuredValue) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicCreativeWork Uses

func (sv StructuredValue) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicIdentifiable Uses

func (sv StructuredValue) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicIntangible Uses

func (sv StructuredValue) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicResponse Uses

func (sv StructuredValue) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicResponseBase Uses

func (sv StructuredValue) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicSearchResultsAnswer Uses

func (sv StructuredValue) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicStructuredValue Uses

func (sv StructuredValue) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicThing Uses

func (sv StructuredValue) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsCreativeWork Uses

func (sv StructuredValue) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsErrorResponse Uses

func (sv StructuredValue) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsIdentifiable Uses

func (sv StructuredValue) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsIntangible Uses

func (sv StructuredValue) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsPlace Uses

func (sv StructuredValue) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsPlaces Uses

func (sv StructuredValue) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsPostalAddress Uses

func (sv StructuredValue) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsResponse Uses

func (sv StructuredValue) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsResponseBase Uses

func (sv StructuredValue) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsSearchAction Uses

func (sv StructuredValue) AsSearchAction() (*SearchAction, bool)

AsSearchAction is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsSearchResponse Uses

func (sv StructuredValue) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsSearchResultsAnswer Uses

func (sv StructuredValue) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsStructuredValue Uses

func (sv StructuredValue) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsThing Uses

func (sv StructuredValue) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) MarshalJSON Uses

func (sv StructuredValue) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StructuredValue.

func (*StructuredValue) UnmarshalJSON Uses

func (sv *StructuredValue) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for StructuredValue struct.

type Thing Uses

type Thing 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"`
    // 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 BasicEntitiesEntityPresentationInfo `json:"entityPresentationInfo,omitempty"`
    // ReadLink - READ-ONLY; The URL that returns this resource.
    ReadLink *string `json:"readLink,omitempty"`
    // WebSearchURL - READ-ONLY; The URL to Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // PotentialAction - READ-ONLY
    PotentialAction *[]BasicAction `json:"potentialAction,omitempty"`
    // ImmediateAction - READ-ONLY
    ImmediateAction *[]BasicAction `json:"immediateAction,omitempty"`
    // PreferredClickthroughURL - READ-ONLY
    PreferredClickthroughURL *string `json:"preferredClickthroughUrl,omitempty"`
    // AdaptiveCard - READ-ONLY
    AdaptiveCard *string `json:"adaptiveCard,omitempty"`
    // ID - READ-ONLY; A String identifier.
    ID  *string `json:"id,omitempty"`
    // Type - Possible values include: 'TypeResponseBase', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeSearchResponse', 'TypePostalAddress', 'TypePlace', 'TypeAction', 'TypeResponse', 'TypeIdentifiable', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeSearchAction', 'TypeStructuredValue'
    Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Thing defines a thing.

func (Thing) AsAction Uses

func (t Thing) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for Thing.

func (Thing) AsAnswer Uses

func (t Thing) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicAction Uses

func (t Thing) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicAnswer Uses

func (t Thing) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicCreativeWork Uses

func (t Thing) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicIdentifiable Uses

func (t Thing) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicIntangible Uses

func (t Thing) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicResponse Uses

func (t Thing) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicResponseBase Uses

func (t Thing) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicSearchResultsAnswer Uses

func (t Thing) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicStructuredValue Uses

func (t Thing) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicThing Uses

func (t Thing) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Thing.

func (Thing) AsCreativeWork Uses

func (t Thing) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Thing.

func (Thing) AsErrorResponse Uses

func (t Thing) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Thing.

func (Thing) AsIdentifiable Uses

func (t Thing) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Thing.

func (Thing) AsIntangible Uses

func (t Thing) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Thing.

func (Thing) AsPlace Uses

func (t Thing) AsPlace() (*Place, bool)

AsPlace is the BasicResponseBase implementation for Thing.

func (Thing) AsPlaces Uses

func (t Thing) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for Thing.

func (Thing) AsPostalAddress Uses

func (t Thing) AsPostalAddress() (*PostalAddress, bool)

AsPostalAddress is the BasicResponseBase implementation for Thing.

func (Thing) AsResponse Uses

func (t Thing) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Thing.

func (Thing) AsResponseBase Uses

func (t Thing) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Thing.

func (Thing) AsSearchAction Uses

func (t Thing) AsSearchAction() (*SearchAction, bool)

AsSearchAction is the BasicResponseBase implementation for Thing.

func (Thing) AsSearchResponse Uses

func (t Thing) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Thing.

func (Thing) AsSearchResultsAnswer Uses

func (t Thing) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Thing.

func (Thing) AsStructuredValue Uses

func (t Thing) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Thing.

func (Thing) AsThing Uses

func (t Thing) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Thing.

func (Thing) MarshalJSON Uses

func (t Thing) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Thing.

func (*Thing) UnmarshalJSON Uses

func (t *Thing) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Thing struct.

type Type Uses

type Type string

Type enumerates the values for type.

const (
    // TypeQueryContext ...
    TypeQueryContext Type = "QueryContext"
)

func PossibleTypeValues Uses

func PossibleTypeValues() []Type

PossibleTypeValues returns an array of possible values for the Type const type.

type TypeBasicEntitiesEntityPresentationInfo Uses

type TypeBasicEntitiesEntityPresentationInfo string

TypeBasicEntitiesEntityPresentationInfo enumerates the values for type basic entities entity presentation info.

const (
    // TypeEntitiesEntityPresentationInfo ...
    TypeEntitiesEntityPresentationInfo TypeBasicEntitiesEntityPresentationInfo = "Entities/EntityPresentationInfo"
)

func PossibleTypeBasicEntitiesEntityPresentationInfoValues Uses

func PossibleTypeBasicEntitiesEntityPresentationInfoValues() []TypeBasicEntitiesEntityPresentationInfo

PossibleTypeBasicEntitiesEntityPresentationInfoValues returns an array of possible values for the TypeBasicEntitiesEntityPresentationInfo const type.

type TypeBasicError Uses

type TypeBasicError string

TypeBasicError enumerates the values for type basic error.

const (
    // TypeError ...
    TypeError TypeBasicError = "Error"
)

func PossibleTypeBasicErrorValues Uses

func PossibleTypeBasicErrorValues() []TypeBasicError

PossibleTypeBasicErrorValues returns an array of possible values for the TypeBasicError const type.

type TypeBasicGeoCoordinates Uses

type TypeBasicGeoCoordinates string

TypeBasicGeoCoordinates enumerates the values for type basic geo coordinates.

const (
    // TypeGeoCoordinates ...
    TypeGeoCoordinates TypeBasicGeoCoordinates = "GeoCoordinates"
)

func PossibleTypeBasicGeoCoordinatesValues Uses

func PossibleTypeBasicGeoCoordinatesValues() []TypeBasicGeoCoordinates

PossibleTypeBasicGeoCoordinatesValues returns an array of possible values for the TypeBasicGeoCoordinates const type.

type TypeBasicResponseBase Uses

type TypeBasicResponseBase string

TypeBasicResponseBase enumerates the values for type basic response base.

const (
    // TypeAction ...
    TypeAction TypeBasicResponseBase = "Action"
    // TypeAnswer ...
    TypeAnswer TypeBasicResponseBase = "Answer"
    // TypeCreativeWork ...
    TypeCreativeWork TypeBasicResponseBase = "CreativeWork"
    // TypeErrorResponse ...
    TypeErrorResponse TypeBasicResponseBase = "ErrorResponse"
    // TypeIdentifiable ...
    TypeIdentifiable TypeBasicResponseBase = "Identifiable"
    // TypeIntangible ...
    TypeIntangible TypeBasicResponseBase = "Intangible"
    // TypePlace ...
    TypePlace TypeBasicResponseBase = "Place"
    // TypePlaces ...
    TypePlaces TypeBasicResponseBase = "Places"
    // TypePostalAddress ...
    TypePostalAddress TypeBasicResponseBase = "PostalAddress"
    // TypeResponse ...
    TypeResponse TypeBasicResponseBase = "Response"
    // TypeResponseBase ...
    TypeResponseBase TypeBasicResponseBase = "ResponseBase"
    // TypeSearchAction ...
    TypeSearchAction TypeBasicResponseBase = "SearchAction"
    // TypeSearchResponse ...
    TypeSearchResponse TypeBasicResponseBase = "SearchResponse"
    // TypeSearchResultsAnswer ...
    TypeSearchResultsAnswer TypeBasicResponseBase = "SearchResultsAnswer"
    // TypeStructuredValue ...
    TypeStructuredValue TypeBasicResponseBase = "StructuredValue"
    // TypeThing ...
    TypeThing TypeBasicResponseBase = "Thing"
)

func PossibleTypeBasicResponseBaseValues Uses

func PossibleTypeBasicResponseBaseValues() []TypeBasicResponseBase

PossibleTypeBasicResponseBaseValues returns an array of possible values for the TypeBasicResponseBase const type.

Directories

PathSynopsis
localsearchapi

Package localsearch imports 7 packages (graph) and is imported by 5 packages. Updated 2019-10-02. Refresh now. Tools for package owners.