Documentation ¶
Overview ¶
Package dialogflow provides access to the Dialogflow API.
This package is DEPRECATED. Use package cloud.google.com/go/dialogflow/apiv2 instead.
For product documentation, see: https://cloud.google.com/dialogflow/
Creating a client ¶
Usage example:
import "google.golang.org/api/dialogflow/v2" ... ctx := context.Background() dialogflowService, err := dialogflow.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:
dialogflowService, err := dialogflow.NewService(ctx, option.WithScopes(dialogflow.DialogflowScope))
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
dialogflowService, err := dialogflow.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) dialogflowService, err := dialogflow.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- Constants
- type GoogleCloudDialogflowCxV3PageInfo
- type GoogleCloudDialogflowCxV3PageInfoFormInfo
- type GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo
- type GoogleCloudDialogflowCxV3ResponseMessage
- type GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess
- type GoogleCloudDialogflowCxV3ResponseMessageEndInteraction
- type GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff
- type GoogleCloudDialogflowCxV3ResponseMessageMixedAudio
- type GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment
- type GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText
- type GoogleCloudDialogflowCxV3ResponseMessagePlayAudio
- type GoogleCloudDialogflowCxV3ResponseMessageText
- type GoogleCloudDialogflowCxV3SessionInfo
- type GoogleCloudDialogflowCxV3WebhookRequest
- type GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo
- type GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
- type GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue
- type GoogleCloudDialogflowCxV3WebhookResponse
- type GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse
- type GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata
- type GoogleCloudDialogflowCxV3beta1ExportAgentResponse
- type GoogleCloudDialogflowCxV3beta1PageInfo
- type GoogleCloudDialogflowCxV3beta1PageInfoFormInfo
- type GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo
- type GoogleCloudDialogflowCxV3beta1ResponseMessage
- type GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess
- type GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction
- type GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff
- type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio
- type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment
- type GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText
- type GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
- type GoogleCloudDialogflowCxV3beta1ResponseMessageText
- type GoogleCloudDialogflowCxV3beta1SessionInfo
- type GoogleCloudDialogflowCxV3beta1WebhookRequest
- type GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo
- type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
- type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue
- type GoogleCloudDialogflowCxV3beta1WebhookResponse
- type GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse
- type GoogleCloudDialogflowV2Agent
- type GoogleCloudDialogflowV2AnnotatedMessagePart
- type GoogleCloudDialogflowV2BatchCreateEntitiesRequest
- type GoogleCloudDialogflowV2BatchDeleteEntitiesRequest
- type GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest
- type GoogleCloudDialogflowV2BatchDeleteIntentsRequest
- type GoogleCloudDialogflowV2BatchUpdateEntitiesRequest
- type GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest
- type GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
- type GoogleCloudDialogflowV2BatchUpdateIntentsRequest
- type GoogleCloudDialogflowV2BatchUpdateIntentsResponse
- type GoogleCloudDialogflowV2Context
- type GoogleCloudDialogflowV2ConversationEvent
- type GoogleCloudDialogflowV2DetectIntentRequest
- type GoogleCloudDialogflowV2DetectIntentResponse
- type GoogleCloudDialogflowV2EntityType
- type GoogleCloudDialogflowV2EntityTypeBatch
- type GoogleCloudDialogflowV2EntityTypeEntity
- type GoogleCloudDialogflowV2Environment
- type GoogleCloudDialogflowV2EventInput
- type GoogleCloudDialogflowV2ExportAgentRequest
- type GoogleCloudDialogflowV2ExportAgentResponse
- type GoogleCloudDialogflowV2Fulfillment
- type GoogleCloudDialogflowV2FulfillmentFeature
- type GoogleCloudDialogflowV2FulfillmentGenericWebService
- type GoogleCloudDialogflowV2ImportAgentRequest
- type GoogleCloudDialogflowV2InputAudioConfig
- type GoogleCloudDialogflowV2Intent
- type GoogleCloudDialogflowV2IntentBatch
- type GoogleCloudDialogflowV2IntentFollowupIntentInfo
- type GoogleCloudDialogflowV2IntentMessage
- type GoogleCloudDialogflowV2IntentMessageBasicCard
- type GoogleCloudDialogflowV2IntentMessageBasicCardButton
- type GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction
- type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard
- type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem
- type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
- type GoogleCloudDialogflowV2IntentMessageCard
- type GoogleCloudDialogflowV2IntentMessageCardButton
- type GoogleCloudDialogflowV2IntentMessageCarouselSelect
- type GoogleCloudDialogflowV2IntentMessageCarouselSelectItem
- type GoogleCloudDialogflowV2IntentMessageColumnProperties
- type GoogleCloudDialogflowV2IntentMessageImage
- type GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion
- type GoogleCloudDialogflowV2IntentMessageListSelect
- type GoogleCloudDialogflowV2IntentMessageListSelectItem
- type GoogleCloudDialogflowV2IntentMessageMediaContent
- type GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject
- type GoogleCloudDialogflowV2IntentMessageQuickReplies
- type GoogleCloudDialogflowV2IntentMessageSelectItemInfo
- type GoogleCloudDialogflowV2IntentMessageSimpleResponse
- type GoogleCloudDialogflowV2IntentMessageSimpleResponses
- type GoogleCloudDialogflowV2IntentMessageSuggestion
- type GoogleCloudDialogflowV2IntentMessageSuggestions
- type GoogleCloudDialogflowV2IntentMessageTableCard
- type GoogleCloudDialogflowV2IntentMessageTableCardCell
- type GoogleCloudDialogflowV2IntentMessageTableCardRow
- type GoogleCloudDialogflowV2IntentMessageText
- type GoogleCloudDialogflowV2IntentParameter
- type GoogleCloudDialogflowV2IntentTrainingPhrase
- type GoogleCloudDialogflowV2IntentTrainingPhrasePart
- type GoogleCloudDialogflowV2ListContextsResponse
- type GoogleCloudDialogflowV2ListEntityTypesResponse
- type GoogleCloudDialogflowV2ListEnvironmentsResponse
- type GoogleCloudDialogflowV2ListIntentsResponse
- type GoogleCloudDialogflowV2ListSessionEntityTypesResponse
- type GoogleCloudDialogflowV2Message
- type GoogleCloudDialogflowV2MessageAnnotation
- type GoogleCloudDialogflowV2OriginalDetectIntentRequest
- type GoogleCloudDialogflowV2OutputAudioConfig
- type GoogleCloudDialogflowV2QueryInput
- type GoogleCloudDialogflowV2QueryParameters
- type GoogleCloudDialogflowV2QueryResult
- type GoogleCloudDialogflowV2RestoreAgentRequest
- type GoogleCloudDialogflowV2SearchAgentsResponse
- type GoogleCloudDialogflowV2Sentiment
- type GoogleCloudDialogflowV2SentimentAnalysisRequestConfig
- type GoogleCloudDialogflowV2SentimentAnalysisResult
- type GoogleCloudDialogflowV2SessionEntityType
- type GoogleCloudDialogflowV2SpeechContext
- type GoogleCloudDialogflowV2SynthesizeSpeechConfig
- type GoogleCloudDialogflowV2TextInput
- type GoogleCloudDialogflowV2TrainAgentRequest
- type GoogleCloudDialogflowV2ValidationError
- type GoogleCloudDialogflowV2ValidationResult
- type GoogleCloudDialogflowV2VoiceSelectionParams
- type GoogleCloudDialogflowV2WebhookRequest
- type GoogleCloudDialogflowV2WebhookResponse
- type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
- type GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse
- type GoogleCloudDialogflowV2beta1Context
- type GoogleCloudDialogflowV2beta1EntityType
- type GoogleCloudDialogflowV2beta1EntityTypeEntity
- type GoogleCloudDialogflowV2beta1EventInput
- type GoogleCloudDialogflowV2beta1ExportAgentResponse
- type GoogleCloudDialogflowV2beta1Intent
- type GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo
- type GoogleCloudDialogflowV2beta1IntentMessage
- type GoogleCloudDialogflowV2beta1IntentMessageBasicCard
- type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton
- type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction
- type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard
- type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem
- type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
- type GoogleCloudDialogflowV2beta1IntentMessageCard
- type GoogleCloudDialogflowV2beta1IntentMessageCardButton
- type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect
- type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem
- type GoogleCloudDialogflowV2beta1IntentMessageColumnProperties
- type GoogleCloudDialogflowV2beta1IntentMessageImage
- type GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion
- type GoogleCloudDialogflowV2beta1IntentMessageListSelect
- type GoogleCloudDialogflowV2beta1IntentMessageListSelectItem
- type GoogleCloudDialogflowV2beta1IntentMessageMediaContent
- type GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject
- type GoogleCloudDialogflowV2beta1IntentMessageQuickReplies
- type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent
- type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia
- type GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard
- type GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard
- type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction
- type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial
- type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri
- type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation
- type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply
- type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion
- type GoogleCloudDialogflowV2beta1IntentMessageRbmText
- type GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo
- type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse
- type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses
- type GoogleCloudDialogflowV2beta1IntentMessageSuggestion
- type GoogleCloudDialogflowV2beta1IntentMessageSuggestions
- type GoogleCloudDialogflowV2beta1IntentMessageTableCard
- type GoogleCloudDialogflowV2beta1IntentMessageTableCardCell
- type GoogleCloudDialogflowV2beta1IntentMessageTableCardRow
- type GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
- type GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech
- type GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall
- type GoogleCloudDialogflowV2beta1IntentMessageText
- type GoogleCloudDialogflowV2beta1IntentParameter
- type GoogleCloudDialogflowV2beta1IntentTrainingPhrase
- type GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart
- type GoogleCloudDialogflowV2beta1KnowledgeAnswers
- type GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
- type GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
- type GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
- type GoogleCloudDialogflowV2beta1QueryResult
- type GoogleCloudDialogflowV2beta1Sentiment
- type GoogleCloudDialogflowV2beta1SentimentAnalysisResult
- type GoogleCloudDialogflowV2beta1SessionEntityType
- type GoogleCloudDialogflowV2beta1WebhookRequest
- type GoogleCloudDialogflowV2beta1WebhookResponse
- type GoogleLongrunningListOperationsResponse
- type GoogleLongrunningOperation
- type GoogleProtobufEmpty
- type GoogleRpcStatus
- type GoogleTypeLatLng
- type ProjectsAgentEntityTypesBatchDeleteCall
- func (c *ProjectsAgentEntityTypesBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesBatchDeleteCall
- func (c *ProjectsAgentEntityTypesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *ProjectsAgentEntityTypesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesBatchDeleteCall
- func (c *ProjectsAgentEntityTypesBatchDeleteCall) Header() http.Header
- type ProjectsAgentEntityTypesBatchUpdateCall
- func (c *ProjectsAgentEntityTypesBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesBatchUpdateCall
- func (c *ProjectsAgentEntityTypesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *ProjectsAgentEntityTypesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesBatchUpdateCall
- func (c *ProjectsAgentEntityTypesBatchUpdateCall) Header() http.Header
- type ProjectsAgentEntityTypesCreateCall
- func (c *ProjectsAgentEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesCreateCall
- func (c *ProjectsAgentEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EntityType, error)
- func (c *ProjectsAgentEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesCreateCall
- func (c *ProjectsAgentEntityTypesCreateCall) Header() http.Header
- func (c *ProjectsAgentEntityTypesCreateCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesCreateCall
- type ProjectsAgentEntityTypesDeleteCall
- func (c *ProjectsAgentEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesDeleteCall
- func (c *ProjectsAgentEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *ProjectsAgentEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesDeleteCall
- func (c *ProjectsAgentEntityTypesDeleteCall) Header() http.Header
- type ProjectsAgentEntityTypesEntitiesBatchCreateCall
- func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchCreateCall
- func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchCreateCall
- func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Header() http.Header
- type ProjectsAgentEntityTypesEntitiesBatchDeleteCall
- func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall
- func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall
- func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Header() http.Header
- type ProjectsAgentEntityTypesEntitiesBatchUpdateCall
- func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall
- func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall
- func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Header() http.Header
- type ProjectsAgentEntityTypesEntitiesService
- func (r *ProjectsAgentEntityTypesEntitiesService) BatchCreate(parent string, ...) *ProjectsAgentEntityTypesEntitiesBatchCreateCall
- func (r *ProjectsAgentEntityTypesEntitiesService) BatchDelete(parent string, ...) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall
- func (r *ProjectsAgentEntityTypesEntitiesService) BatchUpdate(parent string, ...) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall
- type ProjectsAgentEntityTypesGetCall
- func (c *ProjectsAgentEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentEntityTypesGetCall
- func (c *ProjectsAgentEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EntityType, error)
- func (c *ProjectsAgentEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesGetCall
- func (c *ProjectsAgentEntityTypesGetCall) Header() http.Header
- func (c *ProjectsAgentEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEntityTypesGetCall
- func (c *ProjectsAgentEntityTypesGetCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesGetCall
- type ProjectsAgentEntityTypesListCall
- func (c *ProjectsAgentEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentEntityTypesListCall
- func (c *ProjectsAgentEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListEntityTypesResponse, error)
- func (c *ProjectsAgentEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesListCall
- func (c *ProjectsAgentEntityTypesListCall) Header() http.Header
- func (c *ProjectsAgentEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentEntityTypesListCall
- func (c *ProjectsAgentEntityTypesListCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesListCall
- func (c *ProjectsAgentEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentEntityTypesListCall
- func (c *ProjectsAgentEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentEntityTypesListCall
- func (c *ProjectsAgentEntityTypesListCall) Pages(ctx context.Context, ...) error
- type ProjectsAgentEntityTypesPatchCall
- func (c *ProjectsAgentEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentEntityTypesPatchCall
- func (c *ProjectsAgentEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EntityType, error)
- func (c *ProjectsAgentEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesPatchCall
- func (c *ProjectsAgentEntityTypesPatchCall) Header() http.Header
- func (c *ProjectsAgentEntityTypesPatchCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesPatchCall
- func (c *ProjectsAgentEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentEntityTypesPatchCall
- type ProjectsAgentEntityTypesService
- func (r *ProjectsAgentEntityTypesService) BatchDelete(parent string, ...) *ProjectsAgentEntityTypesBatchDeleteCall
- func (r *ProjectsAgentEntityTypesService) BatchUpdate(parent string, ...) *ProjectsAgentEntityTypesBatchUpdateCall
- func (r *ProjectsAgentEntityTypesService) Create(parent string, ...) *ProjectsAgentEntityTypesCreateCall
- func (r *ProjectsAgentEntityTypesService) Delete(name string) *ProjectsAgentEntityTypesDeleteCall
- func (r *ProjectsAgentEntityTypesService) Get(name string) *ProjectsAgentEntityTypesGetCall
- func (r *ProjectsAgentEntityTypesService) List(parent string) *ProjectsAgentEntityTypesListCall
- func (r *ProjectsAgentEntityTypesService) Patch(nameid string, ...) *ProjectsAgentEntityTypesPatchCall
- type ProjectsAgentEnvironmentsListCall
- func (c *ProjectsAgentEnvironmentsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsListCall
- func (c *ProjectsAgentEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListEnvironmentsResponse, error)
- func (c *ProjectsAgentEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsListCall
- func (c *ProjectsAgentEnvironmentsListCall) Header() http.Header
- func (c *ProjectsAgentEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsListCall
- func (c *ProjectsAgentEnvironmentsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsListCall
- func (c *ProjectsAgentEnvironmentsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsListCall
- func (c *ProjectsAgentEnvironmentsListCall) Pages(ctx context.Context, ...) error
- type ProjectsAgentEnvironmentsService
- type ProjectsAgentEnvironmentsUsersService
- type ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error)
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Header() http.Header
- type ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Header() http.Header
- type ProjectsAgentEnvironmentsUsersSessionsContextsGetCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error)
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Header() http.Header
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall
- type ProjectsAgentEnvironmentsUsersSessionsContextsListCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListContextsResponse, error)
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Header() http.Header
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Pages(ctx context.Context, ...) error
- type ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error)
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Header() http.Header
- func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall
- type ProjectsAgentEnvironmentsUsersSessionsContextsService
- func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Create(parent string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall
- func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Delete(name string) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall
- func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Get(name string) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall
- func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) List(parent string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall
- func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Patch(nameid string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall
- type ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Header() http.Header
- type ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2DetectIntentResponse, error)
- func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Header() http.Header
- type ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error)
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Header() http.Header
- type ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Header() http.Header
- type ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error)
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Header() http.Header
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall
- type ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListSessionEntityTypesResponse, error)
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Header() http.Header
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Pages(ctx context.Context, ...) error
- type ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error)
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Header() http.Header
- func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall
- type ProjectsAgentEnvironmentsUsersSessionsEntityTypesService
- func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Create(parent string, ...) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall
- func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Delete(name string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall
- func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Get(name string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall
- func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) List(parent string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall
- func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Patch(nameid string, ...) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall
- type ProjectsAgentEnvironmentsUsersSessionsService
- type ProjectsAgentExportCall
- func (c *ProjectsAgentExportCall) Context(ctx context.Context) *ProjectsAgentExportCall
- func (c *ProjectsAgentExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *ProjectsAgentExportCall) Fields(s ...googleapi.Field) *ProjectsAgentExportCall
- func (c *ProjectsAgentExportCall) Header() http.Header
- type ProjectsAgentGetFulfillmentCall
- func (c *ProjectsAgentGetFulfillmentCall) Context(ctx context.Context) *ProjectsAgentGetFulfillmentCall
- func (c *ProjectsAgentGetFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Fulfillment, error)
- func (c *ProjectsAgentGetFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsAgentGetFulfillmentCall
- func (c *ProjectsAgentGetFulfillmentCall) Header() http.Header
- func (c *ProjectsAgentGetFulfillmentCall) IfNoneMatch(entityTag string) *ProjectsAgentGetFulfillmentCall
- type ProjectsAgentGetValidationResultCall
- func (c *ProjectsAgentGetValidationResultCall) Context(ctx context.Context) *ProjectsAgentGetValidationResultCall
- func (c *ProjectsAgentGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ValidationResult, error)
- func (c *ProjectsAgentGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsAgentGetValidationResultCall
- func (c *ProjectsAgentGetValidationResultCall) Header() http.Header
- func (c *ProjectsAgentGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsAgentGetValidationResultCall
- func (c *ProjectsAgentGetValidationResultCall) LanguageCode(languageCode string) *ProjectsAgentGetValidationResultCall
- type ProjectsAgentImportCall
- func (c *ProjectsAgentImportCall) Context(ctx context.Context) *ProjectsAgentImportCall
- func (c *ProjectsAgentImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *ProjectsAgentImportCall) Fields(s ...googleapi.Field) *ProjectsAgentImportCall
- func (c *ProjectsAgentImportCall) Header() http.Header
- type ProjectsAgentIntentsBatchDeleteCall
- func (c *ProjectsAgentIntentsBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentIntentsBatchDeleteCall
- func (c *ProjectsAgentIntentsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *ProjectsAgentIntentsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsBatchDeleteCall
- func (c *ProjectsAgentIntentsBatchDeleteCall) Header() http.Header
- type ProjectsAgentIntentsBatchUpdateCall
- func (c *ProjectsAgentIntentsBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentIntentsBatchUpdateCall
- func (c *ProjectsAgentIntentsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *ProjectsAgentIntentsBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsBatchUpdateCall
- func (c *ProjectsAgentIntentsBatchUpdateCall) Header() http.Header
- type ProjectsAgentIntentsCreateCall
- func (c *ProjectsAgentIntentsCreateCall) Context(ctx context.Context) *ProjectsAgentIntentsCreateCall
- func (c *ProjectsAgentIntentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Intent, error)
- func (c *ProjectsAgentIntentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsCreateCall
- func (c *ProjectsAgentIntentsCreateCall) Header() http.Header
- func (c *ProjectsAgentIntentsCreateCall) IntentView(intentView string) *ProjectsAgentIntentsCreateCall
- func (c *ProjectsAgentIntentsCreateCall) LanguageCode(languageCode string) *ProjectsAgentIntentsCreateCall
- type ProjectsAgentIntentsDeleteCall
- func (c *ProjectsAgentIntentsDeleteCall) Context(ctx context.Context) *ProjectsAgentIntentsDeleteCall
- func (c *ProjectsAgentIntentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *ProjectsAgentIntentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsDeleteCall
- func (c *ProjectsAgentIntentsDeleteCall) Header() http.Header
- type ProjectsAgentIntentsGetCall
- func (c *ProjectsAgentIntentsGetCall) Context(ctx context.Context) *ProjectsAgentIntentsGetCall
- func (c *ProjectsAgentIntentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Intent, error)
- func (c *ProjectsAgentIntentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsGetCall
- func (c *ProjectsAgentIntentsGetCall) Header() http.Header
- func (c *ProjectsAgentIntentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentIntentsGetCall
- func (c *ProjectsAgentIntentsGetCall) IntentView(intentView string) *ProjectsAgentIntentsGetCall
- func (c *ProjectsAgentIntentsGetCall) LanguageCode(languageCode string) *ProjectsAgentIntentsGetCall
- type ProjectsAgentIntentsListCall
- func (c *ProjectsAgentIntentsListCall) Context(ctx context.Context) *ProjectsAgentIntentsListCall
- func (c *ProjectsAgentIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListIntentsResponse, error)
- func (c *ProjectsAgentIntentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsListCall
- func (c *ProjectsAgentIntentsListCall) Header() http.Header
- func (c *ProjectsAgentIntentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentIntentsListCall
- func (c *ProjectsAgentIntentsListCall) IntentView(intentView string) *ProjectsAgentIntentsListCall
- func (c *ProjectsAgentIntentsListCall) LanguageCode(languageCode string) *ProjectsAgentIntentsListCall
- func (c *ProjectsAgentIntentsListCall) PageSize(pageSize int64) *ProjectsAgentIntentsListCall
- func (c *ProjectsAgentIntentsListCall) PageToken(pageToken string) *ProjectsAgentIntentsListCall
- func (c *ProjectsAgentIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListIntentsResponse) error) error
- type ProjectsAgentIntentsPatchCall
- func (c *ProjectsAgentIntentsPatchCall) Context(ctx context.Context) *ProjectsAgentIntentsPatchCall
- func (c *ProjectsAgentIntentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Intent, error)
- func (c *ProjectsAgentIntentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsPatchCall
- func (c *ProjectsAgentIntentsPatchCall) Header() http.Header
- func (c *ProjectsAgentIntentsPatchCall) IntentView(intentView string) *ProjectsAgentIntentsPatchCall
- func (c *ProjectsAgentIntentsPatchCall) LanguageCode(languageCode string) *ProjectsAgentIntentsPatchCall
- func (c *ProjectsAgentIntentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentIntentsPatchCall
- type ProjectsAgentIntentsService
- func (r *ProjectsAgentIntentsService) BatchDelete(parent string, ...) *ProjectsAgentIntentsBatchDeleteCall
- func (r *ProjectsAgentIntentsService) BatchUpdate(parent string, ...) *ProjectsAgentIntentsBatchUpdateCall
- func (r *ProjectsAgentIntentsService) Create(parent string, googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent) *ProjectsAgentIntentsCreateCall
- func (r *ProjectsAgentIntentsService) Delete(name string) *ProjectsAgentIntentsDeleteCall
- func (r *ProjectsAgentIntentsService) Get(name string) *ProjectsAgentIntentsGetCall
- func (r *ProjectsAgentIntentsService) List(parent string) *ProjectsAgentIntentsListCall
- func (r *ProjectsAgentIntentsService) Patch(nameid string, googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent) *ProjectsAgentIntentsPatchCall
- type ProjectsAgentRestoreCall
- func (c *ProjectsAgentRestoreCall) Context(ctx context.Context) *ProjectsAgentRestoreCall
- func (c *ProjectsAgentRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *ProjectsAgentRestoreCall) Fields(s ...googleapi.Field) *ProjectsAgentRestoreCall
- func (c *ProjectsAgentRestoreCall) Header() http.Header
- type ProjectsAgentSearchCall
- func (c *ProjectsAgentSearchCall) Context(ctx context.Context) *ProjectsAgentSearchCall
- func (c *ProjectsAgentSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SearchAgentsResponse, error)
- func (c *ProjectsAgentSearchCall) Fields(s ...googleapi.Field) *ProjectsAgentSearchCall
- func (c *ProjectsAgentSearchCall) Header() http.Header
- func (c *ProjectsAgentSearchCall) IfNoneMatch(entityTag string) *ProjectsAgentSearchCall
- func (c *ProjectsAgentSearchCall) PageSize(pageSize int64) *ProjectsAgentSearchCall
- func (c *ProjectsAgentSearchCall) PageToken(pageToken string) *ProjectsAgentSearchCall
- func (c *ProjectsAgentSearchCall) Pages(ctx context.Context, ...) error
- type ProjectsAgentService
- func (r *ProjectsAgentService) Export(parent string, ...) *ProjectsAgentExportCall
- func (r *ProjectsAgentService) GetFulfillment(name string) *ProjectsAgentGetFulfillmentCall
- func (r *ProjectsAgentService) GetValidationResult(parent string) *ProjectsAgentGetValidationResultCall
- func (r *ProjectsAgentService) Import(parent string, ...) *ProjectsAgentImportCall
- func (r *ProjectsAgentService) Restore(parent string, ...) *ProjectsAgentRestoreCall
- func (r *ProjectsAgentService) Search(parent string) *ProjectsAgentSearchCall
- func (r *ProjectsAgentService) Train(parent string, ...) *ProjectsAgentTrainCall
- func (r *ProjectsAgentService) UpdateFulfillment(nameid string, ...) *ProjectsAgentUpdateFulfillmentCall
- type ProjectsAgentSessionsContextsCreateCall
- func (c *ProjectsAgentSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsCreateCall
- func (c *ProjectsAgentSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error)
- func (c *ProjectsAgentSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsCreateCall
- func (c *ProjectsAgentSessionsContextsCreateCall) Header() http.Header
- type ProjectsAgentSessionsContextsDeleteCall
- func (c *ProjectsAgentSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsDeleteCall
- func (c *ProjectsAgentSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *ProjectsAgentSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsDeleteCall
- func (c *ProjectsAgentSessionsContextsDeleteCall) Header() http.Header
- type ProjectsAgentSessionsContextsGetCall
- func (c *ProjectsAgentSessionsContextsGetCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsGetCall
- func (c *ProjectsAgentSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error)
- func (c *ProjectsAgentSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsGetCall
- func (c *ProjectsAgentSessionsContextsGetCall) Header() http.Header
- func (c *ProjectsAgentSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsContextsGetCall
- type ProjectsAgentSessionsContextsListCall
- func (c *ProjectsAgentSessionsContextsListCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsListCall
- func (c *ProjectsAgentSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListContextsResponse, error)
- func (c *ProjectsAgentSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsListCall
- func (c *ProjectsAgentSessionsContextsListCall) Header() http.Header
- func (c *ProjectsAgentSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsContextsListCall
- func (c *ProjectsAgentSessionsContextsListCall) PageSize(pageSize int64) *ProjectsAgentSessionsContextsListCall
- func (c *ProjectsAgentSessionsContextsListCall) PageToken(pageToken string) *ProjectsAgentSessionsContextsListCall
- func (c *ProjectsAgentSessionsContextsListCall) Pages(ctx context.Context, ...) error
- type ProjectsAgentSessionsContextsPatchCall
- func (c *ProjectsAgentSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsPatchCall
- func (c *ProjectsAgentSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error)
- func (c *ProjectsAgentSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsPatchCall
- func (c *ProjectsAgentSessionsContextsPatchCall) Header() http.Header
- func (c *ProjectsAgentSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsAgentSessionsContextsPatchCall
- type ProjectsAgentSessionsContextsService
- func (r *ProjectsAgentSessionsContextsService) Create(parent string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsAgentSessionsContextsCreateCall
- func (r *ProjectsAgentSessionsContextsService) Delete(name string) *ProjectsAgentSessionsContextsDeleteCall
- func (r *ProjectsAgentSessionsContextsService) Get(name string) *ProjectsAgentSessionsContextsGetCall
- func (r *ProjectsAgentSessionsContextsService) List(parent string) *ProjectsAgentSessionsContextsListCall
- func (r *ProjectsAgentSessionsContextsService) Patch(nameid string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsAgentSessionsContextsPatchCall
- type ProjectsAgentSessionsDeleteContextsCall
- func (c *ProjectsAgentSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsAgentSessionsDeleteContextsCall
- func (c *ProjectsAgentSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *ProjectsAgentSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsDeleteContextsCall
- func (c *ProjectsAgentSessionsDeleteContextsCall) Header() http.Header
- type ProjectsAgentSessionsDetectIntentCall
- func (c *ProjectsAgentSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsAgentSessionsDetectIntentCall
- func (c *ProjectsAgentSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2DetectIntentResponse, error)
- func (c *ProjectsAgentSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsDetectIntentCall
- func (c *ProjectsAgentSessionsDetectIntentCall) Header() http.Header
- type ProjectsAgentSessionsEntityTypesCreateCall
- func (c *ProjectsAgentSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesCreateCall
- func (c *ProjectsAgentSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error)
- func (c *ProjectsAgentSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesCreateCall
- func (c *ProjectsAgentSessionsEntityTypesCreateCall) Header() http.Header
- type ProjectsAgentSessionsEntityTypesDeleteCall
- func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesDeleteCall
- func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesDeleteCall
- func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Header() http.Header
- type ProjectsAgentSessionsEntityTypesGetCall
- func (c *ProjectsAgentSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesGetCall
- func (c *ProjectsAgentSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error)
- func (c *ProjectsAgentSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesGetCall
- func (c *ProjectsAgentSessionsEntityTypesGetCall) Header() http.Header
- func (c *ProjectsAgentSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsEntityTypesGetCall
- type ProjectsAgentSessionsEntityTypesListCall
- func (c *ProjectsAgentSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesListCall
- func (c *ProjectsAgentSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListSessionEntityTypesResponse, error)
- func (c *ProjectsAgentSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesListCall
- func (c *ProjectsAgentSessionsEntityTypesListCall) Header() http.Header
- func (c *ProjectsAgentSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsEntityTypesListCall
- func (c *ProjectsAgentSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentSessionsEntityTypesListCall
- func (c *ProjectsAgentSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentSessionsEntityTypesListCall
- func (c *ProjectsAgentSessionsEntityTypesListCall) Pages(ctx context.Context, ...) error
- type ProjectsAgentSessionsEntityTypesPatchCall
- func (c *ProjectsAgentSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesPatchCall
- func (c *ProjectsAgentSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error)
- func (c *ProjectsAgentSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesPatchCall
- func (c *ProjectsAgentSessionsEntityTypesPatchCall) Header() http.Header
- func (c *ProjectsAgentSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentSessionsEntityTypesPatchCall
- type ProjectsAgentSessionsEntityTypesService
- func (r *ProjectsAgentSessionsEntityTypesService) Create(parent string, ...) *ProjectsAgentSessionsEntityTypesCreateCall
- func (r *ProjectsAgentSessionsEntityTypesService) Delete(name string) *ProjectsAgentSessionsEntityTypesDeleteCall
- func (r *ProjectsAgentSessionsEntityTypesService) Get(name string) *ProjectsAgentSessionsEntityTypesGetCall
- func (r *ProjectsAgentSessionsEntityTypesService) List(parent string) *ProjectsAgentSessionsEntityTypesListCall
- func (r *ProjectsAgentSessionsEntityTypesService) Patch(nameid string, ...) *ProjectsAgentSessionsEntityTypesPatchCall
- type ProjectsAgentSessionsService
- type ProjectsAgentTrainCall
- func (c *ProjectsAgentTrainCall) Context(ctx context.Context) *ProjectsAgentTrainCall
- func (c *ProjectsAgentTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *ProjectsAgentTrainCall) Fields(s ...googleapi.Field) *ProjectsAgentTrainCall
- func (c *ProjectsAgentTrainCall) Header() http.Header
- type ProjectsAgentUpdateFulfillmentCall
- func (c *ProjectsAgentUpdateFulfillmentCall) Context(ctx context.Context) *ProjectsAgentUpdateFulfillmentCall
- func (c *ProjectsAgentUpdateFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Fulfillment, error)
- func (c *ProjectsAgentUpdateFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsAgentUpdateFulfillmentCall
- func (c *ProjectsAgentUpdateFulfillmentCall) Header() http.Header
- func (c *ProjectsAgentUpdateFulfillmentCall) UpdateMask(updateMask string) *ProjectsAgentUpdateFulfillmentCall
- type ProjectsDeleteAgentCall
- func (c *ProjectsDeleteAgentCall) Context(ctx context.Context) *ProjectsDeleteAgentCall
- func (c *ProjectsDeleteAgentCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *ProjectsDeleteAgentCall) Fields(s ...googleapi.Field) *ProjectsDeleteAgentCall
- func (c *ProjectsDeleteAgentCall) Header() http.Header
- type ProjectsGetAgentCall
- func (c *ProjectsGetAgentCall) Context(ctx context.Context) *ProjectsGetAgentCall
- func (c *ProjectsGetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Agent, error)
- func (c *ProjectsGetAgentCall) Fields(s ...googleapi.Field) *ProjectsGetAgentCall
- func (c *ProjectsGetAgentCall) Header() http.Header
- func (c *ProjectsGetAgentCall) IfNoneMatch(entityTag string) *ProjectsGetAgentCall
- type ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
- type ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
- func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
- type ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error)
- func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Header() http.Header
- func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error
- type ProjectsLocationsOperationsService
- func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall
- func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
- func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
- type ProjectsLocationsService
- type ProjectsOperationsCancelCall
- func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall
- func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall
- func (c *ProjectsOperationsCancelCall) Header() http.Header
- type ProjectsOperationsGetCall
- func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall
- func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall
- func (c *ProjectsOperationsGetCall) Header() http.Header
- func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall
- type ProjectsOperationsListCall
- func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall
- func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error)
- func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall
- func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall
- func (c *ProjectsOperationsListCall) Header() http.Header
- func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall
- func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall
- func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall
- func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error
- type ProjectsOperationsService
- type ProjectsService
- type ProjectsSetAgentCall
- func (c *ProjectsSetAgentCall) Context(ctx context.Context) *ProjectsSetAgentCall
- func (c *ProjectsSetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Agent, error)
- func (c *ProjectsSetAgentCall) Fields(s ...googleapi.Field) *ProjectsSetAgentCall
- func (c *ProjectsSetAgentCall) Header() http.Header
- func (c *ProjectsSetAgentCall) UpdateMask(updateMask string) *ProjectsSetAgentCall
- type Service
Constants ¶
const ( // View and manage your data across Google Cloud Platform services CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" // View, manage and query your Dialogflow agents DialogflowScope = "https://www.googleapis.com/auth/dialogflow" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleCloudDialogflowCxV3PageInfo ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3PageInfo struct { // CurrentPage: Always present for WebhookRequest. Ignored for // WebhookResponse. The unique identifier of the current page. Format: // `projects//locations//agents//flows//pages/`. CurrentPage string `json:"currentPage,omitempty"` // FormInfo: Optional for both WebhookRequest and WebhookResponse. // Information about the form. FormInfo *GoogleCloudDialogflowCxV3PageInfoFormInfo `json:"formInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "CurrentPage") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CurrentPage") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3PageInfo: Represents page information communicated to and from the webhook.
func (*GoogleCloudDialogflowCxV3PageInfo) MarshalJSON ¶ added in v0.34.0
func (s *GoogleCloudDialogflowCxV3PageInfo) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3PageInfoFormInfo ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3PageInfoFormInfo struct { // ParameterInfo: Optional for both WebhookRequest and WebhookResponse. // The parameters contained in the form. Note that the webhook cannot // add or remove any form parameter. ParameterInfo []*GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "ParameterInfo") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ParameterInfo") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3PageInfoFormInfo: Represents form information.
func (*GoogleCloudDialogflowCxV3PageInfoFormInfo) MarshalJSON ¶ added in v0.34.0
func (s *GoogleCloudDialogflowCxV3PageInfoFormInfo) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo struct { // DisplayName: Always present for WebhookRequest. Required for // WebhookResponse. The human-readable name of the parameter, unique // within the form. This field cannot be modified by the webhook. DisplayName string `json:"displayName,omitempty"` // JustCollected: Optional for WebhookRequest. Ignored for // WebhookResponse. Indicates if the parameter value was just collected // on the last conversation turn. JustCollected bool `json:"justCollected,omitempty"` // Required: Optional for both WebhookRequest and WebhookResponse. // Indicates whether the parameter is required. Optional parameters will // not trigger prompts; however, they are filled if the user specifies // them. Required parameters must be filled before form filling // concludes. Required bool `json:"required,omitempty"` // State: Always present for WebhookRequest. Required for // WebhookResponse. The state of the parameter. This field can be set to // INVALID by the webhook to invalidate the parameter; other values set // by the webhook will be ignored. // // Possible values: // "PARAMETER_STATE_UNSPECIFIED" - Not specified. This value should be // never used. // "EMPTY" - Indicates that the parameter does not have a value. // "INVALID" - Indicates that the parameter value is invalid. This // field can be used by the webhook to invalidate the parameter and ask // the server to collect it from the user again. // "FILLED" - Indicates that the parameter has a value. State string `json:"state,omitempty"` // Value: Optional for both WebhookRequest and WebhookResponse. The // value of the parameter. This field can be set by the webhook to // change the parameter value. Value interface{} `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo: Represents parameter information.
func (*GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo) MarshalJSON ¶ added in v0.34.0
func (s *GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3ResponseMessage ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3ResponseMessage struct { // ConversationSuccess: Indicates that the conversation succeeded. ConversationSuccess *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"` // EndInteraction: Output only. A signal that indicates the interaction // with the Dialogflow agent has ended. This message is generated by // Dialogflow only when the conversation reaches `END_SESSION` or // `END_PAGE` page. It is not supposed to be defined by the user. It's // guaranteed that there is at most one such message in each response. EndInteraction *GoogleCloudDialogflowCxV3ResponseMessageEndInteraction `json:"endInteraction,omitempty"` // LiveAgentHandoff: Hands off conversation to a human agent. LiveAgentHandoff *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"` // MixedAudio: Output only. An audio response message composed of both // the synthesized Dialogflow agent responses and responses defined via // play_audio. This message is generated by Dialogflow only and not // supposed to be defined by the user. MixedAudio *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio `json:"mixedAudio,omitempty"` // OutputAudioText: A text or ssml response that is preferentially used // for TTS output audio synthesis, as described in the comment on the // ResponseMessage message. OutputAudioText *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"` // Payload: Returns a response containing a custom, platform-specific // payload. Payload googleapi.RawMessage `json:"payload,omitempty"` // PlayAudio: Signal that the client should play an audio clip hosted at // a client-specific URI. Dialogflow uses this to construct mixed_audio. // However, Dialogflow itself does not try to read or process the URI in // any way. PlayAudio *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio `json:"playAudio,omitempty"` // Text: Returns a text response. Text *GoogleCloudDialogflowCxV3ResponseMessageText `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "ConversationSuccess") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ConversationSuccess") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3ResponseMessage: Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard.
func (*GoogleCloudDialogflowCxV3ResponseMessage) MarshalJSON ¶ added in v0.34.0
func (s *GoogleCloudDialogflowCxV3ResponseMessage) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess struct { // Metadata: Custom metadata. Dialogflow doesn't impose any structure on // this. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // ForceSendFields is a list of field names (e.g. "Metadata") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Metadata") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess: Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn't process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don't return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue.
func (*GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess) MarshalJSON ¶ added in v0.34.0
func (s *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3ResponseMessageEndInteraction ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3ResponseMessageEndInteraction struct { }
GoogleCloudDialogflowCxV3ResponseMessageEndInteraction: Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user.
type GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff struct { // Metadata: Custom metadata for your handoff procedure. Dialogflow // doesn't impose any structure on this. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // ForceSendFields is a list of field names (e.g. "Metadata") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Metadata") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff: Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human.
func (*GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff) MarshalJSON ¶ added in v0.34.0
func (s *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3ResponseMessageMixedAudio ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3ResponseMessageMixedAudio struct { // Segments: Segments this audio response is composed of. Segments []*GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment `json:"segments,omitempty"` // ForceSendFields is a list of field names (e.g. "Segments") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Segments") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3ResponseMessageMixedAudio: Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
func (*GoogleCloudDialogflowCxV3ResponseMessageMixedAudio) MarshalJSON ¶ added in v0.34.0
func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment struct { // AllowPlaybackInterruption: Output only. Whether the playback of this // segment can be interrupted by the end user's speech and the client // should then start the next Dialogflow request. AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"` // Audio: Raw audio synthesized from the Dialogflow agent's response // using the output config specified in the request. Audio string `json:"audio,omitempty"` // Uri: Client-specific URI that points to an audio clip accessible to // the client. Dialogflow does not impose any validation on it. Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. // "AllowPlaybackInterruption") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "AllowPlaybackInterruption") to include in API requests with the JSON // null value. By default, fields with empty values are omitted from API // requests. However, any field with an empty value appearing in // NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment: Represents one segment of audio.
func (*GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment) MarshalJSON ¶ added in v0.34.0
func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText struct { // AllowPlaybackInterruption: Output only. Whether the playback of this // message can be interrupted by the end user's speech and the client // can then starts the next Dialogflow request. AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"` // Ssml: The SSML text to be synthesized. For more information, see // [SSML](/speech/text-to-speech/docs/ssml). Ssml string `json:"ssml,omitempty"` // Text: The raw text to be synthesized. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. // "AllowPlaybackInterruption") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "AllowPlaybackInterruption") to include in API requests with the JSON // null value. By default, fields with empty values are omitted from API // requests. However, any field with an empty value appearing in // NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText: A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
func (*GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText) MarshalJSON ¶ added in v0.34.0
func (s *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3ResponseMessagePlayAudio ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3ResponseMessagePlayAudio struct { // AllowPlaybackInterruption: Output only. Whether the playback of this // message can be interrupted by the end user's speech and the client // can then starts the next Dialogflow request. AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"` // AudioUri: Required. URI of the audio clip. Dialogflow does not impose // any validation on this value. It is specific to the client that reads // it. AudioUri string `json:"audioUri,omitempty"` // ForceSendFields is a list of field names (e.g. // "AllowPlaybackInterruption") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "AllowPlaybackInterruption") to include in API requests with the JSON // null value. By default, fields with empty values are omitted from API // requests. However, any field with an empty value appearing in // NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3ResponseMessagePlayAudio: Specifies an audio clip to be played by the client as part of the response.
func (*GoogleCloudDialogflowCxV3ResponseMessagePlayAudio) MarshalJSON ¶ added in v0.34.0
func (s *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3ResponseMessageText ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3ResponseMessageText struct { // AllowPlaybackInterruption: Output only. Whether the playback of this // message can be interrupted by the end user's speech and the client // can then starts the next Dialogflow request. AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"` // Text: Required. A collection of text responses. Text []string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. // "AllowPlaybackInterruption") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "AllowPlaybackInterruption") to include in API requests with the JSON // null value. By default, fields with empty values are omitted from API // requests. However, any field with an empty value appearing in // NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3ResponseMessageText: The text response message.
func (*GoogleCloudDialogflowCxV3ResponseMessageText) MarshalJSON ¶ added in v0.34.0
func (s *GoogleCloudDialogflowCxV3ResponseMessageText) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3SessionInfo ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3SessionInfo struct { // Parameters: Optional for WebhookRequest. Optional for // WebhookResponse. All parameters collected from forms and intents // during the session. Parameters can be created, updated, or removed by // the webhook. To remove a parameter from the session, the webhook // should explicitly set the parameter value to null in WebhookResponse. // The map is keyed by parameters' display names. Parameters googleapi.RawMessage `json:"parameters,omitempty"` // Session: Always present for WebhookRequest. Ignored for // WebhookResponse. The unique identifier of the session. This field can // be used by the webhook to identify a user. Format: // `projects//locations//agents//sessions/`. Session string `json:"session,omitempty"` // ForceSendFields is a list of field names (e.g. "Parameters") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Parameters") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3SessionInfo: Represents session information communicated to and from the webhook.
func (*GoogleCloudDialogflowCxV3SessionInfo) MarshalJSON ¶ added in v0.34.0
func (s *GoogleCloudDialogflowCxV3SessionInfo) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3WebhookRequest ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3WebhookRequest struct { // DetectIntentResponseId: Always present. The unique identifier of the // DetectIntentResponse that will be returned to the API caller. DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"` // FulfillmentInfo: Always present. Information about the fulfillment // that triggered this webhook call. FulfillmentInfo *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"` // IntentInfo: Information about the last matched intent. IntentInfo *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo `json:"intentInfo,omitempty"` // Messages: The list of rich message responses to present to the user. // Webhook can choose to append or replace this list in // WebhookResponse.fulfillment_response; Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"` // PageInfo: Information about page status. PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"` // Payload: Custom data set in QueryParameters.payload. Payload googleapi.RawMessage `json:"payload,omitempty"` // SessionInfo: Information about session status. SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"` // ForceSendFields is a list of field names (e.g. // "DetectIntentResponseId") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DetectIntentResponseId") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3WebhookRequest: The request message for a webhook call.
func (*GoogleCloudDialogflowCxV3WebhookRequest) MarshalJSON ¶ added in v0.34.0
func (s *GoogleCloudDialogflowCxV3WebhookRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo struct { // Tag: Always present. The tag used to identify which fulfillment is // being called. Tag string `json:"tag,omitempty"` // ForceSendFields is a list of field names (e.g. "Tag") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Tag") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo: Represents fulfillment information communicated to the webhook.
func (*GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo) MarshalJSON ¶ added in v0.34.0
func (s *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3WebhookRequestIntentInfo ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3WebhookRequestIntentInfo struct { // LastMatchedIntent: Always present. The unique identifier of the last // matched intent. Format: `projects//locations//agents//intents/`. LastMatchedIntent string `json:"lastMatchedIntent,omitempty"` // Parameters: Parameters identified as a result of intent matching. // This is a map of the name of the identified parameter to the value of // the parameter identified from the user's utterance. All parameters // defined in the matched intent that are identified will be surfaced // here. Parameters map[string]GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"` // ForceSendFields is a list of field names (e.g. "LastMatchedIntent") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LastMatchedIntent") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3WebhookRequestIntentInfo: Represents intent information communicated to the webhook.
func (*GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) MarshalJSON ¶ added in v0.34.0
func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue struct { // OriginalValue: Always present. Original text value extracted from // user utterance. OriginalValue string `json:"originalValue,omitempty"` // ResolvedValue: Always present. Structured value for the parameter // extracted from user utterance. ResolvedValue interface{} `json:"resolvedValue,omitempty"` // ForceSendFields is a list of field names (e.g. "OriginalValue") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "OriginalValue") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue:
Represents a value for an intent parameter.
func (*GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue) MarshalJSON ¶ added in v0.34.0
func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3WebhookResponse ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3WebhookResponse struct { // FulfillmentResponse: The fulfillment response to send to the user. // This field can be omitted by the webhook if it does not intend to // send any response to the user. FulfillmentResponse *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"` // PageInfo: Information about page status. This field can be omitted by // the webhook if it does not intend to modify page status. PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"` // Payload: Value to append directly to QueryResult.webhook_payloads. Payload googleapi.RawMessage `json:"payload,omitempty"` // SessionInfo: Information about session status. This field can be // omitted by the webhook if it does not intend to modify session // status. SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"` // TargetFlow: The target flow to transition to. Format: // `projects//locations//agents//flows/`. TargetFlow string `json:"targetFlow,omitempty"` // TargetPage: The target page to transition to. Format: // `projects//locations//agents//flows//pages/`. TargetPage string `json:"targetPage,omitempty"` // ForceSendFields is a list of field names (e.g. "FulfillmentResponse") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FulfillmentResponse") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3WebhookResponse: The response message for a webhook call.
func (*GoogleCloudDialogflowCxV3WebhookResponse) MarshalJSON ¶ added in v0.34.0
func (s *GoogleCloudDialogflowCxV3WebhookResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse ¶ added in v0.34.0
type GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse struct { // MergeBehavior: Merge behavior for `messages`. // // Possible values: // "MERGE_BEHAVIOR_UNSPECIFIED" - Not specified. `APPEND` will be // used. // "APPEND" - `messages` will be appended to the list of messages // waiting to be sent to the user. // "REPLACE" - `messages` will replace the list of messages waiting to // be sent to the user. MergeBehavior string `json:"mergeBehavior,omitempty"` // Messages: The list of rich message responses to present to the user. Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"` // ForceSendFields is a list of field names (e.g. "MergeBehavior") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MergeBehavior") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse: Represents a fulfillment response to the user.
func (*GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse) MarshalJSON ¶ added in v0.34.0
func (s *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata ¶ added in v0.31.0
type GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata struct { // Version: Name of the created version. Format: // `projects//locations//agents//flows//versions/`. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Version") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Version") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata: Metadata associated with the long running operation for Versions.CreateVersion.
func (*GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata) MarshalJSON ¶ added in v0.31.0
func (s *GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1ExportAgentResponse ¶ added in v0.26.0
type GoogleCloudDialogflowCxV3beta1ExportAgentResponse struct { // AgentContent: Uncompressed raw byte content for agent. AgentContent string `json:"agentContent,omitempty"` // AgentUri: The URI to a file containing the exported agent. This field // is populated only if `agent_uri` is specified in ExportAgentRequest. AgentUri string `json:"agentUri,omitempty"` // ForceSendFields is a list of field names (e.g. "AgentContent") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AgentContent") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1ExportAgentResponse: The response message for Agents.ExportAgent.
func (*GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON ¶ added in v0.26.0
func (s *GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1PageInfo ¶ added in v0.26.0
type GoogleCloudDialogflowCxV3beta1PageInfo struct { // CurrentPage: Always present for WebhookRequest. Ignored for // WebhookResponse. The unique identifier of the current page. Format: // `projects//locations//agents//flows//pages/`. CurrentPage string `json:"currentPage,omitempty"` // FormInfo: Optional for both WebhookRequest and WebhookResponse. // Information about the form. FormInfo *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo `json:"formInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "CurrentPage") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CurrentPage") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1PageInfo: Represents page information communicated to and from the webhook.
func (*GoogleCloudDialogflowCxV3beta1PageInfo) MarshalJSON ¶ added in v0.26.0
func (s *GoogleCloudDialogflowCxV3beta1PageInfo) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1PageInfoFormInfo ¶ added in v0.26.0
type GoogleCloudDialogflowCxV3beta1PageInfoFormInfo struct { // ParameterInfo: Optional for both WebhookRequest and WebhookResponse. // The parameters contained in the form. Note that the webhook cannot // add or remove any form parameter. ParameterInfo []*GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "ParameterInfo") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ParameterInfo") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1PageInfoFormInfo: Represents form information.
func (*GoogleCloudDialogflowCxV3beta1PageInfoFormInfo) MarshalJSON ¶ added in v0.26.0
func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo ¶ added in v0.26.0
type GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo struct { // DisplayName: Always present for WebhookRequest. Required for // WebhookResponse. The human-readable name of the parameter, unique // within the form. This field cannot be modified by the webhook. DisplayName string `json:"displayName,omitempty"` // JustCollected: Optional for WebhookRequest. Ignored for // WebhookResponse. Indicates if the parameter value was just collected // on the last conversation turn. JustCollected bool `json:"justCollected,omitempty"` // Required: Optional for both WebhookRequest and WebhookResponse. // Indicates whether the parameter is required. Optional parameters will // not trigger prompts; however, they are filled if the user specifies // them. Required parameters must be filled before form filling // concludes. Required bool `json:"required,omitempty"` // State: Always present for WebhookRequest. Required for // WebhookResponse. The state of the parameter. This field can be set to // INVALID by the webhook to invalidate the parameter; other values set // by the webhook will be ignored. // // Possible values: // "PARAMETER_STATE_UNSPECIFIED" - Not specified. This value should be // never used. // "EMPTY" - Indicates that the parameter does not have a value. // "INVALID" - Indicates that the parameter value is invalid. This // field can be used by the webhook to invalidate the parameter and ask // the server to collect it from the user again. // "FILLED" - Indicates that the parameter has a value. State string `json:"state,omitempty"` // Value: Optional for both WebhookRequest and WebhookResponse. The // value of the parameter. This field can be set by the webhook to // change the parameter value. Value interface{} `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo: Represents parameter information.
func (*GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo) MarshalJSON ¶ added in v0.26.0
func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1ResponseMessage ¶ added in v0.26.0
type GoogleCloudDialogflowCxV3beta1ResponseMessage struct { // ConversationSuccess: Indicates that the conversation succeeded. ConversationSuccess *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"` // EndInteraction: Output only. A signal that indicates the interaction // with the Dialogflow agent has ended. This message is generated by // Dialogflow only when the conversation reaches `END_SESSION` or // `END_PAGE` page. It is not supposed to be defined by the user. It's // guaranteed that there is at most one such message in each response. EndInteraction *GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction `json:"endInteraction,omitempty"` // LiveAgentHandoff: Hands off conversation to a human agent. LiveAgentHandoff *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"` // MixedAudio: Output only. An audio response message composed of both // the synthesized Dialogflow agent responses and responses defined via // play_audio. This message is generated by Dialogflow only and not // supposed to be defined by the user. MixedAudio *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio `json:"mixedAudio,omitempty"` // OutputAudioText: A text or ssml response that is preferentially used // for TTS output audio synthesis, as described in the comment on the // ResponseMessage message. OutputAudioText *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"` // Payload: Returns a response containing a custom, platform-specific // payload. Payload googleapi.RawMessage `json:"payload,omitempty"` // PlayAudio: Signal that the client should play an audio clip hosted at // a client-specific URI. Dialogflow uses this to construct mixed_audio. // However, Dialogflow itself does not try to read or process the URI in // any way. PlayAudio *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio `json:"playAudio,omitempty"` // Text: Returns a text response. Text *GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "ConversationSuccess") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ConversationSuccess") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1ResponseMessage: Represents a response message that can be returned by a conversational agent. Response messages are also used for output audio synthesis. The approach is as follows: * If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis. This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard.
func (*GoogleCloudDialogflowCxV3beta1ResponseMessage) MarshalJSON ¶ added in v0.26.0
func (s *GoogleCloudDialogflowCxV3beta1ResponseMessage) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess ¶ added in v0.26.0
type GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess struct { // Metadata: Custom metadata. Dialogflow doesn't impose any structure on // this. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // ForceSendFields is a list of field names (e.g. "Metadata") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Metadata") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess: Indicates that the conversation succeeded, i.e., the bot handled the issue that the customer talked to it about. Dialogflow only uses this to determine which conversations should be counted as successful and doesn't process the metadata in this message in any way. Note that Dialogflow also considers conversations that get to the conversation end page as successful even if they don't return ConversationSuccess. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates that the conversation succeeded. * In a webhook response when you determine that you handled the customer issue.
func (*GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess) MarshalJSON ¶ added in v0.26.0
func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction ¶ added in v0.29.0
type GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction struct { }
GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction: Indicates that interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only and not supposed to be defined by the user.
type GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff ¶ added in v0.29.0
type GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff struct { // Metadata: Custom metadata for your handoff procedure. Dialogflow // doesn't impose any structure on this. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // ForceSendFields is a list of field names (e.g. "Metadata") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Metadata") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff: Indicates that the conversation should be handed off to a live agent. Dialogflow only uses this to determine which conversations were handed off to a human agent for measurement purposes. What else to do with this signal is up to you and your handoff procedures. You may set this, for example: * In the entry_fulfillment of a Page if entering the page indicates something went extremely wrong in the conversation. * In a webhook response when you determine that the customer issue can only be handled by a human.
func (*GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff) MarshalJSON ¶ added in v0.29.0
func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio ¶ added in v0.29.0
type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio struct { // Segments: Segments this audio response is composed of. Segments []*GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment `json:"segments,omitempty"` // ForceSendFields is a list of field names (e.g. "Segments") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Segments") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio: Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs. The external URIs are specified via play_audio. This message is generated by Dialogflow only and not supposed to be defined by the user.
func (*GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio) MarshalJSON ¶ added in v0.29.0
func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment ¶ added in v0.29.0
type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment struct { // AllowPlaybackInterruption: Output only. Whether the playback of this // segment can be interrupted by the end user's speech and the client // should then start the next Dialogflow request. AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"` // Audio: Raw audio synthesized from the Dialogflow agent's response // using the output config specified in the request. Audio string `json:"audio,omitempty"` // Uri: Client-specific URI that points to an audio clip accessible to // the client. Dialogflow does not impose any validation on it. Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. // "AllowPlaybackInterruption") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "AllowPlaybackInterruption") to include in API requests with the JSON // null value. By default, fields with empty values are omitted from API // requests. However, any field with an empty value appearing in // NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment: Represents one segment of audio.
func (*GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment) MarshalJSON ¶ added in v0.29.0
func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText ¶ added in v0.29.0
type GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText struct { // AllowPlaybackInterruption: Output only. Whether the playback of this // message can be interrupted by the end user's speech and the client // can then starts the next Dialogflow request. AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"` // Ssml: The SSML text to be synthesized. For more information, see // [SSML](/speech/text-to-speech/docs/ssml). Ssml string `json:"ssml,omitempty"` // Text: The raw text to be synthesized. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. // "AllowPlaybackInterruption") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "AllowPlaybackInterruption") to include in API requests with the JSON // null value. By default, fields with empty values are omitted from API // requests. However, any field with an empty value appearing in // NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText: A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
func (*GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText) MarshalJSON ¶ added in v0.29.0
func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio ¶ added in v0.29.0
type GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio struct { // AllowPlaybackInterruption: Output only. Whether the playback of this // message can be interrupted by the end user's speech and the client // can then starts the next Dialogflow request. AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"` // AudioUri: Required. URI of the audio clip. Dialogflow does not impose // any validation on this value. It is specific to the client that reads // it. AudioUri string `json:"audioUri,omitempty"` // ForceSendFields is a list of field names (e.g. // "AllowPlaybackInterruption") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "AllowPlaybackInterruption") to include in API requests with the JSON // null value. By default, fields with empty values are omitted from API // requests. However, any field with an empty value appearing in // NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio: Specifies an audio clip to be played by the client as part of the response.
func (*GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio) MarshalJSON ¶ added in v0.29.0
func (s *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1ResponseMessageText ¶ added in v0.26.0
type GoogleCloudDialogflowCxV3beta1ResponseMessageText struct { // AllowPlaybackInterruption: Output only. Whether the playback of this // message can be interrupted by the end user's speech and the client // can then starts the next Dialogflow request. AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"` // Text: Required. A collection of text responses. Text []string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. // "AllowPlaybackInterruption") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "AllowPlaybackInterruption") to include in API requests with the JSON // null value. By default, fields with empty values are omitted from API // requests. However, any field with an empty value appearing in // NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1ResponseMessageText: The text response message.
func (*GoogleCloudDialogflowCxV3beta1ResponseMessageText) MarshalJSON ¶ added in v0.26.0
func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageText) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1SessionInfo ¶ added in v0.26.0
type GoogleCloudDialogflowCxV3beta1SessionInfo struct { // Parameters: Optional for WebhookRequest. Optional for // WebhookResponse. All parameters collected from forms and intents // during the session. Parameters can be created, updated, or removed by // the webhook. To remove a parameter from the session, the webhook // should explicitly set the parameter value to null in WebhookResponse. // The map is keyed by parameters' display names. Parameters googleapi.RawMessage `json:"parameters,omitempty"` // Session: Always present for WebhookRequest. Ignored for // WebhookResponse. The unique identifier of the session. This field can // be used by the webhook to identify a user. Format: // `projects//locations//agents//sessions/`. Session string `json:"session,omitempty"` // ForceSendFields is a list of field names (e.g. "Parameters") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Parameters") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1SessionInfo: Represents session information communicated to and from the webhook.
func (*GoogleCloudDialogflowCxV3beta1SessionInfo) MarshalJSON ¶ added in v0.26.0
func (s *GoogleCloudDialogflowCxV3beta1SessionInfo) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1WebhookRequest ¶ added in v0.26.0
type GoogleCloudDialogflowCxV3beta1WebhookRequest struct { // DetectIntentResponseId: Always present. The unique identifier of the // DetectIntentResponse that will be returned to the API caller. DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"` // FulfillmentInfo: Always present. Information about the fulfillment // that triggered this webhook call. FulfillmentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"` // IntentInfo: Information about the last matched intent. IntentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo `json:"intentInfo,omitempty"` // Messages: The list of rich message responses to present to the user. // Webhook can choose to append or replace this list in // WebhookResponse.fulfillment_response; Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"` // PageInfo: Information about page status. PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"` // Payload: Custom data set in QueryParameters.payload. Payload googleapi.RawMessage `json:"payload,omitempty"` // SessionInfo: Information about session status. SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"` // ForceSendFields is a list of field names (e.g. // "DetectIntentResponseId") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DetectIntentResponseId") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1WebhookRequest: The request message for a webhook call.
func (*GoogleCloudDialogflowCxV3beta1WebhookRequest) MarshalJSON ¶ added in v0.26.0
func (s *GoogleCloudDialogflowCxV3beta1WebhookRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo ¶ added in v0.26.0
type GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo struct { // Tag: Always present. The tag used to identify which fulfillment is // being called. Tag string `json:"tag,omitempty"` // ForceSendFields is a list of field names (e.g. "Tag") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Tag") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo: Represents fulfillment information communicated to the webhook.
func (*GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo) MarshalJSON ¶ added in v0.26.0
func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo ¶ added in v0.26.0
type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo struct { // LastMatchedIntent: Always present. The unique identifier of the last // matched intent. Format: `projects//locations//agents//intents/`. LastMatchedIntent string `json:"lastMatchedIntent,omitempty"` // Parameters: Parameters identified as a result of intent matching. // This is a map of the name of the identified parameter to the value of // the parameter identified from the user's utterance. All parameters // defined in the matched intent that are identified will be surfaced // here. Parameters map[string]GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"` // ForceSendFields is a list of field names (e.g. "LastMatchedIntent") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LastMatchedIntent") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo: Represents intent information communicated to the webhook.
func (*GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) MarshalJSON ¶ added in v0.26.0
func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue ¶ added in v0.26.0
type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue struct { // OriginalValue: Always present. Original text value extracted from // user utterance. OriginalValue string `json:"originalValue,omitempty"` // ResolvedValue: Always present. Structured value for the parameter // extracted from user utterance. ResolvedValue interface{} `json:"resolvedValue,omitempty"` // ForceSendFields is a list of field names (e.g. "OriginalValue") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "OriginalValue") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterV alue: Represents a value for an intent parameter.
func (*GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue) MarshalJSON ¶ added in v0.26.0
func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1WebhookResponse ¶ added in v0.26.0
type GoogleCloudDialogflowCxV3beta1WebhookResponse struct { // FulfillmentResponse: The fulfillment response to send to the user. // This field can be omitted by the webhook if it does not intend to // send any response to the user. FulfillmentResponse *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"` // PageInfo: Information about page status. This field can be omitted by // the webhook if it does not intend to modify page status. PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"` // Payload: Value to append directly to QueryResult.webhook_payloads. Payload googleapi.RawMessage `json:"payload,omitempty"` // SessionInfo: Information about session status. This field can be // omitted by the webhook if it does not intend to modify session // status. SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"` // TargetFlow: The target flow to transition to. Format: // `projects//locations//agents//flows/`. TargetFlow string `json:"targetFlow,omitempty"` // TargetPage: The target page to transition to. Format: // `projects//locations//agents//flows//pages/`. TargetPage string `json:"targetPage,omitempty"` // ForceSendFields is a list of field names (e.g. "FulfillmentResponse") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FulfillmentResponse") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1WebhookResponse: The response message for a webhook call.
func (*GoogleCloudDialogflowCxV3beta1WebhookResponse) MarshalJSON ¶ added in v0.26.0
func (s *GoogleCloudDialogflowCxV3beta1WebhookResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse ¶ added in v0.26.0
type GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse struct { // MergeBehavior: Merge behavior for `messages`. // // Possible values: // "MERGE_BEHAVIOR_UNSPECIFIED" - Not specified. `APPEND` will be // used. // "APPEND" - `messages` will be appended to the list of messages // waiting to be sent to the user. // "REPLACE" - `messages` will replace the list of messages waiting to // be sent to the user. MergeBehavior string `json:"mergeBehavior,omitempty"` // Messages: The list of rich message responses to present to the user. Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"` // ForceSendFields is a list of field names (e.g. "MergeBehavior") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MergeBehavior") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse: Represents a fulfillment response to the user.
func (*GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse) MarshalJSON ¶ added in v0.26.0
func (s *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2Agent ¶
type GoogleCloudDialogflowV2Agent struct { // ApiVersion: Optional. API version displayed in Dialogflow console. If // not specified, V2 API is assumed. Clients are free to query different // service endpoints for different API versions. However, bots // connectors and webhook calls will follow the specified API version. // // Possible values: // "API_VERSION_UNSPECIFIED" - Not specified. // "API_VERSION_V1" - Legacy V1 API. // "API_VERSION_V2" - V2 API. // "API_VERSION_V2_BETA_1" - V2beta1 API. ApiVersion string `json:"apiVersion,omitempty"` // AvatarUri: Optional. The URI of the agent's avatar. Avatars are used // throughout the Dialogflow console and in the self-hosted [Web // Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) // integration. AvatarUri string `json:"avatarUri,omitempty"` // ClassificationThreshold: Optional. To filter out false positive // results and still get variety in matched natural language inputs for // your agent, you can tune the machine learning classification // threshold. If the returned score value is less than the threshold // value, then a fallback intent will be triggered or, if there are no // fallback intents defined, no intent will be triggered. The score // values range from 0.0 (completely uncertain) to 1.0 (completely // certain). If set to 0.0, the default of 0.3 is used. ClassificationThreshold float64 `json:"classificationThreshold,omitempty"` // DefaultLanguageCode: Required. The default language of the agent as a // language tag. See [Language // Support](https://cloud.google.com/dialogflow/docs/reference/language) // for a list of the currently supported language codes. This field // cannot be set by the `Update` method. DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"` // Description: Optional. The description of this agent. The maximum // length is 500 characters. If exceeded, the request is rejected. Description string `json:"description,omitempty"` // DisplayName: Required. The name of this agent. DisplayName string `json:"displayName,omitempty"` // EnableLogging: Optional. Determines whether this agent should log // conversation queries. EnableLogging bool `json:"enableLogging,omitempty"` // MatchMode: Optional. Determines how intents are detected from user // queries. // // Possible values: // "MATCH_MODE_UNSPECIFIED" - Not specified. // "MATCH_MODE_HYBRID" - Best for agents with a small number of // examples in intents and/or wide use of templates syntax and composite // entities. // "MATCH_MODE_ML_ONLY" - Can be used for agents with a large number // of examples in intents, especially the ones using @sys.any or very // large custom entities. MatchMode string `json:"matchMode,omitempty"` // Parent: Required. The project of this agent. Format: `projects/`. Parent string `json:"parent,omitempty"` // SupportedLanguageCodes: Optional. The list of all languages supported // by this agent (except for the `default_language_code`). SupportedLanguageCodes []string `json:"supportedLanguageCodes,omitempty"` // Tier: Optional. The agent tier. If not specified, TIER_STANDARD is // assumed. // // Possible values: // "TIER_UNSPECIFIED" - Not specified. This value should never be // used. // "TIER_STANDARD" - Standard tier. // "TIER_ENTERPRISE" - Enterprise tier (Essentials). // "TIER_ENTERPRISE_PLUS" - Enterprise tier (Plus). Tier string `json:"tier,omitempty"` // TimeZone: Required. The time zone of this agent from the [time zone // database](https://www.iana.org/time-zones), e.g., America/New_York, // Europe/Paris. TimeZone string `json:"timeZone,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ApiVersion") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ApiVersion") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2Agent: A Dialogflow agent is a virtual agent that handles conversations with your end-users. It is a natural language understanding module that understands the nuances of human language. Dialogflow translates end-user text or audio during a conversation to structured data that your apps and services can understand. You design and build a Dialogflow agent to handle the types of conversations required for your system. For more information about agents, see the [Agent guide](https://cloud.google.com/dialogflow/docs/agents-overview).
func (*GoogleCloudDialogflowV2Agent) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2Agent) MarshalJSON() ([]byte, error)
func (*GoogleCloudDialogflowV2Agent) UnmarshalJSON ¶
func (s *GoogleCloudDialogflowV2Agent) UnmarshalJSON(data []byte) error
type GoogleCloudDialogflowV2AnnotatedMessagePart ¶ added in v0.15.0
type GoogleCloudDialogflowV2AnnotatedMessagePart struct { // EntityType: The [Dialogflow system entity // type](https://cloud.google.com/dialogflow/docs/reference/system-entiti // es) of this message part. If this is empty, Dialogflow could not // annotate the phrase part with a system entity. EntityType string `json:"entityType,omitempty"` // FormattedValue: The [Dialogflow system entity formatted value // ](https://cloud.google.com/dialogflow/docs/reference/system-entities) // of this message part. For example for a system entity of type // `@sys.unit-currency`, this may contain: { "amount": 5, "currency": // "USD" } FormattedValue interface{} `json:"formattedValue,omitempty"` // Text: A part of a message possibly annotated with an entity. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "EntityType") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EntityType") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2AnnotatedMessagePart: Represents a part of a message possibly annotated with an entity. The part can be an entity or purely a part of the message between two entities or message start/end.
func (*GoogleCloudDialogflowV2AnnotatedMessagePart) MarshalJSON ¶ added in v0.15.0
func (s *GoogleCloudDialogflowV2AnnotatedMessagePart) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2BatchCreateEntitiesRequest ¶
type GoogleCloudDialogflowV2BatchCreateEntitiesRequest struct { // Entities: Required. The entities to create. Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"` // LanguageCode: Optional. The language used to access language-specific // data. If not specified, the agent's default language is used. For // more information, see [Multilingual intent and entity // data](https://cloud.google.com/dialogflow/docs/agents-multilingual#int // ent-entity). LanguageCode string `json:"languageCode,omitempty"` // ForceSendFields is a list of field names (e.g. "Entities") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entities") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2BatchCreateEntitiesRequest: The request message for EntityTypes.BatchCreateEntities.
func (*GoogleCloudDialogflowV2BatchCreateEntitiesRequest) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2BatchCreateEntitiesRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2BatchDeleteEntitiesRequest ¶
type GoogleCloudDialogflowV2BatchDeleteEntitiesRequest struct { // EntityValues: Required. The reference `values` of the entities to // delete. Note that these are not fully-qualified names, i.e. they // don't start with `projects/`. EntityValues []string `json:"entityValues,omitempty"` // LanguageCode: Optional. The language used to access language-specific // data. If not specified, the agent's default language is used. For // more information, see [Multilingual intent and entity // data](https://cloud.google.com/dialogflow/docs/agents-multilingual#int // ent-entity). LanguageCode string `json:"languageCode,omitempty"` // ForceSendFields is a list of field names (e.g. "EntityValues") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EntityValues") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2BatchDeleteEntitiesRequest: The request message for EntityTypes.BatchDeleteEntities.
func (*GoogleCloudDialogflowV2BatchDeleteEntitiesRequest) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2BatchDeleteEntitiesRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest ¶
type GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest struct { // EntityTypeNames: Required. The names entity types to delete. All // names must point to the same agent as `parent`. EntityTypeNames []string `json:"entityTypeNames,omitempty"` // ForceSendFields is a list of field names (e.g. "EntityTypeNames") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EntityTypeNames") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest: The request message for EntityTypes.BatchDeleteEntityTypes.
func (*GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2BatchDeleteIntentsRequest ¶
type GoogleCloudDialogflowV2BatchDeleteIntentsRequest struct { // Intents: Required. The collection of intents to delete. Only intent // `name` must be filled in. Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"` // ForceSendFields is a list of field names (e.g. "Intents") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Intents") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2BatchDeleteIntentsRequest: The request message for Intents.BatchDeleteIntents.
func (*GoogleCloudDialogflowV2BatchDeleteIntentsRequest) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2BatchDeleteIntentsRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2BatchUpdateEntitiesRequest ¶
type GoogleCloudDialogflowV2BatchUpdateEntitiesRequest struct { // Entities: Required. The entities to update or create. Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"` // LanguageCode: Optional. The language used to access language-specific // data. If not specified, the agent's default language is used. For // more information, see [Multilingual intent and entity // data](https://cloud.google.com/dialogflow/docs/agents-multilingual#int // ent-entity). LanguageCode string `json:"languageCode,omitempty"` // UpdateMask: Optional. The mask to control which fields get updated. UpdateMask string `json:"updateMask,omitempty"` // ForceSendFields is a list of field names (e.g. "Entities") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entities") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2BatchUpdateEntitiesRequest: The request message for EntityTypes.BatchUpdateEntities.
func (*GoogleCloudDialogflowV2BatchUpdateEntitiesRequest) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2BatchUpdateEntitiesRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest ¶
type GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest struct { // EntityTypeBatchInline: The collection of entity types to update or // create. EntityTypeBatchInline *GoogleCloudDialogflowV2EntityTypeBatch `json:"entityTypeBatchInline,omitempty"` // EntityTypeBatchUri: The URI to a Google Cloud Storage file containing // entity types to update or create. The file format can either be a // serialized proto (of EntityBatch type) or a JSON object. Note: The // URI must start with "gs://". EntityTypeBatchUri string `json:"entityTypeBatchUri,omitempty"` // LanguageCode: Optional. The language used to access language-specific // data. If not specified, the agent's default language is used. For // more information, see [Multilingual intent and entity // data](https://cloud.google.com/dialogflow/docs/agents-multilingual#int // ent-entity). LanguageCode string `json:"languageCode,omitempty"` // UpdateMask: Optional. The mask to control which fields get updated. UpdateMask string `json:"updateMask,omitempty"` // ForceSendFields is a list of field names (e.g. // "EntityTypeBatchInline") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EntityTypeBatchInline") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest: The request message for EntityTypes.BatchUpdateEntityTypes.
func (*GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse ¶
type GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse struct { // EntityTypes: The collection of updated or created entity types. EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"` // ForceSendFields is a list of field names (e.g. "EntityTypes") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EntityTypes") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse: The response message for EntityTypes.BatchUpdateEntityTypes.
func (*GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2BatchUpdateIntentsRequest ¶
type GoogleCloudDialogflowV2BatchUpdateIntentsRequest struct { // IntentBatchInline: The collection of intents to update or create. IntentBatchInline *GoogleCloudDialogflowV2IntentBatch `json:"intentBatchInline,omitempty"` // IntentBatchUri: The URI to a Google Cloud Storage file containing // intents to update or create. The file format can either be a // serialized proto (of IntentBatch type) or JSON object. Note: The URI // must start with "gs://". IntentBatchUri string `json:"intentBatchUri,omitempty"` // IntentView: Optional. The resource view to apply to the returned // intent. // // Possible values: // "INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated // in the response. // "INTENT_VIEW_FULL" - All fields are populated. IntentView string `json:"intentView,omitempty"` // LanguageCode: Optional. The language used to access language-specific // data. If not specified, the agent's default language is used. For // more information, see [Multilingual intent and entity // data](https://cloud.google.com/dialogflow/docs/agents-multilingual#int // ent-entity). LanguageCode string `json:"languageCode,omitempty"` // UpdateMask: Optional. The mask to control which fields get updated. UpdateMask string `json:"updateMask,omitempty"` // ForceSendFields is a list of field names (e.g. "IntentBatchInline") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "IntentBatchInline") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*GoogleCloudDialogflowV2BatchUpdateIntentsRequest) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2BatchUpdateIntentsRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2BatchUpdateIntentsResponse ¶
type GoogleCloudDialogflowV2BatchUpdateIntentsResponse struct { // Intents: The collection of updated or created intents. Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"` // ForceSendFields is a list of field names (e.g. "Intents") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Intents") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2BatchUpdateIntentsResponse: The response message for Intents.BatchUpdateIntents.
func (*GoogleCloudDialogflowV2BatchUpdateIntentsResponse) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2Context ¶
type GoogleCloudDialogflowV2Context struct { // LifespanCount: Optional. The number of conversational query requests // after which the context expires. The default is `0`. If set to `0`, // the context expires immediately. Contexts expire automatically after // 20 minutes if there are no matching queries. LifespanCount int64 `json:"lifespanCount,omitempty"` // Name: Required. The unique identifier of the context. Format: // `projects//agent/sessions//contexts/`, or // `projects//agent/environments//users//sessions//contexts/`. The // `Context ID` is always converted to lowercase, may only contain // characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If // `Environment ID` is not specified, we assume default 'draft' // environment. If `User ID` is not specified, we assume default '-' // user. The following context names are reserved for internal use by // Dialogflow. You should not use these contexts or create contexts with // these names: * `__system_counters__` * `*_id_dialog_context` * // `*_dialog_params_size` Name string `json:"name,omitempty"` // Parameters: Optional. The collection of parameters associated with // this context. Depending on your protocol or client library language, // this is a map, associative array, symbol table, dictionary, or JSON // object composed of a collection of (MapKey, MapValue) pairs: - MapKey // type: string - MapKey value: parameter name - MapValue type: - If // parameter's entity type is a composite entity: map - Else: string or // number, depending on parameter value type - MapValue value: - If // parameter's entity type is a composite entity: map from composite // entity property names to property values - Else: parameter value Parameters googleapi.RawMessage `json:"parameters,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "LifespanCount") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LifespanCount") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2Context: Dialogflow contexts are similar to natural language context. If a person says to you "they are orange", you need context in order to understand what "they" is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
func (*GoogleCloudDialogflowV2Context) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2Context) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2ConversationEvent ¶ added in v0.15.0
type GoogleCloudDialogflowV2ConversationEvent struct { // Conversation: The unique identifier of the conversation this // notification refers to. Format: `projects//conversations/`. Conversation string `json:"conversation,omitempty"` // ErrorStatus: More detailed information about an error. Only set for // type UNRECOVERABLE_ERROR_IN_PHONE_CALL. ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"` // NewMessagePayload: Payload of NEW_MESSAGE event. NewMessagePayload *GoogleCloudDialogflowV2Message `json:"newMessagePayload,omitempty"` // Type: The type of the event that this notification refers to. // // Possible values: // "TYPE_UNSPECIFIED" - Type not set. // "CONVERSATION_STARTED" - A new conversation has been opened. This // is fired when a telephone call is answered, or a conversation is // created via the API. // "CONVERSATION_FINISHED" - An existing conversation has closed. This // is fired when a telephone call is terminated, or a conversation is // closed via the API. // "HUMAN_INTERVENTION_NEEDED" - An existing conversation has received // notification from Dialogflow that human intervention is required. // "NEW_MESSAGE" - An existing conversation has received a new // message, either from API or telephony. It is configured in // ConversationProfile.new_message_event_notification_config // "UNRECOVERABLE_ERROR" - Unrecoverable error during a telephone // call. In general non-recoverable errors only occur if something was // misconfigured in the ConversationProfile corresponding to the call. // After a non-recoverable error, Dialogflow may stop responding. We // don't fire this event: * in an API call because we can directly // return the error, or, * when we can recover from an error. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Conversation") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Conversation") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2ConversationEvent: Represents a notification sent to Pub/Sub subscribers for conversation lifecycle events.
func (*GoogleCloudDialogflowV2ConversationEvent) MarshalJSON ¶ added in v0.15.0
func (s *GoogleCloudDialogflowV2ConversationEvent) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2DetectIntentRequest ¶
type GoogleCloudDialogflowV2DetectIntentRequest struct { // InputAudio: The natural language speech audio to be processed. This // field should be populated iff `query_input` is set to an input audio // config. A single request can contain up to 1 minute of speech audio // data. InputAudio string `json:"inputAudio,omitempty"` // OutputAudioConfig: Instructs the speech synthesizer how to generate // the output audio. If this field is not set and agent-level speech // synthesizer is not configured, no output audio is generated. OutputAudioConfig *GoogleCloudDialogflowV2OutputAudioConfig `json:"outputAudioConfig,omitempty"` // OutputAudioConfigMask: Mask for output_audio_config indicating which // settings in this request-level config should override speech // synthesizer settings defined at agent-level. If unspecified or empty, // output_audio_config replaces the agent-level config in its entirety. OutputAudioConfigMask string `json:"outputAudioConfigMask,omitempty"` // QueryInput: Required. The input specification. It can be set to: 1. // an audio config which instructs the speech recognizer how to process // the speech audio, 2. a conversational query in the form of text, or // 3. an event that specifies which intent to trigger. QueryInput *GoogleCloudDialogflowV2QueryInput `json:"queryInput,omitempty"` // QueryParams: The parameters of this query. QueryParams *GoogleCloudDialogflowV2QueryParameters `json:"queryParams,omitempty"` // ForceSendFields is a list of field names (e.g. "InputAudio") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "InputAudio") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2DetectIntentRequest: The request to detect user's intent.
func (*GoogleCloudDialogflowV2DetectIntentRequest) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2DetectIntentRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2DetectIntentResponse ¶
type GoogleCloudDialogflowV2DetectIntentResponse struct { // OutputAudio: The audio data bytes encoded as specified in the // request. Note: The output audio is generated based on the values of // default platform text responses found in the // `query_result.fulfillment_messages` field. If multiple default text // responses exist, they will be concatenated when generating audio. If // no default platform text responses exist, the generated audio content // will be empty. In some scenarios, multiple output audio fields may be // present in the response structure. In these cases, only the // top-most-level audio output has content. OutputAudio string `json:"outputAudio,omitempty"` // OutputAudioConfig: The config used by the speech synthesizer to // generate the output audio. OutputAudioConfig *GoogleCloudDialogflowV2OutputAudioConfig `json:"outputAudioConfig,omitempty"` // QueryResult: The selected results of the conversational query or // event processing. See `alternative_query_results` for additional // potential results. QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"` // ResponseId: The unique identifier of the response. It can be used to // locate a response in the training example set or for reporting // issues. ResponseId string `json:"responseId,omitempty"` // WebhookStatus: Specifies the status of the webhook request. WebhookStatus *GoogleRpcStatus `json:"webhookStatus,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "OutputAudio") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "OutputAudio") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2DetectIntentResponse: The message returned from the DetectIntent method.
func (*GoogleCloudDialogflowV2DetectIntentResponse) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2DetectIntentResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2EntityType ¶
type GoogleCloudDialogflowV2EntityType struct { // AutoExpansionMode: Optional. Indicates whether the entity type can be // automatically expanded. // // Possible values: // "AUTO_EXPANSION_MODE_UNSPECIFIED" - Auto expansion disabled for the // entity. // "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values // that have not been explicitly listed in the entity. AutoExpansionMode string `json:"autoExpansionMode,omitempty"` // DisplayName: Required. The name of the entity type. DisplayName string `json:"displayName,omitempty"` // EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction // during classification. EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"` // Entities: Optional. The collection of entity entries associated with // the entity type. Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"` // Kind: Required. Indicates the kind of entity type. // // Possible values: // "KIND_UNSPECIFIED" - Not specified. This value should be never // used. // "KIND_MAP" - Map entity types allow mapping of a group of synonyms // to a reference value. // "KIND_LIST" - List entity types contain a set of entries that do // not map to reference values. However, list entity types can contain // references to other entity types (with or without aliases). // "KIND_REGEXP" - Regexp entity types allow to specify regular // expressions in entries values. Kind string `json:"kind,omitempty"` // Name: The unique identifier of the entity type. Required for // EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes // methods. Format: `projects//agent/entityTypes/`. Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AutoExpansionMode") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AutoExpansionMode") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2EntityType: Each intent parameter has a type, called the entity type, which dictates exactly how data from an end-user expression is extracted. Dialogflow provides predefined system entities that can match many common types of data. For example, there are system entities for matching dates, times, colors, email addresses, and so on. You can also create your own custom entities for matching custom data. For example, you could define a vegetable entity that can match the types of vegetables available for purchase with a grocery store agent. For more information, see the [Entity guide](https://cloud.google.com/dialogflow/docs/entities-overview).
func (*GoogleCloudDialogflowV2EntityType) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2EntityType) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2EntityTypeBatch ¶
type GoogleCloudDialogflowV2EntityTypeBatch struct { // EntityTypes: A collection of entity types. EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"` // ForceSendFields is a list of field names (e.g. "EntityTypes") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EntityTypes") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2EntityTypeBatch: This message is a wrapper around a collection of entity types.
func (*GoogleCloudDialogflowV2EntityTypeBatch) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2EntityTypeBatch) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2EntityTypeEntity ¶
type GoogleCloudDialogflowV2EntityTypeEntity struct { // Synonyms: Required. A collection of value synonyms. For example, if // the entity type is *vegetable*, and `value` is *scallions*, a synonym // could be *green onions*. For `KIND_LIST` entity types: * This // collection must contain exactly one synonym equal to `value`. Synonyms []string `json:"synonyms,omitempty"` // Value: Required. The primary value associated with this entity entry. // For example, if the entity type is *vegetable*, the value could be // *scallions*. For `KIND_MAP` entity types: * A reference value to be // used in place of synonyms. For `KIND_LIST` entity types: * A string // that can contain references to other entity types (with or without // aliases). Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Synonyms") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Synonyms") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2EntityTypeEntity: An **entity entry** for an associated entity type.
func (*GoogleCloudDialogflowV2EntityTypeEntity) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2EntityTypeEntity) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2Environment ¶ added in v0.18.0
type GoogleCloudDialogflowV2Environment struct { // AgentVersion: Optional. The agent version loaded into this // environment. Format: `projects//agent/versions/`. AgentVersion string `json:"agentVersion,omitempty"` // Description: Optional. The developer-provided description for this // environment. The maximum length is 500 characters. If exceeded, the // request is rejected. Description string `json:"description,omitempty"` // Name: Output only. The unique identifier of this agent environment. // Format: `projects//agent/environments/`. For Environment ID, "-" is // reserved for 'draft' environment. Name string `json:"name,omitempty"` // State: Output only. The state of this environment. This field is // read-only, i.e., it cannot be set by create and update methods. // // Possible values: // "STATE_UNSPECIFIED" - Not specified. This value is not used. // "STOPPED" - Stopped. // "LOADING" - Loading. // "RUNNING" - Running. State string `json:"state,omitempty"` // UpdateTime: Output only. The last update time of this environment. // This field is read-only, i.e., it cannot be set by create and update // methods. UpdateTime string `json:"updateTime,omitempty"` // ForceSendFields is a list of field names (e.g. "AgentVersion") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AgentVersion") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2Environment: You can create multiple versions of your agent and publish them to separate environments. When you edit an agent, you are editing the draft agent. At any point, you can save the draft agent as an agent version, which is an immutable snapshot of your agent. When you save the draft agent, it is published to the default environment. When you create agent versions, you can publish them to custom environments. You can create a variety of custom environments for: - testing - development - production - etc. For more information, see the [versions and environments guide](https://cloud.google.com/dialogflow/docs/agents-versions).
func (*GoogleCloudDialogflowV2Environment) MarshalJSON ¶ added in v0.18.0
func (s *GoogleCloudDialogflowV2Environment) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2EventInput ¶
type GoogleCloudDialogflowV2EventInput struct { // LanguageCode: Required. The language of this query. See [Language // Support](https://cloud.google.com/dialogflow/docs/reference/language) // for a list of the currently supported language codes. Note that // queries in the same session do not necessarily need to specify the // same language. LanguageCode string `json:"languageCode,omitempty"` // Name: Required. The unique identifier of the event. Name string `json:"name,omitempty"` // Parameters: The collection of parameters associated with the event. // Depending on your protocol or client library language, this is a map, // associative array, symbol table, dictionary, or JSON object composed // of a collection of (MapKey, MapValue) pairs: - MapKey type: string - // MapKey value: parameter name - MapValue type: - If parameter's entity // type is a composite entity: map - Else: string or number, depending // on parameter value type - MapValue value: - If parameter's entity // type is a composite entity: map from composite entity property names // to property values - Else: parameter value Parameters googleapi.RawMessage `json:"parameters,omitempty"` // ForceSendFields is a list of field names (e.g. "LanguageCode") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LanguageCode") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2EventInput: Events allow for matching intents by event name instead of the natural language input. For instance, input “ can trigger a personalized welcome response. The parameter `name` may be used by the agent in the response: "Hello #welcome_event.name! What can I do for you today?".
func (*GoogleCloudDialogflowV2EventInput) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2EventInput) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2ExportAgentRequest ¶
type GoogleCloudDialogflowV2ExportAgentRequest struct { // AgentUri: Required. The [Google Cloud // Storage](https://cloud.google.com/storage/docs/) URI to export the // agent to. The format of this URI must be `gs:///`. If left // unspecified, the serialized agent is returned inline. AgentUri string `json:"agentUri,omitempty"` // ForceSendFields is a list of field names (e.g. "AgentUri") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AgentUri") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2ExportAgentRequest: The request message for Agents.ExportAgent.
func (*GoogleCloudDialogflowV2ExportAgentRequest) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2ExportAgentRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2ExportAgentResponse ¶
type GoogleCloudDialogflowV2ExportAgentResponse struct { // AgentContent: Zip compressed raw byte content for agent. AgentContent string `json:"agentContent,omitempty"` // AgentUri: The URI to a file containing the exported agent. This field // is populated only if `agent_uri` is specified in // `ExportAgentRequest`. AgentUri string `json:"agentUri,omitempty"` // ForceSendFields is a list of field names (e.g. "AgentContent") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AgentContent") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2ExportAgentResponse: The response message for Agents.ExportAgent.
func (*GoogleCloudDialogflowV2ExportAgentResponse) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2ExportAgentResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2Fulfillment ¶ added in v0.18.0
type GoogleCloudDialogflowV2Fulfillment struct { // DisplayName: Optional. The human-readable name of the fulfillment, // unique within the agent. DisplayName string `json:"displayName,omitempty"` // Enabled: Optional. Whether fulfillment is enabled. Enabled bool `json:"enabled,omitempty"` // Features: Optional. The field defines whether the fulfillment is // enabled for certain features. Features []*GoogleCloudDialogflowV2FulfillmentFeature `json:"features,omitempty"` // GenericWebService: Configuration for a generic web service. GenericWebService *GoogleCloudDialogflowV2FulfillmentGenericWebService `json:"genericWebService,omitempty"` // Name: Required. The unique identifier of the fulfillment. Format: // `projects//agent/fulfillment`. Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2Fulfillment: By default, your agent responds to a matched intent with a static response. As an alternative, you can provide a more dynamic response by using fulfillment. When you enable fulfillment for an intent, Dialogflow responds to that intent by calling a service that you define. For example, if an end-user wants to schedule a haircut on Friday, your service can check your database and respond to the end-user with availability information for Friday. For more information, see the [fulfillment guide](https://cloud.google.com/dialogflow/docs/fulfillment-overview).
func (*GoogleCloudDialogflowV2Fulfillment) MarshalJSON ¶ added in v0.18.0
func (s *GoogleCloudDialogflowV2Fulfillment) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2FulfillmentFeature ¶ added in v0.18.0
type GoogleCloudDialogflowV2FulfillmentFeature struct { // Type: The type of the feature that enabled for fulfillment. // // Possible values: // "TYPE_UNSPECIFIED" - Feature type not specified. // "SMALLTALK" - Fulfillment is enabled for SmallTalk. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Type") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Type") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2FulfillmentFeature: Whether fulfillment is enabled for the specific feature.
func (*GoogleCloudDialogflowV2FulfillmentFeature) MarshalJSON ¶ added in v0.18.0
func (s *GoogleCloudDialogflowV2FulfillmentFeature) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2FulfillmentGenericWebService ¶ added in v0.18.0
type GoogleCloudDialogflowV2FulfillmentGenericWebService struct { // IsCloudFunction: Optional. Indicates if generic web service is // created through Cloud Functions integration. Defaults to false. IsCloudFunction bool `json:"isCloudFunction,omitempty"` // Password: Optional. The password for HTTP Basic authentication. Password string `json:"password,omitempty"` // RequestHeaders: Optional. The HTTP request headers to send together // with fulfillment requests. RequestHeaders map[string]string `json:"requestHeaders,omitempty"` // Uri: Required. The fulfillment URI for receiving POST requests. It // must use https protocol. Uri string `json:"uri,omitempty"` // Username: Optional. The user name for HTTP Basic authentication. Username string `json:"username,omitempty"` // ForceSendFields is a list of field names (e.g. "IsCloudFunction") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "IsCloudFunction") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2FulfillmentGenericWebService: Represents configuration for a generic web service. Dialogflow supports two mechanisms for authentications: - Basic authentication with username and password. - Authentication with additional authentication headers. More information could be found at: https://cloud.google.com/dialogflow/docs/fulfillment-configure.
func (*GoogleCloudDialogflowV2FulfillmentGenericWebService) MarshalJSON ¶ added in v0.18.0
func (s *GoogleCloudDialogflowV2FulfillmentGenericWebService) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2ImportAgentRequest ¶
type GoogleCloudDialogflowV2ImportAgentRequest struct { // AgentContent: Zip compressed raw byte content for agent. AgentContent string `json:"agentContent,omitempty"` // AgentUri: The URI to a Google Cloud Storage file containing the agent // to import. Note: The URI must start with "gs://". AgentUri string `json:"agentUri,omitempty"` // ForceSendFields is a list of field names (e.g. "AgentContent") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AgentContent") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2ImportAgentRequest: The request message for Agents.ImportAgent.
func (*GoogleCloudDialogflowV2ImportAgentRequest) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2ImportAgentRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2InputAudioConfig ¶
type GoogleCloudDialogflowV2InputAudioConfig struct { // AudioEncoding: Required. Audio encoding of the audio content to // process. // // Possible values: // "AUDIO_ENCODING_UNSPECIFIED" - Not specified. // "AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed // little-endian samples (Linear PCM). // "AUDIO_ENCODING_FLAC" - // [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless // Audio Codec) is the recommended encoding because it is lossless // (therefore recognition is not compromised) and requires only about // half the bandwidth of `LINEAR16`. `FLAC` stream encoding supports // 16-bit and 24-bit samples, however, not all fields in `STREAMINFO` // are supported. // "AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio // samples using G.711 PCMU/mu-law. // "AUDIO_ENCODING_AMR" - Adaptive Multi-Rate Narrowband codec. // `sample_rate_hertz` must be 8000. // "AUDIO_ENCODING_AMR_WB" - Adaptive Multi-Rate Wideband codec. // `sample_rate_hertz` must be 16000. // "AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio frames in Ogg // container ([OggOpus](https://wiki.xiph.org/OggOpus)). // `sample_rate_hertz` must be 16000. // "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" - Although the use of lossy // encodings is not recommended, if a very low bitrate encoding is // required, `OGG_OPUS` is highly preferred over Speex encoding. The // [Speex](https://speex.org/) encoding supported by Dialogflow API has // a header byte in each block, as in MIME type // `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex // encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). // The stream is a sequence of blocks, one block per RTP packet. Each // block starts with a byte containing the length of the block, in // bytes, followed by one or more frames of Speex data, padded to an // integral number of bytes (octets) as specified in RFC 5574. In other // words, each RTP header is replaced with a single byte containing the // block length. Only Speex wideband is supported. `sample_rate_hertz` // must be 16000. AudioEncoding string `json:"audioEncoding,omitempty"` // EnableWordInfo: If `true`, Dialogflow returns SpeechWordInfo in // StreamingRecognitionResult with information about the recognized // speech words, e.g. start and end time offsets. If false or // unspecified, Speech doesn't return any word-level information. EnableWordInfo bool `json:"enableWordInfo,omitempty"` // LanguageCode: Required. The language of the supplied audio. // Dialogflow does not do translations. See [Language // Support](https://cloud.google.com/dialogflow/docs/reference/language) // for a list of the currently supported language codes. Note that // queries in the same session do not necessarily need to specify the // same language. LanguageCode string `json:"languageCode,omitempty"` // Model: Which Speech model to select for the given request. Select the // model best suited to your domain to get best results. If a model is // not explicitly specified, then we auto-select a model based on the // parameters in the InputAudioConfig. If enhanced speech model is // enabled for the agent and an enhanced version of the specified model // for the language does not exist, then the speech is recognized using // the standard version of the specified model. Refer to [Cloud Speech // API // documentation](https://cloud.google.com/speech-to-text/docs/basics#sel // ect-model) for more details. Model string `json:"model,omitempty"` // ModelVariant: Which variant of the Speech model to use. // // Possible values: // "SPEECH_MODEL_VARIANT_UNSPECIFIED" - No model variant specified. In // this case Dialogflow defaults to USE_BEST_AVAILABLE. // "USE_BEST_AVAILABLE" - Use the best available variant of the Speech // model that the caller is eligible for. Please see the [Dialogflow // docs](https://cloud.google.com/dialogflow/docs/data-logging) for how // to make your project eligible for enhanced models. // "USE_STANDARD" - Use standard model variant even if an enhanced // model is available. See the [Cloud Speech // documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m // odels) for details about enhanced models. // "USE_ENHANCED" - Use an enhanced model variant: * If an enhanced // variant does not exist for the given model and request language, // Dialogflow falls back to the standard variant. The [Cloud Speech // documentation](https://cloud.google.com/speech-to-text/docs/enhanced-m // odels) describes which models have enhanced variants. * If the API // caller isn't eligible for enhanced models, Dialogflow returns an // error. Please see the [Dialogflow // docs](https://cloud.google.com/dialogflow/docs/data-logging) for how // to make your project eligible. ModelVariant string `json:"modelVariant,omitempty"` // PhraseHints: A list of strings containing words and phrases that the // speech recognizer should recognize with higher likelihood. See [the // Cloud Speech // documentation](https://cloud.google.com/speech-to-text/docs/basics#phr // ase-hints) for more details. This field is deprecated. Please use // [speech_contexts]() instead. If you specify both [phrase_hints]() and // [speech_contexts](), Dialogflow will treat the [phrase_hints]() as a // single additional [SpeechContext](). PhraseHints []string `json:"phraseHints,omitempty"` // SampleRateHertz: Required. Sample rate (in Hertz) of the audio // content sent in the query. Refer to [Cloud Speech API // documentation](https://cloud.google.com/speech-to-text/docs/basics) // for more details. SampleRateHertz int64 `json:"sampleRateHertz,omitempty"` // SingleUtterance: If `false` (default), recognition does not cease // until the client closes the stream. If `true`, the recognizer will // detect a single spoken utterance in input audio. Recognition ceases // when it detects the audio's voice has stopped or paused. In this // case, once a detected intent is received, the client should close the // stream and start a new request with a new stream as needed. Note: // This setting is relevant only for streaming methods. Note: When // specified, InputAudioConfig.single_utterance takes precedence over // StreamingDetectIntentRequest.single_utterance. SingleUtterance bool `json:"singleUtterance,omitempty"` // SpeechContexts: Context information to assist speech recognition. See // [the Cloud Speech // documentation](https://cloud.google.com/speech-to-text/docs/basics#phr // ase-hints) for more details. SpeechContexts []*GoogleCloudDialogflowV2SpeechContext `json:"speechContexts,omitempty"` // ForceSendFields is a list of field names (e.g. "AudioEncoding") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AudioEncoding") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2InputAudioConfig: Instructs the speech recognizer how to process the audio content.
func (*GoogleCloudDialogflowV2InputAudioConfig) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2InputAudioConfig) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2Intent ¶
type GoogleCloudDialogflowV2Intent struct { // Action: Optional. The name of the action associated with the intent. // Note: The action name must not contain whitespaces. Action string `json:"action,omitempty"` // DefaultResponsePlatforms: Optional. The list of platforms for which // the first responses will be copied from the messages in // PLATFORM_UNSPECIFIED (i.e. default platform). // // Possible values: // "PLATFORM_UNSPECIFIED" - Default platform. // "FACEBOOK" - Facebook. // "SLACK" - Slack. // "TELEGRAM" - Telegram. // "KIK" - Kik. // "SKYPE" - Skype. // "LINE" - Line. // "VIBER" - Viber. // "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook // format](https://developers.google.com/assistant/actions/build/json/dia // logflow-webhook-json) // "GOOGLE_HANGOUTS" - Google Hangouts. DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"` // DisplayName: Required. The name of this intent. DisplayName string `json:"displayName,omitempty"` // Events: Optional. The collection of event names that trigger the // intent. If the collection of input contexts is not empty, all of the // contexts must be present in the active user session for an event to // trigger this intent. Event names are limited to 150 characters. Events []string `json:"events,omitempty"` // FollowupIntentInfo: Read-only. Information about all followup intents // that have this intent as a direct or indirect parent. We populate // this field only in the output. FollowupIntentInfo []*GoogleCloudDialogflowV2IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"` // InputContextNames: Optional. The list of context names required for // this intent to be triggered. Format: // `projects//agent/sessions/-/contexts/`. InputContextNames []string `json:"inputContextNames,omitempty"` // IsFallback: Optional. Indicates whether this is a fallback intent. IsFallback bool `json:"isFallback,omitempty"` // Messages: Optional. The collection of rich messages corresponding to // the `Response` field in the Dialogflow console. Messages []*GoogleCloudDialogflowV2IntentMessage `json:"messages,omitempty"` // MlDisabled: Optional. Indicates whether Machine Learning is disabled // for the intent. Note: If `ml_disabled` setting is set to true, then // this intent is not taken into account during inference in `ML ONLY` // match mode. Also, auto-markup in the UI is turned off. MlDisabled bool `json:"mlDisabled,omitempty"` // Name: Optional. The unique identifier of this intent. Required for // Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format: // `projects//agent/intents/`. Name string `json:"name,omitempty"` // OutputContexts: Optional. The collection of contexts that are // activated when the intent is matched. Context messages in this // collection should not set the parameters field. Setting the // `lifespan_count` to 0 will reset the context when the intent is // matched. Format: `projects//agent/sessions/-/contexts/`. OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"` // Parameters: Optional. The collection of parameters associated with // the intent. Parameters []*GoogleCloudDialogflowV2IntentParameter `json:"parameters,omitempty"` // ParentFollowupIntentName: Read-only after creation. The unique // identifier of the parent intent in the chain of followup intents. You // can set this field when creating an intent, for example with // CreateIntent or BatchUpdateIntents, in order to make this intent a // followup intent. It identifies the parent followup intent. Format: // `projects//agent/intents/`. ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"` // Priority: Optional. The priority of this intent. Higher numbers // represent higher priorities. - If the supplied value is unspecified // or 0, the service translates the value to 500,000, which corresponds // to the `Normal` priority in the console. - If the supplied value is // negative, the intent is ignored in runtime detect intent requests. Priority int64 `json:"priority,omitempty"` // ResetContexts: Optional. Indicates whether to delete all contexts in // the current session when this intent is matched. ResetContexts bool `json:"resetContexts,omitempty"` // RootFollowupIntentName: Read-only. The unique identifier of the root // intent in the chain of followup intents. It identifies the correct // followup intents chain for this intent. We populate this field only // in the output. Format: `projects//agent/intents/`. RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"` // TrainingPhrases: Optional. The collection of examples that the agent // is trained on. TrainingPhrases []*GoogleCloudDialogflowV2IntentTrainingPhrase `json:"trainingPhrases,omitempty"` // WebhookState: Optional. Indicates whether webhooks are enabled for // the intent. // // Possible values: // "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and // in the intent. // "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in // the intent. // "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in // the agent and in the intent. Also, each slot filling prompt is // forwarded to the webhook. WebhookState string `json:"webhookState,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Action") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Action") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2Intent: An intent categorizes an end-user's intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
func (*GoogleCloudDialogflowV2Intent) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2Intent) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentBatch ¶
type GoogleCloudDialogflowV2IntentBatch struct { // Intents: A collection of intents. Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"` // ForceSendFields is a list of field names (e.g. "Intents") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Intents") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentBatch: This message is a wrapper around a collection of intents.
func (*GoogleCloudDialogflowV2IntentBatch) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentBatch) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentFollowupIntentInfo ¶
type GoogleCloudDialogflowV2IntentFollowupIntentInfo struct { // FollowupIntentName: The unique identifier of the followup intent. // Format: `projects//agent/intents/`. FollowupIntentName string `json:"followupIntentName,omitempty"` // ParentFollowupIntentName: The unique identifier of the followup // intent's parent. Format: `projects//agent/intents/`. ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"` // ForceSendFields is a list of field names (e.g. "FollowupIntentName") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FollowupIntentName") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentFollowupIntentInfo: Represents a single followup intent in the chain.
func (*GoogleCloudDialogflowV2IntentFollowupIntentInfo) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentFollowupIntentInfo) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessage ¶
type GoogleCloudDialogflowV2IntentMessage struct { // BasicCard: The basic card response for Actions on Google. BasicCard *GoogleCloudDialogflowV2IntentMessageBasicCard `json:"basicCard,omitempty"` // BrowseCarouselCard: Browse carousel card for Actions on Google. BrowseCarouselCard *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"` // Card: The card response. Card *GoogleCloudDialogflowV2IntentMessageCard `json:"card,omitempty"` // CarouselSelect: The carousel card response for Actions on Google. CarouselSelect *GoogleCloudDialogflowV2IntentMessageCarouselSelect `json:"carouselSelect,omitempty"` // Image: The image response. Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"` // LinkOutSuggestion: The link out suggestion chip for Actions on // Google. LinkOutSuggestion *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"` // ListSelect: The list card response for Actions on Google. ListSelect *GoogleCloudDialogflowV2IntentMessageListSelect `json:"listSelect,omitempty"` // MediaContent: The media content card for Actions on Google. MediaContent *GoogleCloudDialogflowV2IntentMessageMediaContent `json:"mediaContent,omitempty"` // Payload: A custom platform-specific response. Payload googleapi.RawMessage `json:"payload,omitempty"` // Platform: Optional. The platform that this message is intended for. // // Possible values: // "PLATFORM_UNSPECIFIED" - Default platform. // "FACEBOOK" - Facebook. // "SLACK" - Slack. // "TELEGRAM" - Telegram. // "KIK" - Kik. // "SKYPE" - Skype. // "LINE" - Line. // "VIBER" - Viber. // "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook // format](https://developers.google.com/assistant/actions/build/json/dia // logflow-webhook-json) // "GOOGLE_HANGOUTS" - Google Hangouts. Platform string `json:"platform,omitempty"` // QuickReplies: The quick replies response. QuickReplies *GoogleCloudDialogflowV2IntentMessageQuickReplies `json:"quickReplies,omitempty"` // SimpleResponses: The voice and text-only responses for Actions on // Google. SimpleResponses *GoogleCloudDialogflowV2IntentMessageSimpleResponses `json:"simpleResponses,omitempty"` // Suggestions: The suggestion chips for Actions on Google. Suggestions *GoogleCloudDialogflowV2IntentMessageSuggestions `json:"suggestions,omitempty"` // TableCard: Table card for Actions on Google. TableCard *GoogleCloudDialogflowV2IntentMessageTableCard `json:"tableCard,omitempty"` // Text: The text response. Text *GoogleCloudDialogflowV2IntentMessageText `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "BasicCard") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BasicCard") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessage: A rich response message. Corresponds to the intent `Response` field in the Dialogflow console. For more information, see [Rich response messages](https://cloud.google.com/dialogflow/docs/intents-rich-messag es).
func (*GoogleCloudDialogflowV2IntentMessage) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessage) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageBasicCard ¶
type GoogleCloudDialogflowV2IntentMessageBasicCard struct { // Buttons: Optional. The collection of card buttons. Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"` // FormattedText: Required, unless image is present. The body text of // the card. FormattedText string `json:"formattedText,omitempty"` // Image: Optional. The image for the card. Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"` // Subtitle: Optional. The subtitle of the card. Subtitle string `json:"subtitle,omitempty"` // Title: Optional. The title of the card. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Buttons") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Buttons") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageBasicCard: The basic card message. Useful for displaying information.
func (*GoogleCloudDialogflowV2IntentMessageBasicCard) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessageBasicCard) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageBasicCardButton ¶
type GoogleCloudDialogflowV2IntentMessageBasicCardButton struct { // OpenUriAction: Required. Action to take when a user taps on the // button. OpenUriAction *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"` // Title: Required. The title of the button. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "OpenUriAction") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "OpenUriAction") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageBasicCardButton: The button object that appears at the bottom of a card.
func (*GoogleCloudDialogflowV2IntentMessageBasicCardButton) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButton) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction ¶
type GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction struct { // Uri: Required. The HTTP or HTTPS scheme URI. Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "Uri") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Uri") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction: Opens the given URI.
func (*GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard ¶ added in v0.14.0
type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard struct { // ImageDisplayOptions: Optional. Settings for displaying the image. // Applies to every image in items. // // Possible values: // "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the // image and the image container with gray bars. // "GRAY" - Fill the gaps between the image and the image container // with gray bars. // "WHITE" - Fill the gaps between the image and the image container // with white bars. // "CROPPED" - Image is scaled such that the image width and height // match or exceed the container dimensions. This may crop the top and // bottom of the image if the scaled image height is greater than the // container height, or crop the left and right of the image if the // scaled image width is greater than the container width. This is // similar to "Zoom Mode" on a widescreen TV when playing a 4:3 video. // "BLURRED_BACKGROUND" - Pad the gaps between image and image frame // with a blurred copy of the same image. ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"` // Items: Required. List of items in the Browse Carousel Card. Minimum // of two items, maximum of ten. Items []*GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"` // ForceSendFields is a list of field names (e.g. "ImageDisplayOptions") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ImageDisplayOptions") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard: Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel
func (*GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard) MarshalJSON ¶ added in v0.14.0
func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem ¶ added in v0.14.0
type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct { // Description: Optional. Description of the carousel item. Maximum of // four lines of text. Description string `json:"description,omitempty"` // Carousel Card. Maximum of one line of text. Footer string `json:"footer,omitempty"` // Image: Optional. Hero image for the carousel item. Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"` // OpenUriAction: Required. Action to present to the user. OpenUriAction *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"` // Title: Required. Title of the carousel item. Maximum of two lines of // text. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCa rdItem: Browsing carousel tile
func (*GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON ¶ added in v0.14.0
func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction ¶ added in v0.14.0
type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct { // Url: Required. URL Url string `json:"url,omitempty"` // UrlTypeHint: Optional. Specifies the type of viewer that is used when // opening the URL. Defaults to opening via web browser. // // Possible values: // "URL_TYPE_HINT_UNSPECIFIED" - Unspecified // "AMP_ACTION" - Url would be an amp action // "AMP_CONTENT" - URL that points directly to AMP content, or to a // canonical URL which refers to AMP content via . UrlTypeHint string `json:"urlTypeHint,omitempty"` // ForceSendFields is a list of field names (e.g. "Url") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Url") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCa rdItemOpenUrlAction: Actions on Google action to open a given url.
func (*GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON ¶ added in v0.14.0
func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageCard ¶
type GoogleCloudDialogflowV2IntentMessageCard struct { // Buttons: Optional. The collection of card buttons. Buttons []*GoogleCloudDialogflowV2IntentMessageCardButton `json:"buttons,omitempty"` // ImageUri: Optional. The public URI to an image file for the card. ImageUri string `json:"imageUri,omitempty"` // Subtitle: Optional. The subtitle of the card. Subtitle string `json:"subtitle,omitempty"` // Title: Optional. The title of the card. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Buttons") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Buttons") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageCard: The card response message.
func (*GoogleCloudDialogflowV2IntentMessageCard) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessageCard) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageCardButton ¶
type GoogleCloudDialogflowV2IntentMessageCardButton struct { // Postback: Optional. The text to send back to the Dialogflow API or a // URI to open. Postback string `json:"postback,omitempty"` // Text: Optional. The text to show on the button. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Postback") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Postback") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageCardButton: Contains information about a button.
func (*GoogleCloudDialogflowV2IntentMessageCardButton) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessageCardButton) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageCarouselSelect ¶
type GoogleCloudDialogflowV2IntentMessageCarouselSelect struct { // Items: Required. Carousel items. Items []*GoogleCloudDialogflowV2IntentMessageCarouselSelectItem `json:"items,omitempty"` // ForceSendFields is a list of field names (e.g. "Items") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Items") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageCarouselSelect: The card for presenting a carousel of options to select from.
func (*GoogleCloudDialogflowV2IntentMessageCarouselSelect) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelect) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageCarouselSelectItem ¶
type GoogleCloudDialogflowV2IntentMessageCarouselSelectItem struct { // Description: Optional. The body text of the card. Description string `json:"description,omitempty"` // Image: Optional. The image to display. Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"` // Info: Required. Additional info about the option item. Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"` // Title: Required. Title of the carousel item. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageCarouselSelectItem: An item in the carousel.
func (*GoogleCloudDialogflowV2IntentMessageCarouselSelectItem) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageColumnProperties ¶ added in v0.14.0
type GoogleCloudDialogflowV2IntentMessageColumnProperties struct { // Header: Required. Column heading. Header string `json:"header,omitempty"` // HorizontalAlignment: Optional. Defines text alignment for all cells // in this column. // // Possible values: // "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading // edge of the column. // "LEADING" - Text is aligned to the leading edge of the column. // "CENTER" - Text is centered in the column. // "TRAILING" - Text is aligned to the trailing edge of the column. HorizontalAlignment string `json:"horizontalAlignment,omitempty"` // ForceSendFields is a list of field names (e.g. "Header") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Header") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageColumnProperties: Column properties for TableCard.
func (*GoogleCloudDialogflowV2IntentMessageColumnProperties) MarshalJSON ¶ added in v0.14.0
func (s *GoogleCloudDialogflowV2IntentMessageColumnProperties) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageImage ¶
type GoogleCloudDialogflowV2IntentMessageImage struct { // AccessibilityText: Optional. A text description of the image to be // used for accessibility, e.g., screen readers. AccessibilityText string `json:"accessibilityText,omitempty"` // ImageUri: Optional. The public URI to an image file. ImageUri string `json:"imageUri,omitempty"` // ForceSendFields is a list of field names (e.g. "AccessibilityText") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccessibilityText") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageImage: The image response message.
func (*GoogleCloudDialogflowV2IntentMessageImage) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessageImage) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion ¶
type GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion struct { // DestinationName: Required. The name of the app or site this chip is // linking to. DestinationName string `json:"destinationName,omitempty"` // Uri: Required. The URI of the app or site to open when the user taps // the suggestion chip. Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "DestinationName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DestinationName") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion: The suggestion chip message that allows the user to jump out to the app or website associated with this agent.
func (*GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageListSelect ¶
type GoogleCloudDialogflowV2IntentMessageListSelect struct { // Items: Required. List items. Items []*GoogleCloudDialogflowV2IntentMessageListSelectItem `json:"items,omitempty"` // Subtitle: Optional. Subtitle of the list. Subtitle string `json:"subtitle,omitempty"` // Title: Optional. The overall title of the list. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Items") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Items") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageListSelect: The card for presenting a list of options to select from.
func (*GoogleCloudDialogflowV2IntentMessageListSelect) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessageListSelect) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageListSelectItem ¶
type GoogleCloudDialogflowV2IntentMessageListSelectItem struct { // Description: Optional. The main text describing the item. Description string `json:"description,omitempty"` // Image: Optional. The image to display. Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"` // Info: Required. Additional information about this option. Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"` // Title: Required. The title of the list item. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageListSelectItem: An item in the list.
func (*GoogleCloudDialogflowV2IntentMessageListSelectItem) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessageListSelectItem) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageMediaContent ¶ added in v0.14.0
type GoogleCloudDialogflowV2IntentMessageMediaContent struct { // MediaObjects: Required. List of media objects. MediaObjects []*GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"` // MediaType: Optional. What type of media is the content (ie "audio"). // // Possible values: // "RESPONSE_MEDIA_TYPE_UNSPECIFIED" - Unspecified. // "AUDIO" - Response media type is audio. MediaType string `json:"mediaType,omitempty"` // ForceSendFields is a list of field names (e.g. "MediaObjects") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MediaObjects") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageMediaContent: The media content card for Actions on Google.
func (*GoogleCloudDialogflowV2IntentMessageMediaContent) MarshalJSON ¶ added in v0.14.0
func (s *GoogleCloudDialogflowV2IntentMessageMediaContent) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject ¶ added in v0.14.0
type GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject struct { // ContentUrl: Required. Url where the media is stored. ContentUrl string `json:"contentUrl,omitempty"` // Description: Optional. Description of media card. Description string `json:"description,omitempty"` // Icon: Optional. Icon to display above media content. Icon *GoogleCloudDialogflowV2IntentMessageImage `json:"icon,omitempty"` // LargeImage: Optional. Image to display above media content. LargeImage *GoogleCloudDialogflowV2IntentMessageImage `json:"largeImage,omitempty"` // Name: Required. Name of media card. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "ContentUrl") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ContentUrl") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject: Response media object for media content card.
func (*GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject) MarshalJSON ¶ added in v0.14.0
func (s *GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageQuickReplies ¶
type GoogleCloudDialogflowV2IntentMessageQuickReplies struct { // QuickReplies: Optional. The collection of quick replies. QuickReplies []string `json:"quickReplies,omitempty"` // Title: Optional. The title of the collection of quick replies. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "QuickReplies") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "QuickReplies") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageQuickReplies: The quick replies response message.
func (*GoogleCloudDialogflowV2IntentMessageQuickReplies) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessageQuickReplies) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageSelectItemInfo ¶
type GoogleCloudDialogflowV2IntentMessageSelectItemInfo struct { // Key: Required. A unique key that will be sent back to the agent if // this response is given. Key string `json:"key,omitempty"` // Synonyms: Optional. A list of synonyms that can also be used to // trigger this item in dialog. Synonyms []string `json:"synonyms,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Key") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageSelectItemInfo: Additional info about the select item for when it is triggered in a dialog.
func (*GoogleCloudDialogflowV2IntentMessageSelectItemInfo) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageSimpleResponse ¶
type GoogleCloudDialogflowV2IntentMessageSimpleResponse struct { // DisplayText: Optional. The text to display. DisplayText string `json:"displayText,omitempty"` // Ssml: One of text_to_speech or ssml must be provided. Structured // spoken response to the user in the SSML format. Mutually exclusive // with text_to_speech. Ssml string `json:"ssml,omitempty"` // TextToSpeech: One of text_to_speech or ssml must be provided. The // plain text of the speech output. Mutually exclusive with ssml. TextToSpeech string `json:"textToSpeech,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayText") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayText") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageSimpleResponse: The simple response message containing speech or text.
func (*GoogleCloudDialogflowV2IntentMessageSimpleResponse) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageSimpleResponses ¶
type GoogleCloudDialogflowV2IntentMessageSimpleResponses struct { // SimpleResponses: Required. The list of simple responses. SimpleResponses []*GoogleCloudDialogflowV2IntentMessageSimpleResponse `json:"simpleResponses,omitempty"` // ForceSendFields is a list of field names (e.g. "SimpleResponses") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "SimpleResponses") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageSimpleResponses: The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`.
func (*GoogleCloudDialogflowV2IntentMessageSimpleResponses) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponses) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageSuggestion ¶
type GoogleCloudDialogflowV2IntentMessageSuggestion struct { // Title: Required. The text shown the in the suggestion chip. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Title") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Title") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageSuggestion: The suggestion chip message that the user can tap to quickly post a reply to the conversation.
func (*GoogleCloudDialogflowV2IntentMessageSuggestion) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessageSuggestion) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageSuggestions ¶
type GoogleCloudDialogflowV2IntentMessageSuggestions struct { // Suggestions: Required. The list of suggested replies. Suggestions []*GoogleCloudDialogflowV2IntentMessageSuggestion `json:"suggestions,omitempty"` // ForceSendFields is a list of field names (e.g. "Suggestions") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Suggestions") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageSuggestions: The collection of suggestions.
func (*GoogleCloudDialogflowV2IntentMessageSuggestions) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessageSuggestions) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageTableCard ¶ added in v0.14.0
type GoogleCloudDialogflowV2IntentMessageTableCard struct { // Buttons: Optional. List of buttons for the card. Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"` // ColumnProperties: Optional. Display properties for the columns in // this table. ColumnProperties []*GoogleCloudDialogflowV2IntentMessageColumnProperties `json:"columnProperties,omitempty"` // Image: Optional. Image which should be displayed on the card. Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"` // Rows: Optional. Rows in this table of data. Rows []*GoogleCloudDialogflowV2IntentMessageTableCardRow `json:"rows,omitempty"` // Subtitle: Optional. Subtitle to the title. Subtitle string `json:"subtitle,omitempty"` // Title: Required. Title of the card. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Buttons") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Buttons") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageTableCard: Table card for Actions on Google.
func (*GoogleCloudDialogflowV2IntentMessageTableCard) MarshalJSON ¶ added in v0.14.0
func (s *GoogleCloudDialogflowV2IntentMessageTableCard) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageTableCardCell ¶ added in v0.14.0
type GoogleCloudDialogflowV2IntentMessageTableCardCell struct { // Text: Required. Text in this cell. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Text") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Text") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageTableCardCell: Cell of TableCardRow.
func (*GoogleCloudDialogflowV2IntentMessageTableCardCell) MarshalJSON ¶ added in v0.14.0
func (s *GoogleCloudDialogflowV2IntentMessageTableCardCell) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageTableCardRow ¶ added in v0.14.0
type GoogleCloudDialogflowV2IntentMessageTableCardRow struct { // Cells: Optional. List of cells that make up this row. Cells []*GoogleCloudDialogflowV2IntentMessageTableCardCell `json:"cells,omitempty"` // DividerAfter: Optional. Whether to add a visual divider after this // row. DividerAfter bool `json:"dividerAfter,omitempty"` // ForceSendFields is a list of field names (e.g. "Cells") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Cells") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageTableCardRow: Row of TableCard.
func (*GoogleCloudDialogflowV2IntentMessageTableCardRow) MarshalJSON ¶ added in v0.14.0
func (s *GoogleCloudDialogflowV2IntentMessageTableCardRow) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentMessageText ¶
type GoogleCloudDialogflowV2IntentMessageText struct { // Text: Optional. The collection of the agent's responses. Text []string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Text") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Text") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentMessageText: The text response message.
func (*GoogleCloudDialogflowV2IntentMessageText) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentMessageText) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentParameter ¶
type GoogleCloudDialogflowV2IntentParameter struct { // DefaultValue: Optional. The default value to use when the `value` // yields an empty result. Default values can be extracted from contexts // by using the following syntax: `#context_name.parameter_name`. DefaultValue string `json:"defaultValue,omitempty"` // DisplayName: Required. The name of the parameter. DisplayName string `json:"displayName,omitempty"` // EntityTypeDisplayName: Optional. The name of the entity type, // prefixed with `@`, that describes values of the parameter. If the // parameter is required, this must be provided. EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"` // IsList: Optional. Indicates whether the parameter represents a list // of values. IsList bool `json:"isList,omitempty"` // Mandatory: Optional. Indicates whether the parameter is required. // That is, whether the intent cannot be completed without collecting // the parameter value. Mandatory bool `json:"mandatory,omitempty"` // Name: The unique identifier of this parameter. Name string `json:"name,omitempty"` // Prompts: Optional. The collection of prompts that the agent can // present to the user in order to collect a value for the parameter. Prompts []string `json:"prompts,omitempty"` // Value: Optional. The definition of the parameter value. It can be: - // a constant string, - a parameter value defined as `$parameter_name`, // - an original parameter value defined as `$parameter_name.original`, // - a parameter value from some context defined as // `#context_name.parameter_name`. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "DefaultValue") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DefaultValue") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentParameter: Represents intent parameters.
func (*GoogleCloudDialogflowV2IntentParameter) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentParameter) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentTrainingPhrase ¶
type GoogleCloudDialogflowV2IntentTrainingPhrase struct { // Name: Output only. The unique identifier of this training phrase. Name string `json:"name,omitempty"` // Parts: Required. The ordered list of training phrase parts. The parts // are concatenated in order to form the training phrase. Note: The API // does not automatically annotate training phrases like the Dialogflow // Console does. Note: Do not forget to include whitespace at part // boundaries, so the training phrase is well formatted when the parts // are concatenated. If the training phrase does not need to be // annotated with parameters, you just need a single part with only the // Part.text field set. If you want to annotate the training phrase, you // must create multiple parts, where the fields of each part are // populated in one of two ways: - `Part.text` is set to a part of the // phrase that has no parameters. - `Part.text` is set to a part of the // phrase that you want to annotate, and the `entity_type`, `alias`, and // `user_defined` fields are all set. Parts []*GoogleCloudDialogflowV2IntentTrainingPhrasePart `json:"parts,omitempty"` // TimesAddedCount: Optional. Indicates how many times this example was // added to the intent. Each time a developer adds an existing sample by // editing an intent or training, this counter is increased. TimesAddedCount int64 `json:"timesAddedCount,omitempty"` // Type: Required. The type of the training phrase. // // Possible values: // "TYPE_UNSPECIFIED" - Not specified. This value should never be // used. // "EXAMPLE" - Examples do not contain @-prefixed entity type names, // but example parts can be annotated with entity types. // "TEMPLATE" - Templates are not annotated with entity types, but // they can contain @-prefixed entity type names as substrings. Template // mode has been deprecated. Example mode is the only supported way to // create new training phrases. If you have existing training phrases // that you've created in template mode, those will continue to work. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Name") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentTrainingPhrase: Represents an example that the agent is trained on.
func (*GoogleCloudDialogflowV2IntentTrainingPhrase) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentTrainingPhrase) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2IntentTrainingPhrasePart ¶
type GoogleCloudDialogflowV2IntentTrainingPhrasePart struct { // Alias: Optional. The parameter name for the value extracted from the // annotated part of the example. This field is required for annotated // parts of the training phrase. Alias string `json:"alias,omitempty"` // EntityType: Optional. The entity type name prefixed with `@`. This // field is required for annotated parts of the training phrase. EntityType string `json:"entityType,omitempty"` // Text: Required. The text for this part. Text string `json:"text,omitempty"` // UserDefined: Optional. Indicates whether the text was manually // annotated. This field is set to true when the Dialogflow Console is // used to manually annotate the part. When creating an annotated part // with the API, you must set this to true. UserDefined bool `json:"userDefined,omitempty"` // ForceSendFields is a list of field names (e.g. "Alias") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Alias") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2IntentTrainingPhrasePart: Represents a part of a training phrase.
func (*GoogleCloudDialogflowV2IntentTrainingPhrasePart) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2IntentTrainingPhrasePart) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2ListContextsResponse ¶
type GoogleCloudDialogflowV2ListContextsResponse struct { // Contexts: The list of contexts. There will be a maximum number of // items returned based on the page_size field in the request. Contexts []*GoogleCloudDialogflowV2Context `json:"contexts,omitempty"` // NextPageToken: Token to retrieve the next page of results, or empty // if there are no more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Contexts") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Contexts") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2ListContextsResponse: The response message for Contexts.ListContexts.
func (*GoogleCloudDialogflowV2ListContextsResponse) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2ListContextsResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2ListEntityTypesResponse ¶
type GoogleCloudDialogflowV2ListEntityTypesResponse struct { // EntityTypes: The list of agent entity types. There will be a maximum // number of items returned based on the page_size field in the request. EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"` // NextPageToken: Token to retrieve the next page of results, or empty // if there are no more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "EntityTypes") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EntityTypes") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2ListEntityTypesResponse: The response message for EntityTypes.ListEntityTypes.
func (*GoogleCloudDialogflowV2ListEntityTypesResponse) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2ListEntityTypesResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2ListEnvironmentsResponse ¶ added in v0.18.0
type GoogleCloudDialogflowV2ListEnvironmentsResponse struct { // Environments: The list of agent environments. There will be a maximum // number of items returned based on the page_size field in the request. Environments []*GoogleCloudDialogflowV2Environment `json:"environments,omitempty"` // NextPageToken: Token to retrieve the next page of results, or empty // if there are no more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Environments") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Environments") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2ListEnvironmentsResponse: The response message for Environments.ListEnvironments.
func (*GoogleCloudDialogflowV2ListEnvironmentsResponse) MarshalJSON ¶ added in v0.18.0
func (s *GoogleCloudDialogflowV2ListEnvironmentsResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2ListIntentsResponse ¶
type GoogleCloudDialogflowV2ListIntentsResponse struct { // Intents: The list of agent intents. There will be a maximum number of // items returned based on the page_size field in the request. Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"` // NextPageToken: Token to retrieve the next page of results, or empty // if there are no more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Intents") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Intents") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2ListIntentsResponse: The response message for Intents.ListIntents.
func (*GoogleCloudDialogflowV2ListIntentsResponse) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2ListIntentsResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2ListSessionEntityTypesResponse ¶
type GoogleCloudDialogflowV2ListSessionEntityTypesResponse struct { // NextPageToken: Token to retrieve the next page of results, or empty // if there are no more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` // SessionEntityTypes: The list of session entity types. There will be a // maximum number of items returned based on the page_size field in the // request. SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2ListSessionEntityTypesResponse: The response message for SessionEntityTypes.ListSessionEntityTypes.
func (*GoogleCloudDialogflowV2ListSessionEntityTypesResponse) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2ListSessionEntityTypesResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2Message ¶ added in v0.15.0
type GoogleCloudDialogflowV2Message struct { // Content: Required. The message content. Content string `json:"content,omitempty"` // CreateTime: Output only. The time when the message was created. CreateTime string `json:"createTime,omitempty"` // LanguageCode: Optional. The message language. This should be a // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. // Example: "en-US". LanguageCode string `json:"languageCode,omitempty"` // MessageAnnotation: Output only. The annotation for the message. MessageAnnotation *GoogleCloudDialogflowV2MessageAnnotation `json:"messageAnnotation,omitempty"` // Name: The unique identifier of the message. Format: // `projects//conversations//messages/`. Name string `json:"name,omitempty"` // Participant: Output only. The participant that sends this message. Participant string `json:"participant,omitempty"` // ParticipantRole: Output only. The role of the participant. // // Possible values: // "ROLE_UNSPECIFIED" - Participant role not set. // "HUMAN_AGENT" - Participant is a human agent. // "AUTOMATED_AGENT" - Participant is an automated agent, such as a // Dialogflow agent. // "END_USER" - Participant is an end user that has called or chatted // with Dialogflow services. ParticipantRole string `json:"participantRole,omitempty"` // ForceSendFields is a list of field names (e.g. "Content") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Content") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2Message: Represents a message posted into a conversation.
func (*GoogleCloudDialogflowV2Message) MarshalJSON ¶ added in v0.15.0
func (s *GoogleCloudDialogflowV2Message) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2MessageAnnotation ¶ added in v0.15.0
type GoogleCloudDialogflowV2MessageAnnotation struct { // ContainEntities: Indicates whether the text message contains // entities. ContainEntities bool `json:"containEntities,omitempty"` // Parts: The collection of annotated message parts ordered by their // position in the message. You can recover the annotated message by // concatenating [AnnotatedMessagePart.text]. Parts []*GoogleCloudDialogflowV2AnnotatedMessagePart `json:"parts,omitempty"` // ForceSendFields is a list of field names (e.g. "ContainEntities") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ContainEntities") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2MessageAnnotation: Represents the result of annotation for the message.
func (*GoogleCloudDialogflowV2MessageAnnotation) MarshalJSON ¶ added in v0.15.0
func (s *GoogleCloudDialogflowV2MessageAnnotation) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2OriginalDetectIntentRequest ¶
type GoogleCloudDialogflowV2OriginalDetectIntentRequest struct { // Payload: Optional. This field is set to the value of the // `QueryParameters.payload` field passed in the request. Some // integrations that query a Dialogflow agent may provide additional // information in the payload. In particular, for the Dialogflow Phone // Gateway integration, this field has the form: { "telephony": { // "caller_id": "+18558363987" } } Note: The caller ID field // (`caller_id`) will be redacted for Trial Edition agents and populated // with the caller ID in [E.164 // format](https://en.wikipedia.org/wiki/E.164) for Essentials Edition // agents. Payload googleapi.RawMessage `json:"payload,omitempty"` // Source: The source of this request, e.g., `google`, `facebook`, // `slack`. It is set by Dialogflow-owned servers. Source string `json:"source,omitempty"` // Version: Optional. The version of the protocol used for this request. // This field is AoG-specific. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Payload") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Payload") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2OriginalDetectIntentRequest: Represents the contents of the original request that was passed to the `[Streaming]DetectIntent` call.
func (*GoogleCloudDialogflowV2OriginalDetectIntentRequest) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2OriginalDetectIntentRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2OutputAudioConfig ¶ added in v0.3.1
type GoogleCloudDialogflowV2OutputAudioConfig struct { // AudioEncoding: Required. Audio encoding of the synthesized audio // content. // // Possible values: // "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" - Not specified. // "OUTPUT_AUDIO_ENCODING_LINEAR_16" - Uncompressed 16-bit signed // little-endian samples (Linear PCM). Audio content returned as // LINEAR16 also contains a WAV header. // "OUTPUT_AUDIO_ENCODING_MP3" - MP3 audio at 32kbps. // "OUTPUT_AUDIO_ENCODING_OGG_OPUS" - Opus encoded audio wrapped in an // ogg container. The result will be a file which can be played natively // on Android, and in browsers (at least Chrome and Firefox). The // quality of the encoding is considerably higher than MP3 while using // approximately the same bitrate. AudioEncoding string `json:"audioEncoding,omitempty"` // SampleRateHertz: The synthesis sample rate (in hertz) for this audio. // If not provided, then the synthesizer will use the default sample // rate based on the audio encoding. If this is different from the // voice's natural sample rate, then the synthesizer will honor this // request by converting to the desired sample rate (which might result // in worse audio quality). SampleRateHertz int64 `json:"sampleRateHertz,omitempty"` // SynthesizeSpeechConfig: Configuration of how speech should be // synthesized. SynthesizeSpeechConfig *GoogleCloudDialogflowV2SynthesizeSpeechConfig `json:"synthesizeSpeechConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "AudioEncoding") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AudioEncoding") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2OutputAudioConfig: Instructs the speech synthesizer on how to generate the output audio content. If this audio config is supplied in a request, it overrides all existing text-to-speech settings applied to the agent.
func (*GoogleCloudDialogflowV2OutputAudioConfig) MarshalJSON ¶ added in v0.3.1
func (s *GoogleCloudDialogflowV2OutputAudioConfig) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2QueryInput ¶
type GoogleCloudDialogflowV2QueryInput struct { // AudioConfig: Instructs the speech recognizer how to process the // speech audio. AudioConfig *GoogleCloudDialogflowV2InputAudioConfig `json:"audioConfig,omitempty"` // Event: The event to be processed. Event *GoogleCloudDialogflowV2EventInput `json:"event,omitempty"` // Text: The natural language text to be processed. Text *GoogleCloudDialogflowV2TextInput `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "AudioConfig") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AudioConfig") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2QueryInput: Represents the query input. It can contain either: 1. An audio config which instructs the speech recognizer how to process the speech audio. 2. A conversational query in the form of text,. 3. An event that specifies which intent to trigger.
func (*GoogleCloudDialogflowV2QueryInput) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2QueryInput) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2QueryParameters ¶
type GoogleCloudDialogflowV2QueryParameters struct { // Contexts: The collection of contexts to be activated before this // query is executed. Contexts []*GoogleCloudDialogflowV2Context `json:"contexts,omitempty"` // GeoLocation: The geo location of this conversational query. GeoLocation *GoogleTypeLatLng `json:"geoLocation,omitempty"` // Payload: This field can be used to pass custom data to your webhook. // Arbitrary JSON objects are supported. If supplied, the value is used // to populate the // `WebhookRequest.original_detect_intent_request.payload` field sent to // your webhook. Payload googleapi.RawMessage `json:"payload,omitempty"` // ResetContexts: Specifies whether to delete all contexts in the // current session before the new ones are activated. ResetContexts bool `json:"resetContexts,omitempty"` // SentimentAnalysisRequestConfig: Configures the type of sentiment // analysis to perform. If not provided, sentiment analysis is not // performed. SentimentAnalysisRequestConfig *GoogleCloudDialogflowV2SentimentAnalysisRequestConfig `json:"sentimentAnalysisRequestConfig,omitempty"` // SessionEntityTypes: Additional session entity types to replace or // extend developer entity types with. The entity synonyms apply to all // languages and persist for the session of this query. SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"` // TimeZone: The time zone of this conversational query from the [time // zone database](https://www.iana.org/time-zones), e.g., // America/New_York, Europe/Paris. If not provided, the time zone // specified in agent settings is used. TimeZone string `json:"timeZone,omitempty"` // WebhookHeaders: This field can be used to pass HTTP headers for a // webhook call. These headers will be sent to webhook along with the // headers that have been configured through Dialogflow web console. The // headers defined within this field will overwrite the headers // configured through Dialogflow console if there is a conflict. Header // names are case-insensitive. Google's specified headers are not // allowed. Including: "Host", "Content-Length", "Connection", "From", // "User-Agent", "Accept-Encoding", "If-Modified-Since", // "If-None-Match", "X-Forwarded-For", etc. WebhookHeaders map[string]string `json:"webhookHeaders,omitempty"` // ForceSendFields is a list of field names (e.g. "Contexts") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Contexts") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2QueryParameters: Represents the parameters of the conversational query.
func (*GoogleCloudDialogflowV2QueryParameters) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2QueryParameters) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2QueryResult ¶
type GoogleCloudDialogflowV2QueryResult struct { // Action: The action name from the matched intent. Action string `json:"action,omitempty"` // AllRequiredParamsPresent: This field is set to: - `false` if the // matched intent has required parameters and not all of the required // parameter values have been collected. - `true` if all required // parameter values have been collected, or if the matched intent // doesn't contain any required parameters. AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"` // DiagnosticInfo: Free-form diagnostic information for the associated // detect intent request. The fields of this data can change without // notice, so you should not write code that depends on its structure. // The data may contain: - webhook call latency - webhook errors DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"` // FulfillmentMessages: The collection of rich messages to present to // the user. FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"` // FulfillmentText: The text to be pronounced to the user or shown on // the screen. Note: This is a legacy field, `fulfillment_messages` // should be preferred. FulfillmentText string `json:"fulfillmentText,omitempty"` // Intent: The intent that matched the conversational query. Some, not // all fields are filled in this message, including but not limited to: // `name`, `display_name`, `end_interaction` and `is_fallback`. Intent *GoogleCloudDialogflowV2Intent `json:"intent,omitempty"` // IntentDetectionConfidence: The intent detection confidence. Values // range from 0.0 (completely uncertain) to 1.0 (completely certain). // This value is for informational purpose only and is only used to help // match the best intent within the classification threshold. This value // may change for the same end-user expression at any time due to a // model retraining or change in implementation. If there are `multiple // knowledge_answers` messages, this value is set to the greatest // `knowledgeAnswers.match_confidence` value in the list. IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"` // LanguageCode: The language that was triggered during intent // detection. See [Language // Support](https://cloud.google.com/dialogflow/docs/reference/language) // for a list of the currently supported language codes. LanguageCode string `json:"languageCode,omitempty"` // OutputContexts: The collection of output contexts. If applicable, // `output_contexts.parameters` contains entries with name `.original` // containing the original parameter values before the query. OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"` // Parameters: The collection of extracted parameters. Depending on your // protocol or client library language, this is a map, associative // array, symbol table, dictionary, or JSON object composed of a // collection of (MapKey, MapValue) pairs: - MapKey type: string - // MapKey value: parameter name - MapValue type: - If parameter's entity // type is a composite entity: map - Else: string or number, depending // on parameter value type - MapValue value: - If parameter's entity // type is a composite entity: map from composite entity property names // to property values - Else: parameter value Parameters googleapi.RawMessage `json:"parameters,omitempty"` // QueryText: The original conversational query text: - If natural // language text was provided as input, `query_text` contains a copy of // the input. - If natural language speech audio was provided as input, // `query_text` contains the speech recognition result. If speech // recognizer produced multiple alternatives, a particular one is // picked. - If automatic spell correction is enabled, `query_text` will // contain the corrected user input. QueryText string `json:"queryText,omitempty"` // SentimentAnalysisResult: The sentiment analysis result, which depends // on the `sentiment_analysis_request_config` specified in the request. SentimentAnalysisResult *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"` // SpeechRecognitionConfidence: The Speech recognition confidence // between 0.0 and 1.0. A higher number indicates an estimated greater // likelihood that the recognized words are correct. The default of 0.0 // is a sentinel value indicating that confidence was not set. This // field is not guaranteed to be accurate or set. In particular this // field isn't set for StreamingDetectIntent since the streaming // endpoint has separate confidence estimates per portion of the audio // in StreamingRecognitionResult. SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"` // WebhookPayload: If the query was fulfilled by a webhook call, this // field is set to the value of the `payload` field returned in the // webhook response. WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"` // WebhookSource: If the query was fulfilled by a webhook call, this // field is set to the value of the `source` field returned in the // webhook response. WebhookSource string `json:"webhookSource,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Action") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2QueryResult: Represents the result of conversational query or event processing.
func (*GoogleCloudDialogflowV2QueryResult) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2QueryResult) MarshalJSON() ([]byte, error)
func (*GoogleCloudDialogflowV2QueryResult) UnmarshalJSON ¶
func (s *GoogleCloudDialogflowV2QueryResult) UnmarshalJSON(data []byte) error
type GoogleCloudDialogflowV2RestoreAgentRequest ¶
type GoogleCloudDialogflowV2RestoreAgentRequest struct { // AgentContent: Zip compressed raw byte content for agent. AgentContent string `json:"agentContent,omitempty"` // AgentUri: The URI to a Google Cloud Storage file containing the agent // to restore. Note: The URI must start with "gs://". AgentUri string `json:"agentUri,omitempty"` // ForceSendFields is a list of field names (e.g. "AgentContent") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AgentContent") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2RestoreAgentRequest: The request message for Agents.RestoreAgent.
func (*GoogleCloudDialogflowV2RestoreAgentRequest) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2RestoreAgentRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2SearchAgentsResponse ¶
type GoogleCloudDialogflowV2SearchAgentsResponse struct { // Agents: The list of agents. There will be a maximum number of items // returned based on the page_size field in the request. Agents []*GoogleCloudDialogflowV2Agent `json:"agents,omitempty"` // NextPageToken: Token to retrieve the next page of results, or empty // if there are no more results in the list. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Agents") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Agents") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2SearchAgentsResponse: The response message for Agents.SearchAgents.
func (*GoogleCloudDialogflowV2SearchAgentsResponse) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2SearchAgentsResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2Sentiment ¶ added in v0.3.1
type GoogleCloudDialogflowV2Sentiment struct { // Magnitude: A non-negative number in the [0, +inf) range, which // represents the absolute magnitude of sentiment, regardless of score // (positive or negative). Magnitude float64 `json:"magnitude,omitempty"` // Score: Sentiment score between -1.0 (negative sentiment) and 1.0 // (positive sentiment). Score float64 `json:"score,omitempty"` // ForceSendFields is a list of field names (e.g. "Magnitude") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Magnitude") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2Sentiment: The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text.
func (*GoogleCloudDialogflowV2Sentiment) MarshalJSON ¶ added in v0.3.1
func (s *GoogleCloudDialogflowV2Sentiment) MarshalJSON() ([]byte, error)
func (*GoogleCloudDialogflowV2Sentiment) UnmarshalJSON ¶ added in v0.3.1
func (s *GoogleCloudDialogflowV2Sentiment) UnmarshalJSON(data []byte) error
type GoogleCloudDialogflowV2SentimentAnalysisRequestConfig ¶ added in v0.3.1
type GoogleCloudDialogflowV2SentimentAnalysisRequestConfig struct { // AnalyzeQueryTextSentiment: Instructs the service to perform sentiment // analysis on `query_text`. If not provided, sentiment analysis is not // performed on `query_text`. AnalyzeQueryTextSentiment bool `json:"analyzeQueryTextSentiment,omitempty"` // ForceSendFields is a list of field names (e.g. // "AnalyzeQueryTextSentiment") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "AnalyzeQueryTextSentiment") to include in API requests with the JSON // null value. By default, fields with empty values are omitted from API // requests. However, any field with an empty value appearing in // NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2SentimentAnalysisRequestConfig: Configures the types of sentiment analysis to perform.
func (*GoogleCloudDialogflowV2SentimentAnalysisRequestConfig) MarshalJSON ¶ added in v0.3.1
func (s *GoogleCloudDialogflowV2SentimentAnalysisRequestConfig) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2SentimentAnalysisResult ¶ added in v0.3.1
type GoogleCloudDialogflowV2SentimentAnalysisResult struct { // QueryTextSentiment: The sentiment analysis result for `query_text`. QueryTextSentiment *GoogleCloudDialogflowV2Sentiment `json:"queryTextSentiment,omitempty"` // ForceSendFields is a list of field names (e.g. "QueryTextSentiment") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "QueryTextSentiment") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2SentimentAnalysisResult: The result of sentiment analysis. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral. For Participants.DetectIntent, it needs to be configured in DetectIntentRequest.query_params. For Participants.StreamingDetectIntent, it needs to be configured in StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent and Participants.StreamingAnalyzeContent, it needs to be configured in ConversationProfile.human_agent_assistant_config
func (*GoogleCloudDialogflowV2SentimentAnalysisResult) MarshalJSON ¶ added in v0.3.1
func (s *GoogleCloudDialogflowV2SentimentAnalysisResult) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2SessionEntityType ¶
type GoogleCloudDialogflowV2SessionEntityType struct { // Entities: Required. The collection of entities associated with this // session entity type. Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"` // EntityOverrideMode: Required. Indicates whether the additional data // should override or supplement the custom entity type definition. // // Possible values: // "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value // should be never used. // "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session // entities overrides the collection of entities in the corresponding // custom entity type. // "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session // entities extends the collection of entities in the corresponding // custom entity type. Note: Even in this override mode calls to // `ListSessionEntityTypes`, `GetSessionEntityType`, // `CreateSessionEntityType` and `UpdateSessionEntityType` only return // the additional entities added in this session entity type. If you // want to get the supplemented list, please call // EntityTypes.GetEntityType on the custom entity type and merge. EntityOverrideMode string `json:"entityOverrideMode,omitempty"` // Name: Required. The unique identifier of this session entity type. // Format: `projects//agent/sessions//entityTypes/`, or // `projects//agent/environments//users//sessions//entityTypes/`. If // `Environment ID` is not specified, we assume default 'draft' // environment. If `User ID` is not specified, we assume default '-' // user. “ must be the display name of an existing entity type in the // same agent that will be overridden or supplemented. Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Entities") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entities") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2SessionEntityType: A session represents a conversation between a Dialogflow agent and an end-user. You can create special entities, called session entities, during a session. Session entities can extend or replace custom entity types and only exist during the session that they were created for. All session data, including session entities, is stored by Dialogflow for 20 minutes. For more information, see the [session entity guide](https://cloud.google.com/dialogflow/docs/entities-session).
func (*GoogleCloudDialogflowV2SessionEntityType) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2SessionEntityType) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2SpeechContext ¶ added in v0.16.0
type GoogleCloudDialogflowV2SpeechContext struct { // Boost: Optional. Boost for this context compared to other contexts: * // If the boost is positive, Dialogflow will increase the probability // that the phrases in this context are recognized over similar sounding // phrases. * If the boost is unspecified or non-positive, Dialogflow // will not apply any boost. Dialogflow recommends that you use boosts // in the range (0, 20] and that you find a value that fits your use // case with binary search. Boost float64 `json:"boost,omitempty"` // Phrases: Optional. A list of strings containing words and phrases // that the speech recognizer should recognize with higher likelihood. // This list can be used to: * improve accuracy for words and phrases // you expect the user to say, e.g. typical commands for your Dialogflow // agent * add additional words to the speech recognizer vocabulary * // ... See the [Cloud Speech // documentation](https://cloud.google.com/speech-to-text/quotas) for // usage limits. Phrases []string `json:"phrases,omitempty"` // ForceSendFields is a list of field names (e.g. "Boost") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Boost") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2SpeechContext: Hints for the speech recognizer to help with recognition in a specific conversation state.
func (*GoogleCloudDialogflowV2SpeechContext) MarshalJSON ¶ added in v0.16.0
func (s *GoogleCloudDialogflowV2SpeechContext) MarshalJSON() ([]byte, error)
func (*GoogleCloudDialogflowV2SpeechContext) UnmarshalJSON ¶ added in v0.16.0
func (s *GoogleCloudDialogflowV2SpeechContext) UnmarshalJSON(data []byte) error
type GoogleCloudDialogflowV2SynthesizeSpeechConfig ¶ added in v0.3.1
type GoogleCloudDialogflowV2SynthesizeSpeechConfig struct { // EffectsProfileId: Optional. An identifier which selects 'audio // effects' profiles that are applied on (post synthesized) text to // speech. Effects are applied on top of each other in the order they // are given. EffectsProfileId []string `json:"effectsProfileId,omitempty"` // Pitch: Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means // increase 20 semitones from the original pitch. -20 means decrease 20 // semitones from the original pitch. Pitch float64 `json:"pitch,omitempty"` // SpeakingRate: Optional. Speaking rate/speed, in the range [0.25, // 4.0]. 1.0 is the normal native speed supported by the specific voice. // 2.0 is twice as fast, and 0.5 is half as fast. If unset(0.0), // defaults to the native 1.0 speed. Any other values < 0.25 or > 4.0 // will return an error. SpeakingRate float64 `json:"speakingRate,omitempty"` // Voice: Optional. The desired voice of the synthesized audio. Voice *GoogleCloudDialogflowV2VoiceSelectionParams `json:"voice,omitempty"` // VolumeGainDb: Optional. Volume gain (in dB) of the normal native // volume supported by the specific voice, in the range [-96.0, 16.0]. // If unset, or set to a value of 0.0 (dB), will play at normal native // signal amplitude. A value of -6.0 (dB) will play at approximately // half the amplitude of the normal native signal amplitude. A value of // +6.0 (dB) will play at approximately twice the amplitude of the // normal native signal amplitude. We strongly recommend not to exceed // +10 (dB) as there's usually no effective increase in loudness for any // value greater than that. VolumeGainDb float64 `json:"volumeGainDb,omitempty"` // ForceSendFields is a list of field names (e.g. "EffectsProfileId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EffectsProfileId") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2SynthesizeSpeechConfig: Configuration of how speech should be synthesized.
func (*GoogleCloudDialogflowV2SynthesizeSpeechConfig) MarshalJSON ¶ added in v0.3.1
func (s *GoogleCloudDialogflowV2SynthesizeSpeechConfig) MarshalJSON() ([]byte, error)
func (*GoogleCloudDialogflowV2SynthesizeSpeechConfig) UnmarshalJSON ¶ added in v0.3.1
func (s *GoogleCloudDialogflowV2SynthesizeSpeechConfig) UnmarshalJSON(data []byte) error
type GoogleCloudDialogflowV2TextInput ¶
type GoogleCloudDialogflowV2TextInput struct { // LanguageCode: Required. The language of this conversational query. // See [Language // Support](https://cloud.google.com/dialogflow/docs/reference/language) // for a list of the currently supported language codes. Note that // queries in the same session do not necessarily need to specify the // same language. LanguageCode string `json:"languageCode,omitempty"` // Text: Required. The UTF-8 encoded natural language text to be // processed. Text length must not exceed 256 characters. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "LanguageCode") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LanguageCode") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2TextInput: Represents the natural language text to be processed.
func (*GoogleCloudDialogflowV2TextInput) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2TextInput) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2TrainAgentRequest ¶
type GoogleCloudDialogflowV2TrainAgentRequest struct { }
GoogleCloudDialogflowV2TrainAgentRequest: The request message for Agents.TrainAgent.
type GoogleCloudDialogflowV2ValidationError ¶ added in v0.18.0
type GoogleCloudDialogflowV2ValidationError struct { // Entries: The names of the entries that the error is associated with. // Format: - "projects//agent", if the error is associated with the // entire agent. - "projects//agent/intents/", if the error is // associated with certain intents. - // "projects//agent/intents//trainingPhrases/", if the error is // associated with certain intent training phrases. - // "projects//agent/intents//parameters/", if the error is associated // with certain intent parameters. - "projects//agent/entities/", if the // error is associated with certain entities. Entries []string `json:"entries,omitempty"` // ErrorMessage: The detailed error messsage. ErrorMessage string `json:"errorMessage,omitempty"` // Severity: The severity of the error. // // Possible values: // "SEVERITY_UNSPECIFIED" - Not specified. This value should never be // used. // "INFO" - The agent doesn't follow Dialogflow best practicies. // "WARNING" - The agent may not behave as expected. // "ERROR" - The agent may experience partial failures. // "CRITICAL" - The agent may completely fail. Severity string `json:"severity,omitempty"` // ForceSendFields is a list of field names (e.g. "Entries") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entries") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2ValidationError: Represents a single validation error.
func (*GoogleCloudDialogflowV2ValidationError) MarshalJSON ¶ added in v0.18.0
func (s *GoogleCloudDialogflowV2ValidationError) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2ValidationResult ¶ added in v0.18.0
type GoogleCloudDialogflowV2ValidationResult struct { // ValidationErrors: Contains all validation errors. ValidationErrors []*GoogleCloudDialogflowV2ValidationError `json:"validationErrors,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ValidationErrors") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ValidationErrors") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2ValidationResult: Represents the output of agent validation.
func (*GoogleCloudDialogflowV2ValidationResult) MarshalJSON ¶ added in v0.18.0
func (s *GoogleCloudDialogflowV2ValidationResult) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2VoiceSelectionParams ¶ added in v0.3.1
type GoogleCloudDialogflowV2VoiceSelectionParams struct { // Name: Optional. The name of the voice. If not set, the service will // choose a voice based on the other parameters such as language_code // and ssml_gender. Name string `json:"name,omitempty"` // SsmlGender: Optional. The preferred gender of the voice. If not set, // the service will choose a voice based on the other parameters such as // language_code and name. Note that this is only a preference, not // requirement. If a voice of the appropriate gender is not available, // the synthesizer should substitute a voice with a different gender // rather than failing the request. // // Possible values: // "SSML_VOICE_GENDER_UNSPECIFIED" - An unspecified gender, which // means that the client doesn't care which gender the selected voice // will have. // "SSML_VOICE_GENDER_MALE" - A male voice. // "SSML_VOICE_GENDER_FEMALE" - A female voice. // "SSML_VOICE_GENDER_NEUTRAL" - A gender-neutral voice. SsmlGender string `json:"ssmlGender,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Name") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2VoiceSelectionParams: Description of which voice to use for speech synthesis.
func (*GoogleCloudDialogflowV2VoiceSelectionParams) MarshalJSON ¶ added in v0.3.1
func (s *GoogleCloudDialogflowV2VoiceSelectionParams) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2WebhookRequest ¶
type GoogleCloudDialogflowV2WebhookRequest struct { // OriginalDetectIntentRequest: Optional. The contents of the original // request that was passed to `[Streaming]DetectIntent` call. OriginalDetectIntentRequest *GoogleCloudDialogflowV2OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"` // QueryResult: The result of the conversational query or event // processing. Contains the same value as // `[Streaming]DetectIntentResponse.query_result`. QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"` // ResponseId: The unique identifier of the response. Contains the same // value as `[Streaming]DetectIntentResponse.response_id`. ResponseId string `json:"responseId,omitempty"` // Session: The unique identifier of detectIntent request session. Can // be used to identify end-user inside webhook implementation. Format: // `projects//agent/sessions/`, or // `projects//agent/environments//users//sessions/`. Session string `json:"session,omitempty"` // ForceSendFields is a list of field names (e.g. // "OriginalDetectIntentRequest") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "OriginalDetectIntentRequest") to include in API requests with the // JSON null value. By default, fields with empty values are omitted // from API requests. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2WebhookRequest: The request message for a webhook call.
func (*GoogleCloudDialogflowV2WebhookRequest) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2WebhookRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2WebhookResponse ¶
type GoogleCloudDialogflowV2WebhookResponse struct { // FollowupEventInput: Optional. Invokes the supplied events. When this // field is set, Dialogflow ignores the `fulfillment_text`, // `fulfillment_messages`, and `payload` fields. FollowupEventInput *GoogleCloudDialogflowV2EventInput `json:"followupEventInput,omitempty"` // FulfillmentMessages: Optional. The rich response messages intended // for the end-user. When provided, Dialogflow uses this field to // populate QueryResult.fulfillment_messages sent to the integration or // API caller. FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"` // FulfillmentText: Optional. The text response message intended for the // end-user. It is recommended to use // `fulfillment_messages.text.text[0]` instead. When provided, // Dialogflow uses this field to populate QueryResult.fulfillment_text // sent to the integration or API caller. FulfillmentText string `json:"fulfillmentText,omitempty"` // OutputContexts: Optional. The collection of output contexts that will // overwrite currently active contexts for the session and reset their // lifespans. When provided, Dialogflow uses this field to populate // QueryResult.output_contexts sent to the integration or API caller. OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"` // Payload: Optional. This field can be used to pass custom data from // your webhook to the integration or API caller. Arbitrary JSON objects // are supported. When provided, Dialogflow uses this field to populate // QueryResult.webhook_payload sent to the integration or API caller. // This field is also used by the [Google Assistant // integration](https://cloud.google.com/dialogflow/docs/integrations/aog // ) for rich response messages. See the format definition at [Google // Assistant Dialogflow webhook // format](https://developers.google.com/assistant/actions/build/json/dia // logflow-webhook-json) Payload googleapi.RawMessage `json:"payload,omitempty"` // SessionEntityTypes: Optional. Additional session entity types to // replace or extend developer entity types with. The entity synonyms // apply to all languages and persist for the session. Setting this data // from a webhook overwrites the session entity types that have been set // using `detectIntent`, `streamingDetectIntent` or SessionEntityType // management methods. SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"` // Source: Optional. A custom field used to identify the webhook source. // Arbitrary strings are supported. When provided, Dialogflow uses this // field to populate QueryResult.webhook_source sent to the integration // or API caller. Source string `json:"source,omitempty"` // ForceSendFields is a list of field names (e.g. "FollowupEventInput") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FollowupEventInput") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2WebhookResponse: The response message for a webhook call. This response is validated by the Dialogflow server. If validation fails, an error will be returned in the QueryResult.diagnostic_info field. Setting JSON fields to an empty value with the wrong type is a common error. To avoid this error: - Use "" for empty strings - Use `{}` or `null` for empty objects - Use `[]` or `null` for empty arrays For more information, see the [Protocol Buffers Language Guide](https://developers.google.com/protocol-buffers/docs/proto3#json ).
func (*GoogleCloudDialogflowV2WebhookResponse) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2WebhookResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse ¶
type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse struct { // EntityTypes: The collection of updated or created entity types. EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"` // ForceSendFields is a list of field names (e.g. "EntityTypes") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EntityTypes") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse: The response message for EntityTypes.BatchUpdateEntityTypes.
func (*GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse ¶
type GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse struct { // Intents: The collection of updated or created intents. Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"` // ForceSendFields is a list of field names (e.g. "Intents") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Intents") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse: The response message for Intents.BatchUpdateIntents.
func (*GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1Context ¶
type GoogleCloudDialogflowV2beta1Context struct { // LifespanCount: Optional. The number of conversational query requests // after which the context expires. The default is `0`. If set to `0`, // the context expires immediately. Contexts expire automatically after // 20 minutes if there are no matching queries. LifespanCount int64 `json:"lifespanCount,omitempty"` // Name: Required. The unique identifier of the context. Supported // formats: - `projects//agent/sessions//contexts/`, - // `projects//locations//agent/sessions//contexts/`, - // `projects//agent/environments//users//sessions//contexts/`, - // `projects//locations//agent/environments//users//sessions//contexts/`, // The `Context ID` is always converted to lowercase, may only contain // characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If // `Environment ID` is not specified, we assume default 'draft' // environment. If `User ID` is not specified, we assume default '-' // user. The following context names are reserved for internal use by // Dialogflow. You should not use these contexts or create contexts with // these names: * `__system_counters__` * `*_id_dialog_context` * // `*_dialog_params_size` Name string `json:"name,omitempty"` // Parameters: Optional. The collection of parameters associated with // this context. Depending on your protocol or client library language, // this is a map, associative array, symbol table, dictionary, or JSON // object composed of a collection of (MapKey, MapValue) pairs: - MapKey // type: string - MapKey value: parameter name - MapValue type: - If // parameter's entity type is a composite entity: map - Else: string or // number, depending on parameter value type - MapValue value: - If // parameter's entity type is a composite entity: map from composite // entity property names to property values - Else: parameter value Parameters googleapi.RawMessage `json:"parameters,omitempty"` // ForceSendFields is a list of field names (e.g. "LifespanCount") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LifespanCount") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1Context: Dialogflow contexts are similar to natural language context. If a person says to you "they are orange", you need context in order to understand what "they" is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent. Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts. For more information about context, see the [Contexts guide](https://cloud.google.com/dialogflow/docs/contexts-overview).
func (*GoogleCloudDialogflowV2beta1Context) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1Context) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1EntityType ¶
type GoogleCloudDialogflowV2beta1EntityType struct { // AutoExpansionMode: Optional. Indicates whether the entity type can be // automatically expanded. // // Possible values: // "AUTO_EXPANSION_MODE_UNSPECIFIED" - Auto expansion disabled for the // entity. // "AUTO_EXPANSION_MODE_DEFAULT" - Allows an agent to recognize values // that have not been explicitly listed in the entity. AutoExpansionMode string `json:"autoExpansionMode,omitempty"` // DisplayName: Required. The name of the entity type. DisplayName string `json:"displayName,omitempty"` // EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction // during classification. EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"` // Entities: Optional. The collection of entity entries associated with // the entity type. Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"` // Kind: Required. Indicates the kind of entity type. // // Possible values: // "KIND_UNSPECIFIED" - Not specified. This value should be never // used. // "KIND_MAP" - Map entity types allow mapping of a group of synonyms // to a reference value. // "KIND_LIST" - List entity types contain a set of entries that do // not map to reference values. However, list entity types can contain // references to other entity types (with or without aliases). // "KIND_REGEXP" - Regexp entity types allow to specify regular // expressions in entries values. Kind string `json:"kind,omitempty"` // Name: The unique identifier of the entity type. Required for // EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes // methods. Supported formats: - `projects//agent/entityTypes/` - // `projects//locations//agent/entityTypes/` Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoExpansionMode") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AutoExpansionMode") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1EntityType: Each intent parameter has a type, called the entity type, which dictates exactly how data from an end-user expression is extracted. Dialogflow provides predefined system entities that can match many common types of data. For example, there are system entities for matching dates, times, colors, email addresses, and so on. You can also create your own custom entities for matching custom data. For example, you could define a vegetable entity that can match the types of vegetables available for purchase with a grocery store agent. For more information, see the [Entity guide](https://cloud.google.com/dialogflow/docs/entities-overview).
func (*GoogleCloudDialogflowV2beta1EntityType) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1EntityType) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1EntityTypeEntity ¶
type GoogleCloudDialogflowV2beta1EntityTypeEntity struct { // Synonyms: Required. A collection of value synonyms. For example, if // the entity type is *vegetable*, and `value` is *scallions*, a synonym // could be *green onions*. For `KIND_LIST` entity types: * This // collection must contain exactly one synonym equal to `value`. Synonyms []string `json:"synonyms,omitempty"` // Value: Required. The primary value associated with this entity entry. // For example, if the entity type is *vegetable*, the value could be // *scallions*. For `KIND_MAP` entity types: * A reference value to be // used in place of synonyms. For `KIND_LIST` entity types: * A string // that can contain references to other entity types (with or without // aliases). Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Synonyms") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Synonyms") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1EntityTypeEntity: An **entity entry** for an associated entity type.
func (*GoogleCloudDialogflowV2beta1EntityTypeEntity) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1EntityTypeEntity) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1EventInput ¶
type GoogleCloudDialogflowV2beta1EventInput struct { // LanguageCode: Required. The language of this query. See [Language // Support](https://cloud.google.com/dialogflow/docs/reference/language) // for a list of the currently supported language codes. Note that // queries in the same session do not necessarily need to specify the // same language. LanguageCode string `json:"languageCode,omitempty"` // Name: Required. The unique identifier of the event. Name string `json:"name,omitempty"` // Parameters: The collection of parameters associated with the event. // Depending on your protocol or client library language, this is a map, // associative array, symbol table, dictionary, or JSON object composed // of a collection of (MapKey, MapValue) pairs: - MapKey type: string - // MapKey value: parameter name - MapValue type: - If parameter's entity // type is a composite entity: map - Else: string or number, depending // on parameter value type - MapValue value: - If parameter's entity // type is a composite entity: map from composite entity property names // to property values - Else: parameter value Parameters googleapi.RawMessage `json:"parameters,omitempty"` // ForceSendFields is a list of field names (e.g. "LanguageCode") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LanguageCode") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1EventInput: Events allow for matching intents by event name instead of the natural language input. For instance, input “ can trigger a personalized welcome response. The parameter `name` may be used by the agent in the response: "Hello #welcome_event.name! What can I do for you today?".
func (*GoogleCloudDialogflowV2beta1EventInput) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1EventInput) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1ExportAgentResponse ¶
type GoogleCloudDialogflowV2beta1ExportAgentResponse struct { // AgentContent: Zip compressed raw byte content for agent. AgentContent string `json:"agentContent,omitempty"` // AgentUri: The URI to a file containing the exported agent. This field // is populated only if `agent_uri` is specified in // `ExportAgentRequest`. AgentUri string `json:"agentUri,omitempty"` // ForceSendFields is a list of field names (e.g. "AgentContent") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AgentContent") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1ExportAgentResponse: The response message for Agents.ExportAgent.
func (*GoogleCloudDialogflowV2beta1ExportAgentResponse) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1ExportAgentResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1Intent ¶
type GoogleCloudDialogflowV2beta1Intent struct { // Action: Optional. The name of the action associated with the intent. // Note: The action name must not contain whitespaces. Action string `json:"action,omitempty"` // DefaultResponsePlatforms: Optional. The list of platforms for which // the first responses will be copied from the messages in // PLATFORM_UNSPECIFIED (i.e. default platform). // // Possible values: // "PLATFORM_UNSPECIFIED" - Not specified. // "FACEBOOK" - Facebook. // "SLACK" - Slack. // "TELEGRAM" - Telegram. // "KIK" - Kik. // "SKYPE" - Skype. // "LINE" - Line. // "VIBER" - Viber. // "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook // format](https://developers.google.com/assistant/actions/build/json/dia // logflow-webhook-json) // "TELEPHONY" - Telephony Gateway. // "GOOGLE_HANGOUTS" - Google Hangouts. DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"` // DisplayName: Required. The name of this intent. DisplayName string `json:"displayName,omitempty"` // EndInteraction: Optional. Indicates that this intent ends an // interaction. Some integrations (e.g., Actions on Google or Dialogflow // phone gateway) use this information to close interaction with an end // user. Default is false. EndInteraction bool `json:"endInteraction,omitempty"` // Events: Optional. The collection of event names that trigger the // intent. If the collection of input contexts is not empty, all of the // contexts must be present in the active user session for an event to // trigger this intent. Event names are limited to 150 characters. Events []string `json:"events,omitempty"` // FollowupIntentInfo: Output only. Information about all followup // intents that have this intent as a direct or indirect parent. We // populate this field only in the output. FollowupIntentInfo []*GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"` // InputContextNames: Optional. The list of context names required for // this intent to be triggered. Formats: - // `projects//agent/sessions/-/contexts/` - // `projects//locations//agent/sessions/-/contexts/` InputContextNames []string `json:"inputContextNames,omitempty"` // IsFallback: Optional. Indicates whether this is a fallback intent. IsFallback bool `json:"isFallback,omitempty"` // Messages: Optional. The collection of rich messages corresponding to // the `Response` field in the Dialogflow console. Messages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"messages,omitempty"` // MlDisabled: Optional. Indicates whether Machine Learning is disabled // for the intent. Note: If `ml_disabled` setting is set to true, then // this intent is not taken into account during inference in `ML ONLY` // match mode. Also, auto-markup in the UI is turned off. MlDisabled bool `json:"mlDisabled,omitempty"` // MlEnabled: Optional. Indicates whether Machine Learning is enabled // for the intent. Note: If `ml_enabled` setting is set to false, then // this intent is not taken into account during inference in `ML ONLY` // match mode. Also, auto-markup in the UI is turned off. DEPRECATED! // Please use `ml_disabled` field instead. NOTE: If both `ml_enabled` // and `ml_disabled` are either not set or false, then the default value // is determined as follows: - Before April 15th, 2018 the default is: // ml_enabled = false / ml_disabled = true. - After April 15th, 2018 the // default is: ml_enabled = true / ml_disabled = false. MlEnabled bool `json:"mlEnabled,omitempty"` // Name: Optional. The unique identifier of this intent. Required for // Intents.UpdateIntent and Intents.BatchUpdateIntents methods. // Supported formats: - `projects//agent/intents/` - // `projects//locations//agent/intents/` Name string `json:"name,omitempty"` // OutputContexts: Optional. The collection of contexts that are // activated when the intent is matched. Context messages in this // collection should not set the parameters field. Setting the // `lifespan_count` to 0 will reset the context when the intent is // matched. Format: `projects//agent/sessions/-/contexts/`. OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"` // Parameters: Optional. The collection of parameters associated with // the intent. Parameters []*GoogleCloudDialogflowV2beta1IntentParameter `json:"parameters,omitempty"` // ParentFollowupIntentName: Optional. The unique identifier of the // parent intent in the chain of followup intents. You can set this // field when creating an intent, for example with CreateIntent or // BatchUpdateIntents, in order to make this intent a followup intent. // It identifies the parent followup intent. Format: // `projects//agent/intents/`. ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"` // Priority: Optional. The priority of this intent. Higher numbers // represent higher priorities. - If the supplied value is unspecified // or 0, the service translates the value to 500,000, which corresponds // to the `Normal` priority in the console. - If the supplied value is // negative, the intent is ignored in runtime detect intent requests. Priority int64 `json:"priority,omitempty"` // ResetContexts: Optional. Indicates whether to delete all contexts in // the current session when this intent is matched. ResetContexts bool `json:"resetContexts,omitempty"` // RootFollowupIntentName: Output only. The unique identifier of the // root intent in the chain of followup intents. It identifies the // correct followup intents chain for this intent. Format: // `projects//agent/intents/`. RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"` // TrainingPhrases: Optional. The collection of examples that the agent // is trained on. TrainingPhrases []*GoogleCloudDialogflowV2beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"` // WebhookState: Optional. Indicates whether webhooks are enabled for // the intent. // // Possible values: // "WEBHOOK_STATE_UNSPECIFIED" - Webhook is disabled in the agent and // in the intent. // "WEBHOOK_STATE_ENABLED" - Webhook is enabled in the agent and in // the intent. // "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING" - Webhook is enabled in // the agent and in the intent. Also, each slot filling prompt is // forwarded to the webhook. WebhookState string `json:"webhookState,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Action") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1Intent: An intent categorizes an end-user's intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the [intent guide](https://cloud.google.com/dialogflow/docs/intents-overview).
func (*GoogleCloudDialogflowV2beta1Intent) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1Intent) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo ¶
type GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo struct { // FollowupIntentName: The unique identifier of the followup intent. // Format: `projects//agent/intents/`. FollowupIntentName string `json:"followupIntentName,omitempty"` // ParentFollowupIntentName: The unique identifier of the followup // intent's parent. Format: `projects//agent/intents/`. ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"` // ForceSendFields is a list of field names (e.g. "FollowupIntentName") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FollowupIntentName") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo: Represents a single followup intent in the chain.
func (*GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessage ¶
type GoogleCloudDialogflowV2beta1IntentMessage struct { // BasicCard: Displays a basic card for Actions on Google. BasicCard *GoogleCloudDialogflowV2beta1IntentMessageBasicCard `json:"basicCard,omitempty"` // BrowseCarouselCard: Browse carousel card for Actions on Google. BrowseCarouselCard *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"` // Card: Displays a card. Card *GoogleCloudDialogflowV2beta1IntentMessageCard `json:"card,omitempty"` // CarouselSelect: Displays a carousel card for Actions on Google. CarouselSelect *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect `json:"carouselSelect,omitempty"` // Image: Displays an image. Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"` // LinkOutSuggestion: Displays a link out suggestion chip for Actions on // Google. LinkOutSuggestion *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"` // ListSelect: Displays a list card for Actions on Google. ListSelect *GoogleCloudDialogflowV2beta1IntentMessageListSelect `json:"listSelect,omitempty"` // MediaContent: The media content card for Actions on Google. MediaContent *GoogleCloudDialogflowV2beta1IntentMessageMediaContent `json:"mediaContent,omitempty"` // Payload: A custom platform-specific response. Payload googleapi.RawMessage `json:"payload,omitempty"` // Platform: Optional. The platform that this message is intended for. // // Possible values: // "PLATFORM_UNSPECIFIED" - Not specified. // "FACEBOOK" - Facebook. // "SLACK" - Slack. // "TELEGRAM" - Telegram. // "KIK" - Kik. // "SKYPE" - Skype. // "LINE" - Line. // "VIBER" - Viber. // "ACTIONS_ON_GOOGLE" - Google Assistant See [Dialogflow webhook // format](https://developers.google.com/assistant/actions/build/json/dia // logflow-webhook-json) // "TELEPHONY" - Telephony Gateway. // "GOOGLE_HANGOUTS" - Google Hangouts. Platform string `json:"platform,omitempty"` // QuickReplies: Displays quick replies. QuickReplies *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies `json:"quickReplies,omitempty"` // RbmCarouselRichCard: Rich Business Messaging (RBM) carousel rich card // response. RbmCarouselRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard `json:"rbmCarouselRichCard,omitempty"` // RbmStandaloneRichCard: Standalone Rich Business Messaging (RBM) rich // card response. RbmStandaloneRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard `json:"rbmStandaloneRichCard,omitempty"` // RbmText: Rich Business Messaging (RBM) text response. RBM allows // businesses to send enriched and branded versions of SMS. See // https://jibe.google.com/business-messaging. RbmText *GoogleCloudDialogflowV2beta1IntentMessageRbmText `json:"rbmText,omitempty"` // SimpleResponses: Returns a voice or text-only response for Actions on // Google. SimpleResponses *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses `json:"simpleResponses,omitempty"` // Suggestions: Displays suggestion chips for Actions on Google. Suggestions *GoogleCloudDialogflowV2beta1IntentMessageSuggestions `json:"suggestions,omitempty"` // TableCard: Table card for Actions on Google. TableCard *GoogleCloudDialogflowV2beta1IntentMessageTableCard `json:"tableCard,omitempty"` // TelephonyPlayAudio: Plays audio from a file in Telephony Gateway. TelephonyPlayAudio *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio `json:"telephonyPlayAudio,omitempty"` // TelephonySynthesizeSpeech: Synthesizes speech in Telephony Gateway. TelephonySynthesizeSpeech *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech `json:"telephonySynthesizeSpeech,omitempty"` // TelephonyTransferCall: Transfers the call in Telephony Gateway. TelephonyTransferCall *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"` // Text: Returns a text response. Text *GoogleCloudDialogflowV2beta1IntentMessageText `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "BasicCard") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BasicCard") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessage: Corresponds to the `Response` field in the Dialogflow console.
func (*GoogleCloudDialogflowV2beta1IntentMessage) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessage) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageBasicCard ¶
type GoogleCloudDialogflowV2beta1IntentMessageBasicCard struct { // Buttons: Optional. The collection of card buttons. Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"` // FormattedText: Required, unless image is present. The body text of // the card. FormattedText string `json:"formattedText,omitempty"` // Image: Optional. The image for the card. Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"` // Subtitle: Optional. The subtitle of the card. Subtitle string `json:"subtitle,omitempty"` // Title: Optional. The title of the card. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Buttons") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Buttons") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageBasicCard: The basic card message. Useful for displaying information.
func (*GoogleCloudDialogflowV2beta1IntentMessageBasicCard) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCard) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton ¶
type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton struct { // OpenUriAction: Required. Action to take when a user taps on the // button. OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"` // Title: Required. The title of the button. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "OpenUriAction") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "OpenUriAction") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton: The button object that appears at the bottom of a card.
func (*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction ¶
type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction struct { // Uri: Required. The HTTP or HTTPS scheme URI. Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "Uri") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Uri") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction:
Opens the given URI.
func (*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard ¶ added in v0.11.0
type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard struct { // ImageDisplayOptions: Optional. Settings for displaying the image. // Applies to every image in items. // // Possible values: // "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" - Fill the gaps between the // image and the image container with gray bars. // "GRAY" - Fill the gaps between the image and the image container // with gray bars. // "WHITE" - Fill the gaps between the image and the image container // with white bars. // "CROPPED" - Image is scaled such that the image width and height // match or exceed the container dimensions. This may crop the top and // bottom of the image if the scaled image height is greater than the // container height, or crop the left and right of the image if the // scaled image width is greater than the container width. This is // similar to "Zoom Mode" on a widescreen TV when playing a 4:3 video. // "BLURRED_BACKGROUND" - Pad the gaps between image and image frame // with a blurred copy of the same image. ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"` // Items: Required. List of items in the Browse Carousel Card. Minimum // of two items, maximum of ten. Items []*GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"` // ForceSendFields is a list of field names (e.g. "ImageDisplayOptions") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ImageDisplayOptions") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard: Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel
func (*GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard) MarshalJSON ¶ added in v0.11.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem ¶ added in v0.11.0
type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct { // Description: Optional. Description of the carousel item. Maximum of // four lines of text. Description string `json:"description,omitempty"` // Carousel Card. Maximum of one line of text. Footer string `json:"footer,omitempty"` // Image: Optional. Hero image for the carousel item. Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"` // OpenUriAction: Required. Action to present to the user. OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"` // Title: Required. Title of the carousel item. Maximum of two lines of // text. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarou selCardItem: Browsing carousel tile
func (*GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON ¶ added in v0.11.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction ¶ added in v0.11.0
type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct { // Url: Required. URL Url string `json:"url,omitempty"` // UrlTypeHint: Optional. Specifies the type of viewer that is used when // opening the URL. Defaults to opening via web browser. // // Possible values: // "URL_TYPE_HINT_UNSPECIFIED" - Unspecified // "AMP_ACTION" - Url would be an amp action // "AMP_CONTENT" - URL that points directly to AMP content, or to a // canonical URL which refers to AMP content via . UrlTypeHint string `json:"urlTypeHint,omitempty"` // ForceSendFields is a list of field names (e.g. "Url") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Url") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarou selCardItemOpenUrlAction: Actions on Google action to open a given url.
func (*GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON ¶ added in v0.11.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageCard ¶
type GoogleCloudDialogflowV2beta1IntentMessageCard struct { // Buttons: Optional. The collection of card buttons. Buttons []*GoogleCloudDialogflowV2beta1IntentMessageCardButton `json:"buttons,omitempty"` // ImageUri: Optional. The public URI to an image file for the card. ImageUri string `json:"imageUri,omitempty"` // Subtitle: Optional. The subtitle of the card. Subtitle string `json:"subtitle,omitempty"` // Title: Optional. The title of the card. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Buttons") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Buttons") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageCard: The card response message.
func (*GoogleCloudDialogflowV2beta1IntentMessageCard) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageCard) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageCardButton ¶
type GoogleCloudDialogflowV2beta1IntentMessageCardButton struct { // Postback: Optional. The text to send back to the Dialogflow API or a // URI to open. Postback string `json:"postback,omitempty"` // Text: Optional. The text to show on the button. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Postback") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Postback") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageCardButton: Optional. Contains information about a button.
func (*GoogleCloudDialogflowV2beta1IntentMessageCardButton) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageCardButton) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect ¶
type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect struct { // Items: Required. Carousel items. Items []*GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem `json:"items,omitempty"` // ForceSendFields is a list of field names (e.g. "Items") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Items") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect: The card for presenting a carousel of options to select from.
func (*GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem ¶
type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem struct { // Description: Optional. The body text of the card. Description string `json:"description,omitempty"` // Image: Optional. The image to display. Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"` // Info: Required. Additional info about the option item. Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"` // Title: Required. Title of the carousel item. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem: An item in the carousel.
func (*GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageColumnProperties ¶ added in v0.11.0
type GoogleCloudDialogflowV2beta1IntentMessageColumnProperties struct { // Header: Required. Column heading. Header string `json:"header,omitempty"` // HorizontalAlignment: Optional. Defines text alignment for all cells // in this column. // // Possible values: // "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Text is aligned to the leading // edge of the column. // "LEADING" - Text is aligned to the leading edge of the column. // "CENTER" - Text is centered in the column. // "TRAILING" - Text is aligned to the trailing edge of the column. HorizontalAlignment string `json:"horizontalAlignment,omitempty"` // ForceSendFields is a list of field names (e.g. "Header") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Header") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageColumnProperties: Column properties for TableCard.
func (*GoogleCloudDialogflowV2beta1IntentMessageColumnProperties) MarshalJSON ¶ added in v0.11.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageColumnProperties) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageImage ¶
type GoogleCloudDialogflowV2beta1IntentMessageImage struct { // AccessibilityText: A text description of the image to be used for // accessibility, e.g., screen readers. Required if image_uri is set for // CarouselSelect. AccessibilityText string `json:"accessibilityText,omitempty"` // ImageUri: Optional. The public URI to an image file. ImageUri string `json:"imageUri,omitempty"` // ForceSendFields is a list of field names (e.g. "AccessibilityText") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccessibilityText") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageImage: The image response message.
func (*GoogleCloudDialogflowV2beta1IntentMessageImage) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageImage) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion ¶
type GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion struct { // DestinationName: Required. The name of the app or site this chip is // linking to. DestinationName string `json:"destinationName,omitempty"` // Uri: Required. The URI of the app or site to open when the user taps // the suggestion chip. Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "DestinationName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DestinationName") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion: The suggestion chip message that allows the user to jump out to the app or website associated with this agent.
func (*GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageListSelect ¶
type GoogleCloudDialogflowV2beta1IntentMessageListSelect struct { // Items: Required. List items. Items []*GoogleCloudDialogflowV2beta1IntentMessageListSelectItem `json:"items,omitempty"` // Subtitle: Optional. Subtitle of the list. Subtitle string `json:"subtitle,omitempty"` // Title: Optional. The overall title of the list. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Items") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Items") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageListSelect: The card for presenting a list of options to select from.
func (*GoogleCloudDialogflowV2beta1IntentMessageListSelect) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelect) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageListSelectItem ¶
type GoogleCloudDialogflowV2beta1IntentMessageListSelectItem struct { // Description: Optional. The main text describing the item. Description string `json:"description,omitempty"` // Image: Optional. The image to display. Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"` // Info: Required. Additional information about this option. Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"` // Title: Required. The title of the list item. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageListSelectItem: An item in the list.
func (*GoogleCloudDialogflowV2beta1IntentMessageListSelectItem) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelectItem) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageMediaContent ¶ added in v0.11.0
type GoogleCloudDialogflowV2beta1IntentMessageMediaContent struct { // MediaObjects: Required. List of media objects. MediaObjects []*GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"` // MediaType: Optional. What type of media is the content (ie "audio"). // // Possible values: // "RESPONSE_MEDIA_TYPE_UNSPECIFIED" - Unspecified. // "AUDIO" - Response media type is audio. MediaType string `json:"mediaType,omitempty"` // ForceSendFields is a list of field names (e.g. "MediaObjects") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MediaObjects") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageMediaContent: The media content card for Actions on Google.
func (*GoogleCloudDialogflowV2beta1IntentMessageMediaContent) MarshalJSON ¶ added in v0.11.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContent) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject ¶ added in v0.11.0
type GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject struct { // ContentUrl: Required. Url where the media is stored. ContentUrl string `json:"contentUrl,omitempty"` // Description: Optional. Description of media card. Description string `json:"description,omitempty"` // Icon: Optional. Icon to display above media content. Icon *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"icon,omitempty"` // LargeImage: Optional. Image to display above media content. LargeImage *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"largeImage,omitempty"` // Name: Required. Name of media card. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "ContentUrl") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ContentUrl") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObje ct: Response media object for media content card.
func (*GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject) MarshalJSON ¶ added in v0.11.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageQuickReplies ¶
type GoogleCloudDialogflowV2beta1IntentMessageQuickReplies struct { // QuickReplies: Optional. The collection of quick replies. QuickReplies []string `json:"quickReplies,omitempty"` // Title: Optional. The title of the collection of quick replies. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "QuickReplies") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "QuickReplies") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageQuickReplies: The quick replies response message.
func (*GoogleCloudDialogflowV2beta1IntentMessageQuickReplies) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent ¶ added in v0.8.0
type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent struct { // Description: Optional. Description of the card (at most 2000 bytes). // At least one of the title, description or media must be set. Description string `json:"description,omitempty"` // Media: Optional. However at least one of the title, description or // media must be set. Media (image, GIF or a video) to include in the // card. Media *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia `json:"media,omitempty"` // Suggestions: Optional. List of suggestions to include in the card. Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"suggestions,omitempty"` // Title: Optional. Title of the card (at most 200 bytes). At least one // of the title, description or media must be set. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent: Rich Business Messaging (RBM) Card content
func (*GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent) MarshalJSON ¶ added in v0.8.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia ¶ added in v0.8.0
type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia struct { // FileUri: Required. Publicly reachable URI of the file. The RBM // platform determines the MIME type of the file from the content-type // field in the HTTP headers when the platform fetches the file. The // content-type field must be present and accurate in the HTTP response // from the URL. FileUri string `json:"fileUri,omitempty"` // Height: Required for cards with vertical orientation. The height of // the media within a rich card with a vertical layout. For a standalone // card with horizontal layout, height is not customizable, and this // field is ignored. // // Possible values: // "HEIGHT_UNSPECIFIED" - Not specified. // "SHORT" - 112 DP. // "MEDIUM" - 168 DP. // "TALL" - 264 DP. Not available for rich card carousels when the // card width is set to small. Height string `json:"height,omitempty"` // ThumbnailUri: Optional. Publicly reachable URI of the thumbnail.If // you don't provide a thumbnail URI, the RBM platform displays a blank // placeholder thumbnail until the user's device downloads the file. // Depending on the user's setting, the file may not download // automatically and may require the user to tap a download button. ThumbnailUri string `json:"thumbnailUri,omitempty"` // ForceSendFields is a list of field names (e.g. "FileUri") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FileUri") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia: Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported: Image Types * image/jpeg * image/jpg' * image/gif * image/png Video Types * video/h263 * video/m4v * video/mp4 * video/mpeg * video/mpeg4 * video/webm
func (*GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia) MarshalJSON ¶ added in v0.8.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard ¶ added in v0.8.0
type GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard struct { // CardContents: Required. The cards in the carousel. A carousel must // have at least 2 cards and at most 10. CardContents []*GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContents,omitempty"` // CardWidth: Required. The width of the cards in the carousel. // // Possible values: // "CARD_WIDTH_UNSPECIFIED" - Not specified. // "SMALL" - 120 DP. Note that tall media cannot be used. // "MEDIUM" - 232 DP. CardWidth string `json:"cardWidth,omitempty"` // ForceSendFields is a list of field names (e.g. "CardContents") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CardContents") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard: Carousel Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. If you want to show a single card with more control over the layout, please use RbmStandaloneCard instead.
func (*GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard) MarshalJSON ¶ added in v0.8.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard ¶ added in v0.8.0
type GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard struct { // CardContent: Required. Card content. CardContent *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContent,omitempty"` // CardOrientation: Required. Orientation of the card. // // Possible values: // "CARD_ORIENTATION_UNSPECIFIED" - Not specified. // "HORIZONTAL" - Horizontal layout. // "VERTICAL" - Vertical layout. CardOrientation string `json:"cardOrientation,omitempty"` // ThumbnailImageAlignment: Required if orientation is horizontal. Image // preview alignment for standalone cards with horizontal layout. // // Possible values: // "THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED" - Not specified. // "LEFT" - Thumbnail preview is left-aligned. // "RIGHT" - Thumbnail preview is right-aligned. ThumbnailImageAlignment string `json:"thumbnailImageAlignment,omitempty"` // ForceSendFields is a list of field names (e.g. "CardContent") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CardContent") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard: Standalone Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout.
func (*GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard) MarshalJSON ¶ added in v0.8.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction ¶ added in v0.8.0
type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction struct { // Dial: Suggested client side action: Dial a phone number Dial *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial `json:"dial,omitempty"` // OpenUrl: Suggested client side action: Open a URI on device OpenUrl *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri `json:"openUrl,omitempty"` // PostbackData: Opaque payload that the Dialogflow receives in a user // event when the user taps the suggested action. This data will be also // forwarded to webhook to allow performing custom business logic. PostbackData string `json:"postbackData,omitempty"` ShareLocation *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation `json:"shareLocation,omitempty"` // Text: Text to display alongside the action. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Dial") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Dial") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction: Rich Business Messaging (RBM) suggested client-side action that the user can choose from the card.
func (*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction) MarshalJSON ¶ added in v0.8.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial ¶ added in v0.8.0
type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial struct { // PhoneNumber: Required. The phone number to fill in the default dialer // app. This field should be in // [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a // correctly formatted phone number: +15556767888. PhoneNumber string `json:"phoneNumber,omitempty"` // ForceSendFields is a list of field names (e.g. "PhoneNumber") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PhoneNumber") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggeste dActionDial: Opens the user's default dialer app with the specified phone number but does not dial automatically.
func (*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial) MarshalJSON ¶ added in v0.8.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri ¶ added in v0.8.0
type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri struct { // Uri: Required. The uri to open on the user device Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "Uri") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Uri") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggeste dActionOpenUri: Opens the user's default web browser app to the specified uri If the user has an app installed that is registered as the default handler for the URL, then this app will be opened instead, and its icon will be used in the suggested action UI.
func (*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri) MarshalJSON ¶ added in v0.8.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation ¶ added in v0.8.0
type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation struct { }
GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggeste dActionShareLocation: Opens the device's location chooser so the user can pick a location to send back to the agent.
type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply ¶ added in v0.8.0
type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply struct { // PostbackData: Opaque payload that the Dialogflow receives in a user // event when the user taps the suggested reply. This data will be also // forwarded to webhook to allow performing custom business logic. PostbackData string `json:"postbackData,omitempty"` // Text: Suggested reply text. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "PostbackData") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PostbackData") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply: Rich Business Messaging (RBM) suggested reply that the user can click instead of typing in their own response.
func (*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply) MarshalJSON ¶ added in v0.8.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion ¶ added in v0.8.0
type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion struct { // Action: Predefined client side actions that user can choose Action *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction `json:"action,omitempty"` // Reply: Predefined replies for user to select instead of typing Reply *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply `json:"reply,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Action") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion: Rich Business Messaging (RBM) suggestion. Suggestions allow user to easily select/click a predefined response or perform an action (like opening a web uri).
func (*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion) MarshalJSON ¶ added in v0.8.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageRbmText ¶ added in v0.8.0
type GoogleCloudDialogflowV2beta1IntentMessageRbmText struct { // RbmSuggestion: Optional. One or more suggestions to show to the user. RbmSuggestion []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"rbmSuggestion,omitempty"` // Text: Required. Text sent and displayed to the user. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "RbmSuggestion") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "RbmSuggestion") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageRbmText: Rich Business Messaging (RBM) text response with suggestions.
func (*GoogleCloudDialogflowV2beta1IntentMessageRbmText) MarshalJSON ¶ added in v0.8.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmText) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo ¶
type GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo struct { // Key: Required. A unique key that will be sent back to the agent if // this response is given. Key string `json:"key,omitempty"` // Synonyms: Optional. A list of synonyms that can also be used to // trigger this item in dialog. Synonyms []string `json:"synonyms,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Key") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo: Additional info about the select item for when it is triggered in a dialog.
func (*GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse ¶
type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse struct { // DisplayText: Optional. The text to display. DisplayText string `json:"displayText,omitempty"` // Ssml: One of text_to_speech or ssml must be provided. Structured // spoken response to the user in the SSML format. Mutually exclusive // with text_to_speech. Ssml string `json:"ssml,omitempty"` // TextToSpeech: One of text_to_speech or ssml must be provided. The // plain text of the speech output. Mutually exclusive with ssml. TextToSpeech string `json:"textToSpeech,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayText") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayText") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse: The simple response message containing speech or text.
func (*GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses ¶
type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses struct { // SimpleResponses: Required. The list of simple responses. SimpleResponses []*GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse `json:"simpleResponses,omitempty"` // ForceSendFields is a list of field names (e.g. "SimpleResponses") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "SimpleResponses") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses: The collection of simple response candidates. This message in `QueryResult.fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`.
func (*GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageSuggestion ¶
type GoogleCloudDialogflowV2beta1IntentMessageSuggestion struct { // Title: Required. The text shown the in the suggestion chip. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Title") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Title") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageSuggestion: The suggestion chip message that the user can tap to quickly post a reply to the conversation.
func (*GoogleCloudDialogflowV2beta1IntentMessageSuggestion) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestion) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageSuggestions ¶
type GoogleCloudDialogflowV2beta1IntentMessageSuggestions struct { // Suggestions: Required. The list of suggested replies. Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageSuggestion `json:"suggestions,omitempty"` // ForceSendFields is a list of field names (e.g. "Suggestions") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Suggestions") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageSuggestions: The collection of suggestions.
func (*GoogleCloudDialogflowV2beta1IntentMessageSuggestions) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestions) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageTableCard ¶ added in v0.11.0
type GoogleCloudDialogflowV2beta1IntentMessageTableCard struct { // Buttons: Optional. List of buttons for the card. Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"` // ColumnProperties: Optional. Display properties for the columns in // this table. ColumnProperties []*GoogleCloudDialogflowV2beta1IntentMessageColumnProperties `json:"columnProperties,omitempty"` // Image: Optional. Image which should be displayed on the card. Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"` // Rows: Optional. Rows in this table of data. Rows []*GoogleCloudDialogflowV2beta1IntentMessageTableCardRow `json:"rows,omitempty"` // Subtitle: Optional. Subtitle to the title. Subtitle string `json:"subtitle,omitempty"` // Title: Required. Title of the card. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Buttons") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Buttons") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageTableCard: Table card for Actions on Google.
func (*GoogleCloudDialogflowV2beta1IntentMessageTableCard) MarshalJSON ¶ added in v0.11.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCard) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageTableCardCell ¶ added in v0.11.0
type GoogleCloudDialogflowV2beta1IntentMessageTableCardCell struct { // Text: Required. Text in this cell. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Text") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Text") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageTableCardCell: Cell of TableCardRow.
func (*GoogleCloudDialogflowV2beta1IntentMessageTableCardCell) MarshalJSON ¶ added in v0.11.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardCell) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageTableCardRow ¶ added in v0.11.0
type GoogleCloudDialogflowV2beta1IntentMessageTableCardRow struct { // Cells: Optional. List of cells that make up this row. Cells []*GoogleCloudDialogflowV2beta1IntentMessageTableCardCell `json:"cells,omitempty"` // DividerAfter: Optional. Whether to add a visual divider after this // row. DividerAfter bool `json:"dividerAfter,omitempty"` // ForceSendFields is a list of field names (e.g. "Cells") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Cells") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageTableCardRow: Row of TableCard.
func (*GoogleCloudDialogflowV2beta1IntentMessageTableCardRow) MarshalJSON ¶ added in v0.11.0
func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardRow) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio ¶
type GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio struct { // AudioUri: Required. URI to a Google Cloud Storage object containing // the audio to play, e.g., "gs://bucket/object". The object must // contain a single channel (mono) of linear PCM audio (2 bytes / // sample) at 8kHz. This object must be readable by the // `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` service account // where is the number of the Telephony Gateway project (usually the // same as the Dialogflow agent project). If the Google Cloud Storage // bucket is in the Telephony Gateway project, this permission is added // by default when enabling the Dialogflow V2 API. For audio from other // sources, consider using the `TelephonySynthesizeSpeech` message with // SSML. AudioUri string `json:"audioUri,omitempty"` // ForceSendFields is a list of field names (e.g. "AudioUri") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AudioUri") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio: Plays audio from a file in Telephony Gateway.
func (*GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech ¶
type GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech struct { // Ssml: The SSML to be synthesized. For more information, see // [SSML](https://developers.google.com/actions/reference/ssml). Ssml string `json:"ssml,omitempty"` // Text: The raw text to be synthesized. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Ssml") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Ssml") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech: Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from `DetectIntentResponse.output_audio_config` which can either be set at request-level or can come from the agent-level synthesizer config.
func (*GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall ¶
type GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall struct { // PhoneNumber: Required. The phone number to transfer the call to in // [E.164 format](https://en.wikipedia.org/wiki/E.164). We currently // only allow transferring to US numbers (+1xxxyyyzzzz). PhoneNumber string `json:"phoneNumber,omitempty"` // ForceSendFields is a list of field names (e.g. "PhoneNumber") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PhoneNumber") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall: Transfers the call in Telephony Gateway.
func (*GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentMessageText ¶
type GoogleCloudDialogflowV2beta1IntentMessageText struct { // Text: Optional. The collection of the agent's responses. Text []string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Text") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Text") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentMessageText: The text response message.
func (*GoogleCloudDialogflowV2beta1IntentMessageText) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentMessageText) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentParameter ¶
type GoogleCloudDialogflowV2beta1IntentParameter struct { // DefaultValue: Optional. The default value to use when the `value` // yields an empty result. Default values can be extracted from contexts // by using the following syntax: `#context_name.parameter_name`. DefaultValue string `json:"defaultValue,omitempty"` // DisplayName: Required. The name of the parameter. DisplayName string `json:"displayName,omitempty"` // EntityTypeDisplayName: Optional. The name of the entity type, // prefixed with `@`, that describes values of the parameter. If the // parameter is required, this must be provided. EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"` // IsList: Optional. Indicates whether the parameter represents a list // of values. IsList bool `json:"isList,omitempty"` // Mandatory: Optional. Indicates whether the parameter is required. // That is, whether the intent cannot be completed without collecting // the parameter value. Mandatory bool `json:"mandatory,omitempty"` // Name: The unique identifier of this parameter. Name string `json:"name,omitempty"` // Prompts: Optional. The collection of prompts that the agent can // present to the user in order to collect a value for the parameter. Prompts []string `json:"prompts,omitempty"` // Value: Optional. The definition of the parameter value. It can be: - // a constant string, - a parameter value defined as `$parameter_name`, // - an original parameter value defined as `$parameter_name.original`, // - a parameter value from some context defined as // `#context_name.parameter_name`. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "DefaultValue") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DefaultValue") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentParameter: Represents intent parameters.
func (*GoogleCloudDialogflowV2beta1IntentParameter) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentParameter) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentTrainingPhrase ¶
type GoogleCloudDialogflowV2beta1IntentTrainingPhrase struct { // Name: Output only. The unique identifier of this training phrase. Name string `json:"name,omitempty"` // Parts: Required. The ordered list of training phrase parts. The parts // are concatenated in order to form the training phrase. Note: The API // does not automatically annotate training phrases like the Dialogflow // Console does. Note: Do not forget to include whitespace at part // boundaries, so the training phrase is well formatted when the parts // are concatenated. If the training phrase does not need to be // annotated with parameters, you just need a single part with only the // Part.text field set. If you want to annotate the training phrase, you // must create multiple parts, where the fields of each part are // populated in one of two ways: - `Part.text` is set to a part of the // phrase that has no parameters. - `Part.text` is set to a part of the // phrase that you want to annotate, and the `entity_type`, `alias`, and // `user_defined` fields are all set. Parts []*GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart `json:"parts,omitempty"` // TimesAddedCount: Optional. Indicates how many times this example was // added to the intent. Each time a developer adds an existing sample by // editing an intent or training, this counter is increased. TimesAddedCount int64 `json:"timesAddedCount,omitempty"` // Type: Required. The type of the training phrase. // // Possible values: // "TYPE_UNSPECIFIED" - Not specified. This value should never be // used. // "EXAMPLE" - Examples do not contain @-prefixed entity type names, // but example parts can be annotated with entity types. // "TEMPLATE" - Templates are not annotated with entity types, but // they can contain @-prefixed entity type names as substrings. Template // mode has been deprecated. Example mode is the only supported way to // create new training phrases. If you have existing training phrases // that you've created in template mode, those will continue to work. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Name") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentTrainingPhrase: Represents an example that the agent is trained on.
func (*GoogleCloudDialogflowV2beta1IntentTrainingPhrase) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart ¶
type GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart struct { // Alias: Optional. The parameter name for the value extracted from the // annotated part of the example. This field is required for annotated // parts of the training phrase. Alias string `json:"alias,omitempty"` // EntityType: Optional. The entity type name prefixed with `@`. This // field is required for annotated parts of the training phrase. EntityType string `json:"entityType,omitempty"` // Text: Required. The text for this part. Text string `json:"text,omitempty"` // UserDefined: Optional. Indicates whether the text was manually // annotated. This field is set to true when the Dialogflow Console is // used to manually annotate the part. When creating an annotated part // with the API, you must set this to true. UserDefined bool `json:"userDefined,omitempty"` // ForceSendFields is a list of field names (e.g. "Alias") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Alias") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart: Represents a part of a training phrase.
func (*GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1KnowledgeAnswers ¶
type GoogleCloudDialogflowV2beta1KnowledgeAnswers struct { // Answers: A list of answers from Knowledge Connector. Answers []*GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer `json:"answers,omitempty"` // ForceSendFields is a list of field names (e.g. "Answers") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Answers") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1KnowledgeAnswers: Represents the result of querying a Knowledge base.
func (*GoogleCloudDialogflowV2beta1KnowledgeAnswers) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswers) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer ¶
type GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer struct { // Answer: The piece of text from the `source` knowledge base document // that answers this conversational query. Answer string `json:"answer,omitempty"` // FaqQuestion: The corresponding FAQ question if the answer was // extracted from a FAQ Document, empty otherwise. FaqQuestion string `json:"faqQuestion,omitempty"` // MatchConfidence: The system's confidence score that this Knowledge // answer is a good match for this conversational query. The range is // from 0.0 (completely uncertain) to 1.0 (completely certain). Note: // The confidence score is likely to vary somewhat (possibly even for // identical requests), as the underlying model is under constant // improvement. It may be deprecated in the future. We recommend using // `match_confidence_level` which should be generally more stable. MatchConfidence float64 `json:"matchConfidence,omitempty"` // MatchConfidenceLevel: The system's confidence level that this // knowledge answer is a good match for this conversational query. NOTE: // The confidence level for a given “ pair may change without notice, // as it depends on models that are constantly being improved. However, // it will change less frequently than the confidence score below, and // should be preferred for referencing the quality of an answer. // // Possible values: // "MATCH_CONFIDENCE_LEVEL_UNSPECIFIED" - Not specified. // "LOW" - Indicates that the confidence is low. // "MEDIUM" - Indicates our confidence is medium. // "HIGH" - Indicates our confidence is high. MatchConfidenceLevel string `json:"matchConfidenceLevel,omitempty"` // Source: Indicates which Knowledge Document this answer was extracted // from. Format: `projects//knowledgeBases//documents/`. Source string `json:"source,omitempty"` // ForceSendFields is a list of field names (e.g. "Answer") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Answer") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer: An answer from Knowledge Connector.
func (*GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) MarshalJSON() ([]byte, error)
func (*GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) UnmarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) UnmarshalJSON(data []byte) error
type GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata ¶
type GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata struct { // State: Required. Output only. The current state of this operation. // // Possible values: // "STATE_UNSPECIFIED" - State unspecified. // "PENDING" - The operation has been created. // "RUNNING" - The operation is currently running. // "DONE" - The operation is done, either cancelled or completed. State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "State") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "State") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata: Metadata in google::longrunning::Operation for Knowledge operations.
func (*GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest ¶
type GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest struct { // Payload: Optional. This field is set to the value of the // `QueryParameters.payload` field passed in the request. Some // integrations that query a Dialogflow agent may provide additional // information in the payload. In particular, for the Dialogflow Phone // Gateway integration, this field has the form: { "telephony": { // "caller_id": "+18558363987" } } Note: The caller ID field // (`caller_id`) will be redacted for Trial Edition agents and populated // with the caller ID in [E.164 // format](https://en.wikipedia.org/wiki/E.164) for Essentials Edition // agents. Payload googleapi.RawMessage `json:"payload,omitempty"` // Source: The source of this request, e.g., `google`, `facebook`, // `slack`. It is set by Dialogflow-owned servers. Source string `json:"source,omitempty"` // Version: Optional. The version of the protocol used for this request. // This field is AoG-specific. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Payload") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Payload") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest: Represents the contents of the original request that was passed to the `[Streaming]DetectIntent` call.
func (*GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1QueryResult ¶
type GoogleCloudDialogflowV2beta1QueryResult struct { // Action: The action name from the matched intent. Action string `json:"action,omitempty"` // AllRequiredParamsPresent: This field is set to: - `false` if the // matched intent has required parameters and not all of the required // parameter values have been collected. - `true` if all required // parameter values have been collected, or if the matched intent // doesn't contain any required parameters. AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"` // DiagnosticInfo: Free-form diagnostic information for the associated // detect intent request. The fields of this data can change without // notice, so you should not write code that depends on its structure. // The data may contain: - webhook call latency - webhook errors DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"` // FulfillmentMessages: The collection of rich messages to present to // the user. FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"` // FulfillmentText: The text to be pronounced to the user or shown on // the screen. Note: This is a legacy field, `fulfillment_messages` // should be preferred. FulfillmentText string `json:"fulfillmentText,omitempty"` // Intent: The intent that matched the conversational query. Some, not // all fields are filled in this message, including but not limited to: // `name`, `display_name`, `end_interaction` and `is_fallback`. Intent *GoogleCloudDialogflowV2beta1Intent `json:"intent,omitempty"` // IntentDetectionConfidence: The intent detection confidence. Values // range from 0.0 (completely uncertain) to 1.0 (completely certain). // This value is for informational purpose only and is only used to help // match the best intent within the classification threshold. This value // may change for the same end-user expression at any time due to a // model retraining or change in implementation. If there are `multiple // knowledge_answers` messages, this value is set to the greatest // `knowledgeAnswers.match_confidence` value in the list. IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"` // KnowledgeAnswers: The result from Knowledge Connector (if any), // ordered by decreasing `KnowledgeAnswers.match_confidence`. KnowledgeAnswers *GoogleCloudDialogflowV2beta1KnowledgeAnswers `json:"knowledgeAnswers,omitempty"` // LanguageCode: The language that was triggered during intent // detection. See [Language // Support](https://cloud.google.com/dialogflow/docs/reference/language) // for a list of the currently supported language codes. LanguageCode string `json:"languageCode,omitempty"` // OutputContexts: The collection of output contexts. If applicable, // `output_contexts.parameters` contains entries with name `.original` // containing the original parameter values before the query. OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"` // Parameters: The collection of extracted parameters. Depending on your // protocol or client library language, this is a map, associative // array, symbol table, dictionary, or JSON object composed of a // collection of (MapKey, MapValue) pairs: - MapKey type: string - // MapKey value: parameter name - MapValue type: - If parameter's entity // type is a composite entity: map - Else: string or number, depending // on parameter value type - MapValue value: - If parameter's entity // type is a composite entity: map from composite entity property names // to property values - Else: parameter value Parameters googleapi.RawMessage `json:"parameters,omitempty"` // QueryText: The original conversational query text: - If natural // language text was provided as input, `query_text` contains a copy of // the input. - If natural language speech audio was provided as input, // `query_text` contains the speech recognition result. If speech // recognizer produced multiple alternatives, a particular one is // picked. - If automatic spell correction is enabled, `query_text` will // contain the corrected user input. QueryText string `json:"queryText,omitempty"` // SentimentAnalysisResult: The sentiment analysis result, which depends // on the `sentiment_analysis_request_config` specified in the request. SentimentAnalysisResult *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"` // SpeechRecognitionConfidence: The Speech recognition confidence // between 0.0 and 1.0. A higher number indicates an estimated greater // likelihood that the recognized words are correct. The default of 0.0 // is a sentinel value indicating that confidence was not set. This // field is not guaranteed to be accurate or set. In particular this // field isn't set for StreamingDetectIntent since the streaming // endpoint has separate confidence estimates per portion of the audio // in StreamingRecognitionResult. SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"` // WebhookPayload: If the query was fulfilled by a webhook call, this // field is set to the value of the `payload` field returned in the // webhook response. WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"` // WebhookSource: If the query was fulfilled by a webhook call, this // field is set to the value of the `source` field returned in the // webhook response. WebhookSource string `json:"webhookSource,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Action") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1QueryResult: Represents the result of conversational query or event processing.
func (*GoogleCloudDialogflowV2beta1QueryResult) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1QueryResult) MarshalJSON() ([]byte, error)
func (*GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON(data []byte) error
type GoogleCloudDialogflowV2beta1Sentiment ¶
type GoogleCloudDialogflowV2beta1Sentiment struct { // Magnitude: A non-negative number in the [0, +inf) range, which // represents the absolute magnitude of sentiment, regardless of score // (positive or negative). Magnitude float64 `json:"magnitude,omitempty"` // Score: Sentiment score between -1.0 (negative sentiment) and 1.0 // (positive sentiment). Score float64 `json:"score,omitempty"` // ForceSendFields is a list of field names (e.g. "Magnitude") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Magnitude") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1Sentiment: The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text.
func (*GoogleCloudDialogflowV2beta1Sentiment) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1Sentiment) MarshalJSON() ([]byte, error)
func (*GoogleCloudDialogflowV2beta1Sentiment) UnmarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1Sentiment) UnmarshalJSON(data []byte) error
type GoogleCloudDialogflowV2beta1SentimentAnalysisResult ¶
type GoogleCloudDialogflowV2beta1SentimentAnalysisResult struct { // QueryTextSentiment: The sentiment analysis result for `query_text`. QueryTextSentiment *GoogleCloudDialogflowV2beta1Sentiment `json:"queryTextSentiment,omitempty"` // ForceSendFields is a list of field names (e.g. "QueryTextSentiment") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "QueryTextSentiment") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1SentimentAnalysisResult: The result of sentiment analysis. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral. For Participants.DetectIntent, it needs to be configured in DetectIntentRequest.query_params. For Participants.StreamingDetectIntent, it needs to be configured in StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent and Participants.StreamingAnalyzeContent, it needs to be configured in ConversationProfile.human_agent_assistant_config
func (*GoogleCloudDialogflowV2beta1SentimentAnalysisResult) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1SentimentAnalysisResult) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1SessionEntityType ¶ added in v0.11.0
type GoogleCloudDialogflowV2beta1SessionEntityType struct { // Entities: Required. The collection of entities associated with this // session entity type. Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"` // EntityOverrideMode: Required. Indicates whether the additional data // should override or supplement the custom entity type definition. // // Possible values: // "ENTITY_OVERRIDE_MODE_UNSPECIFIED" - Not specified. This value // should be never used. // "ENTITY_OVERRIDE_MODE_OVERRIDE" - The collection of session // entities overrides the collection of entities in the corresponding // custom entity type. // "ENTITY_OVERRIDE_MODE_SUPPLEMENT" - The collection of session // entities extends the collection of entities in the corresponding // custom entity type. Note: Even in this override mode calls to // `ListSessionEntityTypes`, `GetSessionEntityType`, // `CreateSessionEntityType` and `UpdateSessionEntityType` only return // the additional entities added in this session entity type. If you // want to get the supplemented list, please call // EntityTypes.GetEntityType on the custom entity type and merge. EntityOverrideMode string `json:"entityOverrideMode,omitempty"` // Name: Required. The unique identifier of this session entity type. // Supported formats: - `projects//agent/sessions//entityTypes/` - // `projects//locations//agent/sessions//entityTypes/` - // `projects//agent/environments//users//sessions//entityTypes/` - // `projects//locations//agent/environments/ // /users//sessions//entityTypes/` If `Location ID` is not specified we // assume default 'us' location. If `Environment ID` is not specified, // we assume default 'draft' environment. If `User ID` is not specified, // we assume default '-' user. “ must be the display name of an // existing entity type in the same agent that will be overridden or // supplemented. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Entities") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entities") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1SessionEntityType: A session represents a conversation between a Dialogflow agent and an end-user. You can create special entities, called session entities, during a session. Session entities can extend or replace custom entity types and only exist during the session that they were created for. All session data, including session entities, is stored by Dialogflow for 20 minutes. For more information, see the [session entity guide](https://cloud.google.com/dialogflow/docs/entities-session).
func (*GoogleCloudDialogflowV2beta1SessionEntityType) MarshalJSON ¶ added in v0.11.0
func (s *GoogleCloudDialogflowV2beta1SessionEntityType) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1WebhookRequest ¶
type GoogleCloudDialogflowV2beta1WebhookRequest struct { // AlternativeQueryResults: Alternative query results from // KnowledgeService. AlternativeQueryResults []*GoogleCloudDialogflowV2beta1QueryResult `json:"alternativeQueryResults,omitempty"` // OriginalDetectIntentRequest: Optional. The contents of the original // request that was passed to `[Streaming]DetectIntent` call. OriginalDetectIntentRequest *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"` // QueryResult: The result of the conversational query or event // processing. Contains the same value as // `[Streaming]DetectIntentResponse.query_result`. QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"` // ResponseId: The unique identifier of the response. Contains the same // value as `[Streaming]DetectIntentResponse.response_id`. ResponseId string `json:"responseId,omitempty"` // Session: The unique identifier of detectIntent request session. Can // be used to identify end-user inside webhook implementation. Supported // formats: - `projects//agent/sessions/, - // `projects//locations//agent/sessions/`, - // `projects//agent/environments//users//sessions/`, - // `projects//locations//agent/environments//users//sessions/`, Session string `json:"session,omitempty"` // ForceSendFields is a list of field names (e.g. // "AlternativeQueryResults") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AlternativeQueryResults") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1WebhookRequest: The request message for a webhook call.
func (*GoogleCloudDialogflowV2beta1WebhookRequest) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1WebhookRequest) MarshalJSON() ([]byte, error)
type GoogleCloudDialogflowV2beta1WebhookResponse ¶
type GoogleCloudDialogflowV2beta1WebhookResponse struct { // EndInteraction: Optional. Indicates that this intent ends an // interaction. Some integrations (e.g., Actions on Google or Dialogflow // phone gateway) use this information to close interaction with an end // user. Default is false. EndInteraction bool `json:"endInteraction,omitempty"` // FollowupEventInput: Optional. Invokes the supplied events. When this // field is set, Dialogflow ignores the `fulfillment_text`, // `fulfillment_messages`, and `payload` fields. FollowupEventInput *GoogleCloudDialogflowV2beta1EventInput `json:"followupEventInput,omitempty"` // FulfillmentMessages: Optional. The rich response messages intended // for the end-user. When provided, Dialogflow uses this field to // populate QueryResult.fulfillment_messages sent to the integration or // API caller. FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"` // FulfillmentText: Optional. The text response message intended for the // end-user. It is recommended to use // `fulfillment_messages.text.text[0]` instead. When provided, // Dialogflow uses this field to populate QueryResult.fulfillment_text // sent to the integration or API caller. FulfillmentText string `json:"fulfillmentText,omitempty"` // OutputContexts: Optional. The collection of output contexts that will // overwrite currently active contexts for the session and reset their // lifespans. When provided, Dialogflow uses this field to populate // QueryResult.output_contexts sent to the integration or API caller. OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"` // Payload: Optional. This field can be used to pass custom data from // your webhook to the integration or API caller. Arbitrary JSON objects // are supported. When provided, Dialogflow uses this field to populate // QueryResult.webhook_payload sent to the integration or API caller. // This field is also used by the [Google Assistant // integration](https://cloud.google.com/dialogflow/docs/integrations/aog // ) for rich response messages. See the format definition at [Google // Assistant Dialogflow webhook // format](https://developers.google.com/assistant/actions/build/json/dia // logflow-webhook-json) Payload googleapi.RawMessage `json:"payload,omitempty"` // SessionEntityTypes: Optional. Additional session entity types to // replace or extend developer entity types with. The entity synonyms // apply to all languages and persist for the session. Setting this data // from a webhook overwrites the session entity types that have been set // using `detectIntent`, `streamingDetectIntent` or SessionEntityType // management methods. SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"` // Source: Optional. A custom field used to identify the webhook source. // Arbitrary strings are supported. When provided, Dialogflow uses this // field to populate QueryResult.webhook_source sent to the integration // or API caller. Source string `json:"source,omitempty"` // ForceSendFields is a list of field names (e.g. "EndInteraction") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EndInteraction") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleCloudDialogflowV2beta1WebhookResponse: The response message for a webhook call. This response is validated by the Dialogflow server. If validation fails, an error will be returned in the QueryResult.diagnostic_info field. Setting JSON fields to an empty value with the wrong type is a common error. To avoid this error: - Use "" for empty strings - Use `{}` or `null` for empty objects - Use `[]` or `null` for empty arrays For more information, see the [Protocol Buffers Language Guide](https://developers.google.com/protocol-buffers/docs/proto3#json ).
func (*GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON ¶
func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, error)
type GoogleLongrunningListOperationsResponse ¶ added in v0.8.0
type GoogleLongrunningListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` // Operations: A list of operations that matches the specified filter in // the request. Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleLongrunningListOperationsResponse: The response message for Operations.ListOperations.
func (*GoogleLongrunningListOperationsResponse) MarshalJSON ¶ added in v0.8.0
func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error)
type GoogleLongrunningOperation ¶
type GoogleLongrunningOperation struct { // Done: If the value is `false`, it means the operation is still in // progress. If `true`, the operation is completed, and either `error` // or `response` is available. Done bool `json:"done,omitempty"` // Error: The error result of the operation in case of failure or // cancellation. Error *GoogleRpcStatus `json:"error,omitempty"` // Metadata: Service-specific metadata associated with the operation. It // typically contains progress information and common metadata such as // create time. Some services might not provide such metadata. Any // method that returns a long-running operation should document the // metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: The server-assigned name, which is only unique within the same // service that originally returns it. If you use the default HTTP // mapping, the `name` should be a resource name ending with // `operations/{unique_id}`. Name string `json:"name,omitempty"` // Response: The normal response of the operation in case of success. If // the original method returns no data on success, such as `Delete`, the // response is `google.protobuf.Empty`. If the original method is // standard `Get`/`Create`/`Update`, the response should be the // resource. For other methods, the response should have the type // `XxxResponse`, where `Xxx` is the original method name. For example, // if the original method name is `TakeSnapshot()`, the inferred // response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Done") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Done") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleLongrunningOperation: This resource represents a long-running operation that is the result of a network API call.
func (*GoogleLongrunningOperation) MarshalJSON ¶
func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error)
type GoogleProtobufEmpty ¶
type GoogleProtobufEmpty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
GoogleProtobufEmpty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
type GoogleRpcStatus ¶
type GoogleRpcStatus struct { // Code: The status code, which should be an enum value of // google.rpc.Code. Code int64 `json:"code,omitempty"` // Details: A list of messages that carry the error details. There is a // common set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` // Message: A developer-facing error message, which should be in // English. Any user-facing error message should be localized and sent // in the google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Code") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleRpcStatus: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
func (*GoogleRpcStatus) MarshalJSON ¶
func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error)
type GoogleTypeLatLng ¶
type GoogleTypeLatLng struct { // Latitude: The latitude in degrees. It must be in the range [-90.0, // +90.0]. Latitude float64 `json:"latitude,omitempty"` // Longitude: The longitude in degrees. It must be in the range [-180.0, // +180.0]. Longitude float64 `json:"longitude,omitempty"` // ForceSendFields is a list of field names (e.g. "Latitude") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Latitude") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleTypeLatLng: An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges.
func (*GoogleTypeLatLng) MarshalJSON ¶
func (s *GoogleTypeLatLng) MarshalJSON() ([]byte, error)
func (*GoogleTypeLatLng) UnmarshalJSON ¶
func (s *GoogleTypeLatLng) UnmarshalJSON(data []byte) error
type ProjectsAgentEntityTypesBatchDeleteCall ¶
type ProjectsAgentEntityTypesBatchDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEntityTypesBatchDeleteCall) Context ¶
func (c *ProjectsAgentEntityTypesBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesBatchDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEntityTypesBatchDeleteCall) Do ¶
func (c *ProjectsAgentEntityTypesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "dialogflow.projects.agent.entityTypes.batchDelete" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEntityTypesBatchDeleteCall) Fields ¶
func (c *ProjectsAgentEntityTypesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesBatchDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEntityTypesBatchDeleteCall) Header ¶
func (c *ProjectsAgentEntityTypesBatchDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentEntityTypesBatchUpdateCall ¶
type ProjectsAgentEntityTypesBatchUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEntityTypesBatchUpdateCall) Context ¶
func (c *ProjectsAgentEntityTypesBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesBatchUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEntityTypesBatchUpdateCall) Do ¶
func (c *ProjectsAgentEntityTypesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "dialogflow.projects.agent.entityTypes.batchUpdate" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEntityTypesBatchUpdateCall) Fields ¶
func (c *ProjectsAgentEntityTypesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesBatchUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEntityTypesBatchUpdateCall) Header ¶
func (c *ProjectsAgentEntityTypesBatchUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentEntityTypesCreateCall ¶
type ProjectsAgentEntityTypesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEntityTypesCreateCall) Context ¶
func (c *ProjectsAgentEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEntityTypesCreateCall) Do ¶
func (c *ProjectsAgentEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EntityType, error)
Do executes the "dialogflow.projects.agent.entityTypes.create" call. Exactly one of *GoogleCloudDialogflowV2EntityType or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2EntityType.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEntityTypesCreateCall) Fields ¶
func (c *ProjectsAgentEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEntityTypesCreateCall) Header ¶
func (c *ProjectsAgentEntityTypesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentEntityTypesCreateCall) LanguageCode ¶
func (c *ProjectsAgentEntityTypesCreateCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesCreateCall
LanguageCode sets the optional parameter "languageCode": The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#int ent-entity).
type ProjectsAgentEntityTypesDeleteCall ¶
type ProjectsAgentEntityTypesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEntityTypesDeleteCall) Context ¶
func (c *ProjectsAgentEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEntityTypesDeleteCall) Do ¶
func (c *ProjectsAgentEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
Do executes the "dialogflow.projects.agent.entityTypes.delete" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEntityTypesDeleteCall) Fields ¶
func (c *ProjectsAgentEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEntityTypesDeleteCall) Header ¶
func (c *ProjectsAgentEntityTypesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentEntityTypesEntitiesBatchCreateCall ¶
type ProjectsAgentEntityTypesEntitiesBatchCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEntityTypesEntitiesBatchCreateCall) Context ¶
func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEntityTypesEntitiesBatchCreateCall) Do ¶
func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "dialogflow.projects.agent.entityTypes.entities.batchCreate" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEntityTypesEntitiesBatchCreateCall) Fields ¶
func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEntityTypesEntitiesBatchCreateCall) Header ¶
func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentEntityTypesEntitiesBatchDeleteCall ¶
type ProjectsAgentEntityTypesEntitiesBatchDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Context ¶
func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Do ¶
func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "dialogflow.projects.agent.entityTypes.entities.batchDelete" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Fields ¶
func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Header ¶
func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentEntityTypesEntitiesBatchUpdateCall ¶
type ProjectsAgentEntityTypesEntitiesBatchUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Context ¶
func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Do ¶
func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "dialogflow.projects.agent.entityTypes.entities.batchUpdate" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Fields ¶
func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Header ¶
func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentEntityTypesEntitiesService ¶
type ProjectsAgentEntityTypesEntitiesService struct {
// contains filtered or unexported fields
}
func NewProjectsAgentEntityTypesEntitiesService ¶
func NewProjectsAgentEntityTypesEntitiesService(s *Service) *ProjectsAgentEntityTypesEntitiesService
func (*ProjectsAgentEntityTypesEntitiesService) BatchCreate ¶
func (r *ProjectsAgentEntityTypesEntitiesService) BatchCreate(parent string, googleclouddialogflowv2batchcreateentitiesrequest *GoogleCloudDialogflowV2BatchCreateEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchCreateCall
BatchCreate: Creates multiple new entities in the specified entity type. Operation
func (*ProjectsAgentEntityTypesEntitiesService) BatchDelete ¶
func (r *ProjectsAgentEntityTypesEntitiesService) BatchDelete(parent string, googleclouddialogflowv2batchdeleteentitiesrequest *GoogleCloudDialogflowV2BatchDeleteEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall
BatchDelete: Deletes entities in the specified entity type. Operation
func (*ProjectsAgentEntityTypesEntitiesService) BatchUpdate ¶
func (r *ProjectsAgentEntityTypesEntitiesService) BatchUpdate(parent string, googleclouddialogflowv2batchupdateentitiesrequest *GoogleCloudDialogflowV2BatchUpdateEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall
BatchUpdate: Updates or creates multiple entities in the specified entity type. This method does not affect entities in the entity type that aren't explicitly specified in the request. Operation
type ProjectsAgentEntityTypesGetCall ¶
type ProjectsAgentEntityTypesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEntityTypesGetCall) Context ¶
func (c *ProjectsAgentEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentEntityTypesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEntityTypesGetCall) Do ¶
func (c *ProjectsAgentEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EntityType, error)
Do executes the "dialogflow.projects.agent.entityTypes.get" call. Exactly one of *GoogleCloudDialogflowV2EntityType or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2EntityType.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEntityTypesGetCall) Fields ¶
func (c *ProjectsAgentEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEntityTypesGetCall) Header ¶
func (c *ProjectsAgentEntityTypesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentEntityTypesGetCall) IfNoneMatch ¶
func (c *ProjectsAgentEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEntityTypesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsAgentEntityTypesGetCall) LanguageCode ¶
func (c *ProjectsAgentEntityTypesGetCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesGetCall
LanguageCode sets the optional parameter "languageCode": The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#int ent-entity).
type ProjectsAgentEntityTypesListCall ¶
type ProjectsAgentEntityTypesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEntityTypesListCall) Context ¶
func (c *ProjectsAgentEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentEntityTypesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEntityTypesListCall) Do ¶
func (c *ProjectsAgentEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListEntityTypesResponse, error)
Do executes the "dialogflow.projects.agent.entityTypes.list" call. Exactly one of *GoogleCloudDialogflowV2ListEntityTypesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2ListEntityTypesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEntityTypesListCall) Fields ¶
func (c *ProjectsAgentEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEntityTypesListCall) Header ¶
func (c *ProjectsAgentEntityTypesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentEntityTypesListCall) IfNoneMatch ¶
func (c *ProjectsAgentEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentEntityTypesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsAgentEntityTypesListCall) LanguageCode ¶
func (c *ProjectsAgentEntityTypesListCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesListCall
LanguageCode sets the optional parameter "languageCode": The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#int ent-entity).
func (*ProjectsAgentEntityTypesListCall) PageSize ¶
func (c *ProjectsAgentEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentEntityTypesListCall
PageSize sets the optional parameter "pageSize": The maximum number of items to return in a single page. By default 100 and at most 1000.
func (*ProjectsAgentEntityTypesListCall) PageToken ¶
func (c *ProjectsAgentEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentEntityTypesListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous list request.
func (*ProjectsAgentEntityTypesListCall) Pages ¶
func (c *ProjectsAgentEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListEntityTypesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsAgentEntityTypesPatchCall ¶
type ProjectsAgentEntityTypesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEntityTypesPatchCall) Context ¶
func (c *ProjectsAgentEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentEntityTypesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEntityTypesPatchCall) Do ¶
func (c *ProjectsAgentEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EntityType, error)
Do executes the "dialogflow.projects.agent.entityTypes.patch" call. Exactly one of *GoogleCloudDialogflowV2EntityType or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2EntityType.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEntityTypesPatchCall) Fields ¶
func (c *ProjectsAgentEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEntityTypesPatchCall) Header ¶
func (c *ProjectsAgentEntityTypesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentEntityTypesPatchCall) LanguageCode ¶
func (c *ProjectsAgentEntityTypesPatchCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesPatchCall
LanguageCode sets the optional parameter "languageCode": The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#int ent-entity).
func (*ProjectsAgentEntityTypesPatchCall) UpdateMask ¶
func (c *ProjectsAgentEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentEntityTypesPatchCall
UpdateMask sets the optional parameter "updateMask": The mask to control which fields get updated.
type ProjectsAgentEntityTypesService ¶
type ProjectsAgentEntityTypesService struct { Entities *ProjectsAgentEntityTypesEntitiesService // contains filtered or unexported fields }
func NewProjectsAgentEntityTypesService ¶
func NewProjectsAgentEntityTypesService(s *Service) *ProjectsAgentEntityTypesService
func (*ProjectsAgentEntityTypesService) BatchDelete ¶
func (r *ProjectsAgentEntityTypesService) BatchDelete(parent string, googleclouddialogflowv2batchdeleteentitytypesrequest *GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest) *ProjectsAgentEntityTypesBatchDeleteCall
BatchDelete: Deletes entity types in the specified agent. Operation
func (*ProjectsAgentEntityTypesService) BatchUpdate ¶
func (r *ProjectsAgentEntityTypesService) BatchUpdate(parent string, googleclouddialogflowv2batchupdateentitytypesrequest *GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest) *ProjectsAgentEntityTypesBatchUpdateCall
BatchUpdate: Updates/Creates multiple entity types in the specified agent. Operation
func (*ProjectsAgentEntityTypesService) Create ¶
func (r *ProjectsAgentEntityTypesService) Create(parent string, googleclouddialogflowv2entitytype *GoogleCloudDialogflowV2EntityType) *ProjectsAgentEntityTypesCreateCall
Create: Creates an entity type in the specified agent.
func (*ProjectsAgentEntityTypesService) Delete ¶
func (r *ProjectsAgentEntityTypesService) Delete(name string) *ProjectsAgentEntityTypesDeleteCall
Delete: Deletes the specified entity type.
func (*ProjectsAgentEntityTypesService) Get ¶
func (r *ProjectsAgentEntityTypesService) Get(name string) *ProjectsAgentEntityTypesGetCall
Get: Retrieves the specified entity type.
func (*ProjectsAgentEntityTypesService) List ¶
func (r *ProjectsAgentEntityTypesService) List(parent string) *ProjectsAgentEntityTypesListCall
List: Returns the list of all entity types in the specified agent.
func (*ProjectsAgentEntityTypesService) Patch ¶
func (r *ProjectsAgentEntityTypesService) Patch(nameid string, googleclouddialogflowv2entitytype *GoogleCloudDialogflowV2EntityType) *ProjectsAgentEntityTypesPatchCall
Patch: Updates the specified entity type.
type ProjectsAgentEnvironmentsListCall ¶ added in v0.18.0
type ProjectsAgentEnvironmentsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEnvironmentsListCall) Context ¶ added in v0.18.0
func (c *ProjectsAgentEnvironmentsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEnvironmentsListCall) Do ¶ added in v0.18.0
func (c *ProjectsAgentEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListEnvironmentsResponse, error)
Do executes the "dialogflow.projects.agent.environments.list" call. Exactly one of *GoogleCloudDialogflowV2ListEnvironmentsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2ListEnvironmentsResponse.ServerResponse.Header
or (if a response was returned at all) in
error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEnvironmentsListCall) Fields ¶ added in v0.18.0
func (c *ProjectsAgentEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEnvironmentsListCall) Header ¶ added in v0.18.0
func (c *ProjectsAgentEnvironmentsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentEnvironmentsListCall) IfNoneMatch ¶ added in v0.18.0
func (c *ProjectsAgentEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsAgentEnvironmentsListCall) PageSize ¶ added in v0.18.0
func (c *ProjectsAgentEnvironmentsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsListCall
PageSize sets the optional parameter "pageSize": The maximum number of items to return in a single page. By default 100 and at most 1000.
func (*ProjectsAgentEnvironmentsListCall) PageToken ¶ added in v0.18.0
func (c *ProjectsAgentEnvironmentsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous list request.
func (*ProjectsAgentEnvironmentsListCall) Pages ¶ added in v0.18.0
func (c *ProjectsAgentEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListEnvironmentsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsAgentEnvironmentsService ¶ added in v0.18.0
type ProjectsAgentEnvironmentsService struct { Users *ProjectsAgentEnvironmentsUsersService // contains filtered or unexported fields }
func NewProjectsAgentEnvironmentsService ¶ added in v0.18.0
func NewProjectsAgentEnvironmentsService(s *Service) *ProjectsAgentEnvironmentsService
func (*ProjectsAgentEnvironmentsService) List ¶ added in v0.18.0
func (r *ProjectsAgentEnvironmentsService) List(parent string) *ProjectsAgentEnvironmentsListCall
List: Returns the list of all non-draft environments of the specified agent.
type ProjectsAgentEnvironmentsUsersService ¶ added in v0.21.0
type ProjectsAgentEnvironmentsUsersService struct { Sessions *ProjectsAgentEnvironmentsUsersSessionsService // contains filtered or unexported fields }
func NewProjectsAgentEnvironmentsUsersService ¶ added in v0.21.0
func NewProjectsAgentEnvironmentsUsersService(s *Service) *ProjectsAgentEnvironmentsUsersService
type ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall ¶ added in v0.21.0
type ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Context ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Do ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error)
Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.create" call. Exactly one of *GoogleCloudDialogflowV2Context or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2Context.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Fields ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Header ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall ¶ added in v0.21.0
type ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Context ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Do ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.delete" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Fields ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Header ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentEnvironmentsUsersSessionsContextsGetCall ¶ added in v0.21.0
type ProjectsAgentEnvironmentsUsersSessionsContextsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Context ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Do ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error)
Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.get" call. Exactly one of *GoogleCloudDialogflowV2Context or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2Context.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Fields ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Header ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) IfNoneMatch ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsAgentEnvironmentsUsersSessionsContextsListCall ¶ added in v0.21.0
type ProjectsAgentEnvironmentsUsersSessionsContextsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Context ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Do ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListContextsResponse, error)
Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.list" call. Exactly one of *GoogleCloudDialogflowV2ListContextsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2ListContextsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Fields ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Header ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsListCall) IfNoneMatch ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsListCall) PageSize ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall
PageSize sets the optional parameter "pageSize": The maximum number of items to return in a single page. By default 100 and at most 1000.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsListCall) PageToken ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous list request.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Pages ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListContextsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall ¶ added in v0.21.0
type ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Context ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Do ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error)
Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.patch" call. Exactly one of *GoogleCloudDialogflowV2Context or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2Context.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Fields ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Header ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) UpdateMask ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall
UpdateMask sets the optional parameter "updateMask": The mask to control which fields get updated.
type ProjectsAgentEnvironmentsUsersSessionsContextsService ¶ added in v0.21.0
type ProjectsAgentEnvironmentsUsersSessionsContextsService struct {
// contains filtered or unexported fields
}
func NewProjectsAgentEnvironmentsUsersSessionsContextsService ¶ added in v0.21.0
func NewProjectsAgentEnvironmentsUsersSessionsContextsService(s *Service) *ProjectsAgentEnvironmentsUsersSessionsContextsService
func (*ProjectsAgentEnvironmentsUsersSessionsContextsService) Create ¶ added in v0.21.0
func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Create(parent string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall
Create: Creates a context. If the specified context already exists, overrides the context.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsService) Delete ¶ added in v0.21.0
func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Delete(name string) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall
Delete: Deletes the specified context.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsService) Get ¶ added in v0.21.0
func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Get(name string) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall
Get: Retrieves the specified context.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsService) List ¶ added in v0.21.0
func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) List(parent string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall
List: Returns the list of all contexts in the specified session.
func (*ProjectsAgentEnvironmentsUsersSessionsContextsService) Patch ¶ added in v0.21.0
func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Patch(nameid string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall
Patch: Updates the specified context.
type ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall ¶ added in v0.21.0
type ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Context ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Do ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
Do executes the "dialogflow.projects.agent.environments.users.sessions.deleteContexts" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Fields ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Header ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall ¶ added in v0.21.0
type ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Context ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Do ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2DetectIntentResponse, error)
Do executes the "dialogflow.projects.agent.environments.users.sessions.detectIntent" call. Exactly one of *GoogleCloudDialogflowV2DetectIntentResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2DetectIntentResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Fields ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Header ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall ¶ added in v0.21.0
type ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Context ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Do ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error)
Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.create" call. Exactly one of *GoogleCloudDialogflowV2SessionEntityType or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2SessionEntityType.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Fields ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Header ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall ¶ added in v0.21.0
type ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Context ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Do ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.delete" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Fields ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Header ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall ¶ added in v0.21.0
type ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Context ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Do ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error)
Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.get" call. Exactly one of *GoogleCloudDialogflowV2SessionEntityType or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2SessionEntityType.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Fields ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Header ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) IfNoneMatch ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall ¶ added in v0.21.0
type ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Context ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Do ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListSessionEntityTypesResponse, error)
Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.list" call. Exactly one of *GoogleCloudDialogflowV2ListSessionEntityTypesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2ListSessionEntityTypesResponse.ServerResponse. Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Fields ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Header ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) IfNoneMatch ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageSize ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall
PageSize sets the optional parameter "pageSize": The maximum number of items to return in a single page. By default 100 and at most 1000.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageToken ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous list request.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Pages ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListSessionEntityTypesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall ¶ added in v0.21.0
type ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Context ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Do ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error)
Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.patch" call. Exactly one of *GoogleCloudDialogflowV2SessionEntityType or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2SessionEntityType.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Fields ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Header ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) UpdateMask ¶ added in v0.21.0
func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall
UpdateMask sets the optional parameter "updateMask": The mask to control which fields get updated.
type ProjectsAgentEnvironmentsUsersSessionsEntityTypesService ¶ added in v0.21.0
type ProjectsAgentEnvironmentsUsersSessionsEntityTypesService struct {
// contains filtered or unexported fields
}
func NewProjectsAgentEnvironmentsUsersSessionsEntityTypesService ¶ added in v0.21.0
func NewProjectsAgentEnvironmentsUsersSessionsEntityTypesService(s *Service) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Create ¶ added in v0.21.0
func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall
Create: Creates a session entity type. If the specified session entity type already exists, overrides the session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Delete ¶ added in v0.21.0
func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Delete(name string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall
Delete: Deletes the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Get ¶ added in v0.21.0
func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Get(name string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall
Get: Retrieves the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) List ¶ added in v0.21.0
func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) List(parent string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall
List: Returns the list of all session entity types in the specified session. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.
func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Patch ¶ added in v0.21.0
func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall
Patch: Updates the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.
type ProjectsAgentEnvironmentsUsersSessionsService ¶ added in v0.21.0
type ProjectsAgentEnvironmentsUsersSessionsService struct { Contexts *ProjectsAgentEnvironmentsUsersSessionsContextsService EntityTypes *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService // contains filtered or unexported fields }
func NewProjectsAgentEnvironmentsUsersSessionsService ¶ added in v0.21.0
func NewProjectsAgentEnvironmentsUsersSessionsService(s *Service) *ProjectsAgentEnvironmentsUsersSessionsService
func (*ProjectsAgentEnvironmentsUsersSessionsService) DeleteContexts ¶ added in v0.21.0
func (r *ProjectsAgentEnvironmentsUsersSessionsService) DeleteContexts(parent string) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall
DeleteContexts: Deletes all active contexts in the specified session.
func (*ProjectsAgentEnvironmentsUsersSessionsService) DetectIntent ¶ added in v0.21.0
func (r *ProjectsAgentEnvironmentsUsersSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2detectintentrequest *GoogleCloudDialogflowV2DetectIntentRequest) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall
DetectIntent: Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries.
type ProjectsAgentExportCall ¶
type ProjectsAgentExportCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentExportCall) Context ¶
func (c *ProjectsAgentExportCall) Context(ctx context.Context) *ProjectsAgentExportCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentExportCall) Do ¶
func (c *ProjectsAgentExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "dialogflow.projects.agent.export" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentExportCall) Fields ¶
func (c *ProjectsAgentExportCall) Fields(s ...googleapi.Field) *ProjectsAgentExportCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentExportCall) Header ¶
func (c *ProjectsAgentExportCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentGetFulfillmentCall ¶ added in v0.18.0
type ProjectsAgentGetFulfillmentCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentGetFulfillmentCall) Context ¶ added in v0.18.0
func (c *ProjectsAgentGetFulfillmentCall) Context(ctx context.Context) *ProjectsAgentGetFulfillmentCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentGetFulfillmentCall) Do ¶ added in v0.18.0
func (c *ProjectsAgentGetFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Fulfillment, error)
Do executes the "dialogflow.projects.agent.getFulfillment" call. Exactly one of *GoogleCloudDialogflowV2Fulfillment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2Fulfillment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentGetFulfillmentCall) Fields ¶ added in v0.18.0
func (c *ProjectsAgentGetFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsAgentGetFulfillmentCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentGetFulfillmentCall) Header ¶ added in v0.18.0
func (c *ProjectsAgentGetFulfillmentCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentGetFulfillmentCall) IfNoneMatch ¶ added in v0.18.0
func (c *ProjectsAgentGetFulfillmentCall) IfNoneMatch(entityTag string) *ProjectsAgentGetFulfillmentCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsAgentGetValidationResultCall ¶ added in v0.18.0
type ProjectsAgentGetValidationResultCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentGetValidationResultCall) Context ¶ added in v0.18.0
func (c *ProjectsAgentGetValidationResultCall) Context(ctx context.Context) *ProjectsAgentGetValidationResultCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentGetValidationResultCall) Do ¶ added in v0.18.0
func (c *ProjectsAgentGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ValidationResult, error)
Do executes the "dialogflow.projects.agent.getValidationResult" call. Exactly one of *GoogleCloudDialogflowV2ValidationResult or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2ValidationResult.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentGetValidationResultCall) Fields ¶ added in v0.18.0
func (c *ProjectsAgentGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsAgentGetValidationResultCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentGetValidationResultCall) Header ¶ added in v0.18.0
func (c *ProjectsAgentGetValidationResultCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentGetValidationResultCall) IfNoneMatch ¶ added in v0.18.0
func (c *ProjectsAgentGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsAgentGetValidationResultCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsAgentGetValidationResultCall) LanguageCode ¶ added in v0.18.0
func (c *ProjectsAgentGetValidationResultCall) LanguageCode(languageCode string) *ProjectsAgentGetValidationResultCall
LanguageCode sets the optional parameter "languageCode": The language for which you want a validation result. If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/docs/reference/language ) are supported. Note: languages must be enabled in the agent before they can be used.
type ProjectsAgentImportCall ¶
type ProjectsAgentImportCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentImportCall) Context ¶
func (c *ProjectsAgentImportCall) Context(ctx context.Context) *ProjectsAgentImportCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentImportCall) Do ¶
func (c *ProjectsAgentImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "dialogflow.projects.agent.import" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentImportCall) Fields ¶
func (c *ProjectsAgentImportCall) Fields(s ...googleapi.Field) *ProjectsAgentImportCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentImportCall) Header ¶
func (c *ProjectsAgentImportCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentIntentsBatchDeleteCall ¶
type ProjectsAgentIntentsBatchDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentIntentsBatchDeleteCall) Context ¶
func (c *ProjectsAgentIntentsBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentIntentsBatchDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentIntentsBatchDeleteCall) Do ¶
func (c *ProjectsAgentIntentsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "dialogflow.projects.agent.intents.batchDelete" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentIntentsBatchDeleteCall) Fields ¶
func (c *ProjectsAgentIntentsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsBatchDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentIntentsBatchDeleteCall) Header ¶
func (c *ProjectsAgentIntentsBatchDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentIntentsBatchUpdateCall ¶
type ProjectsAgentIntentsBatchUpdateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentIntentsBatchUpdateCall) Context ¶
func (c *ProjectsAgentIntentsBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentIntentsBatchUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentIntentsBatchUpdateCall) Do ¶
func (c *ProjectsAgentIntentsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "dialogflow.projects.agent.intents.batchUpdate" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentIntentsBatchUpdateCall) Fields ¶
func (c *ProjectsAgentIntentsBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsBatchUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentIntentsBatchUpdateCall) Header ¶
func (c *ProjectsAgentIntentsBatchUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentIntentsCreateCall ¶
type ProjectsAgentIntentsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentIntentsCreateCall) Context ¶
func (c *ProjectsAgentIntentsCreateCall) Context(ctx context.Context) *ProjectsAgentIntentsCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentIntentsCreateCall) Do ¶
func (c *ProjectsAgentIntentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Intent, error)
Do executes the "dialogflow.projects.agent.intents.create" call. Exactly one of *GoogleCloudDialogflowV2Intent or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2Intent.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentIntentsCreateCall) Fields ¶
func (c *ProjectsAgentIntentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentIntentsCreateCall) Header ¶
func (c *ProjectsAgentIntentsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentIntentsCreateCall) IntentView ¶
func (c *ProjectsAgentIntentsCreateCall) IntentView(intentView string) *ProjectsAgentIntentsCreateCall
IntentView sets the optional parameter "intentView": The resource view to apply to the returned intent.
Possible values:
"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
in the response.
"INTENT_VIEW_FULL" - All fields are populated.
func (*ProjectsAgentIntentsCreateCall) LanguageCode ¶
func (c *ProjectsAgentIntentsCreateCall) LanguageCode(languageCode string) *ProjectsAgentIntentsCreateCall
LanguageCode sets the optional parameter "languageCode": The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#int ent-entity).
type ProjectsAgentIntentsDeleteCall ¶
type ProjectsAgentIntentsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentIntentsDeleteCall) Context ¶
func (c *ProjectsAgentIntentsDeleteCall) Context(ctx context.Context) *ProjectsAgentIntentsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentIntentsDeleteCall) Do ¶
func (c *ProjectsAgentIntentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
Do executes the "dialogflow.projects.agent.intents.delete" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentIntentsDeleteCall) Fields ¶
func (c *ProjectsAgentIntentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentIntentsDeleteCall) Header ¶
func (c *ProjectsAgentIntentsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentIntentsGetCall ¶
type ProjectsAgentIntentsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentIntentsGetCall) Context ¶
func (c *ProjectsAgentIntentsGetCall) Context(ctx context.Context) *ProjectsAgentIntentsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentIntentsGetCall) Do ¶
func (c *ProjectsAgentIntentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Intent, error)
Do executes the "dialogflow.projects.agent.intents.get" call. Exactly one of *GoogleCloudDialogflowV2Intent or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2Intent.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentIntentsGetCall) Fields ¶
func (c *ProjectsAgentIntentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentIntentsGetCall) Header ¶
func (c *ProjectsAgentIntentsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentIntentsGetCall) IfNoneMatch ¶
func (c *ProjectsAgentIntentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentIntentsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsAgentIntentsGetCall) IntentView ¶
func (c *ProjectsAgentIntentsGetCall) IntentView(intentView string) *ProjectsAgentIntentsGetCall
IntentView sets the optional parameter "intentView": The resource view to apply to the returned intent.
Possible values:
"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
in the response.
"INTENT_VIEW_FULL" - All fields are populated.
func (*ProjectsAgentIntentsGetCall) LanguageCode ¶
func (c *ProjectsAgentIntentsGetCall) LanguageCode(languageCode string) *ProjectsAgentIntentsGetCall
LanguageCode sets the optional parameter "languageCode": The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#int ent-entity).
type ProjectsAgentIntentsListCall ¶
type ProjectsAgentIntentsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentIntentsListCall) Context ¶
func (c *ProjectsAgentIntentsListCall) Context(ctx context.Context) *ProjectsAgentIntentsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentIntentsListCall) Do ¶
func (c *ProjectsAgentIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListIntentsResponse, error)
Do executes the "dialogflow.projects.agent.intents.list" call. Exactly one of *GoogleCloudDialogflowV2ListIntentsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2ListIntentsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentIntentsListCall) Fields ¶
func (c *ProjectsAgentIntentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentIntentsListCall) Header ¶
func (c *ProjectsAgentIntentsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentIntentsListCall) IfNoneMatch ¶
func (c *ProjectsAgentIntentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentIntentsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsAgentIntentsListCall) IntentView ¶
func (c *ProjectsAgentIntentsListCall) IntentView(intentView string) *ProjectsAgentIntentsListCall
IntentView sets the optional parameter "intentView": The resource view to apply to the returned intent.
Possible values:
"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
in the response.
"INTENT_VIEW_FULL" - All fields are populated.
func (*ProjectsAgentIntentsListCall) LanguageCode ¶
func (c *ProjectsAgentIntentsListCall) LanguageCode(languageCode string) *ProjectsAgentIntentsListCall
LanguageCode sets the optional parameter "languageCode": The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#int ent-entity).
func (*ProjectsAgentIntentsListCall) PageSize ¶
func (c *ProjectsAgentIntentsListCall) PageSize(pageSize int64) *ProjectsAgentIntentsListCall
PageSize sets the optional parameter "pageSize": The maximum number of items to return in a single page. By default 100 and at most 1000.
func (*ProjectsAgentIntentsListCall) PageToken ¶
func (c *ProjectsAgentIntentsListCall) PageToken(pageToken string) *ProjectsAgentIntentsListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous list request.
func (*ProjectsAgentIntentsListCall) Pages ¶
func (c *ProjectsAgentIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListIntentsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsAgentIntentsPatchCall ¶
type ProjectsAgentIntentsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentIntentsPatchCall) Context ¶
func (c *ProjectsAgentIntentsPatchCall) Context(ctx context.Context) *ProjectsAgentIntentsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentIntentsPatchCall) Do ¶
func (c *ProjectsAgentIntentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Intent, error)
Do executes the "dialogflow.projects.agent.intents.patch" call. Exactly one of *GoogleCloudDialogflowV2Intent or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2Intent.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentIntentsPatchCall) Fields ¶
func (c *ProjectsAgentIntentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentIntentsPatchCall) Header ¶
func (c *ProjectsAgentIntentsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentIntentsPatchCall) IntentView ¶
func (c *ProjectsAgentIntentsPatchCall) IntentView(intentView string) *ProjectsAgentIntentsPatchCall
IntentView sets the optional parameter "intentView": The resource view to apply to the returned intent.
Possible values:
"INTENT_VIEW_UNSPECIFIED" - Training phrases field is not populated
in the response.
"INTENT_VIEW_FULL" - All fields are populated.
func (*ProjectsAgentIntentsPatchCall) LanguageCode ¶
func (c *ProjectsAgentIntentsPatchCall) LanguageCode(languageCode string) *ProjectsAgentIntentsPatchCall
LanguageCode sets the optional parameter "languageCode": The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#int ent-entity).
func (*ProjectsAgentIntentsPatchCall) UpdateMask ¶
func (c *ProjectsAgentIntentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentIntentsPatchCall
UpdateMask sets the optional parameter "updateMask": The mask to control which fields get updated.
type ProjectsAgentIntentsService ¶
type ProjectsAgentIntentsService struct {
// contains filtered or unexported fields
}
func NewProjectsAgentIntentsService ¶
func NewProjectsAgentIntentsService(s *Service) *ProjectsAgentIntentsService
func (*ProjectsAgentIntentsService) BatchDelete ¶
func (r *ProjectsAgentIntentsService) BatchDelete(parent string, googleclouddialogflowv2batchdeleteintentsrequest *GoogleCloudDialogflowV2BatchDeleteIntentsRequest) *ProjectsAgentIntentsBatchDeleteCall
BatchDelete: Deletes intents in the specified agent. Operation
func (*ProjectsAgentIntentsService) BatchUpdate ¶
func (r *ProjectsAgentIntentsService) BatchUpdate(parent string, googleclouddialogflowv2batchupdateintentsrequest *GoogleCloudDialogflowV2BatchUpdateIntentsRequest) *ProjectsAgentIntentsBatchUpdateCall
BatchUpdate: Updates/Creates multiple intents in the specified agent. Operation
func (*ProjectsAgentIntentsService) Create ¶
func (r *ProjectsAgentIntentsService) Create(parent string, googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent) *ProjectsAgentIntentsCreateCall
Create: Creates an intent in the specified agent.
func (*ProjectsAgentIntentsService) Delete ¶
func (r *ProjectsAgentIntentsService) Delete(name string) *ProjectsAgentIntentsDeleteCall
Delete: Deletes the specified intent and its direct or indirect followup intents.
func (*ProjectsAgentIntentsService) Get ¶
func (r *ProjectsAgentIntentsService) Get(name string) *ProjectsAgentIntentsGetCall
Get: Retrieves the specified intent.
func (*ProjectsAgentIntentsService) List ¶
func (r *ProjectsAgentIntentsService) List(parent string) *ProjectsAgentIntentsListCall
List: Returns the list of all intents in the specified agent.
func (*ProjectsAgentIntentsService) Patch ¶
func (r *ProjectsAgentIntentsService) Patch(nameid string, googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent) *ProjectsAgentIntentsPatchCall
Patch: Updates the specified intent.
type ProjectsAgentRestoreCall ¶
type ProjectsAgentRestoreCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentRestoreCall) Context ¶
func (c *ProjectsAgentRestoreCall) Context(ctx context.Context) *ProjectsAgentRestoreCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentRestoreCall) Do ¶
func (c *ProjectsAgentRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "dialogflow.projects.agent.restore" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentRestoreCall) Fields ¶
func (c *ProjectsAgentRestoreCall) Fields(s ...googleapi.Field) *ProjectsAgentRestoreCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentRestoreCall) Header ¶
func (c *ProjectsAgentRestoreCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentSearchCall ¶
type ProjectsAgentSearchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentSearchCall) Context ¶
func (c *ProjectsAgentSearchCall) Context(ctx context.Context) *ProjectsAgentSearchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentSearchCall) Do ¶
func (c *ProjectsAgentSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SearchAgentsResponse, error)
Do executes the "dialogflow.projects.agent.search" call. Exactly one of *GoogleCloudDialogflowV2SearchAgentsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2SearchAgentsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentSearchCall) Fields ¶
func (c *ProjectsAgentSearchCall) Fields(s ...googleapi.Field) *ProjectsAgentSearchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentSearchCall) Header ¶
func (c *ProjectsAgentSearchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentSearchCall) IfNoneMatch ¶
func (c *ProjectsAgentSearchCall) IfNoneMatch(entityTag string) *ProjectsAgentSearchCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsAgentSearchCall) PageSize ¶
func (c *ProjectsAgentSearchCall) PageSize(pageSize int64) *ProjectsAgentSearchCall
PageSize sets the optional parameter "pageSize": The maximum number of items to return in a single page. By default 100 and at most 1000.
func (*ProjectsAgentSearchCall) PageToken ¶
func (c *ProjectsAgentSearchCall) PageToken(pageToken string) *ProjectsAgentSearchCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous list request.
func (*ProjectsAgentSearchCall) Pages ¶
func (c *ProjectsAgentSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2SearchAgentsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsAgentService ¶
type ProjectsAgentService struct { EntityTypes *ProjectsAgentEntityTypesService Environments *ProjectsAgentEnvironmentsService Intents *ProjectsAgentIntentsService Sessions *ProjectsAgentSessionsService // contains filtered or unexported fields }
func NewProjectsAgentService ¶
func NewProjectsAgentService(s *Service) *ProjectsAgentService
func (*ProjectsAgentService) Export ¶
func (r *ProjectsAgentService) Export(parent string, googleclouddialogflowv2exportagentrequest *GoogleCloudDialogflowV2ExportAgentRequest) *ProjectsAgentExportCall
Export: Exports the specified agent to a ZIP file. Operation
func (*ProjectsAgentService) GetFulfillment ¶ added in v0.18.0
func (r *ProjectsAgentService) GetFulfillment(name string) *ProjectsAgentGetFulfillmentCall
GetFulfillment: Retrieves the fulfillment.
func (*ProjectsAgentService) GetValidationResult ¶ added in v0.18.0
func (r *ProjectsAgentService) GetValidationResult(parent string) *ProjectsAgentGetValidationResultCall
GetValidationResult: Gets agent validation result. Agent validation is performed during training time and is updated automatically when training is completed.
func (*ProjectsAgentService) Import ¶
func (r *ProjectsAgentService) Import(parent string, googleclouddialogflowv2importagentrequest *GoogleCloudDialogflowV2ImportAgentRequest) *ProjectsAgentImportCall
Import: Imports the specified agent from a ZIP file. Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from ImportAgentRequest. After the import, the imported draft agent will be trained automatically (unless disabled in agent settings). However, once the import is done, training may not be completed yet. Please call TrainAgent and wait for the operation it returns in order to train explicitly. Operation An operation which tracks when importing is complete. It only tracks when the draft agent is updated not when it is done training.
func (*ProjectsAgentService) Restore ¶
func (r *ProjectsAgentService) Restore(parent string, googleclouddialogflowv2restoreagentrequest *GoogleCloudDialogflowV2RestoreAgentRequest) *ProjectsAgentRestoreCall
Restore: Restores the specified agent from a ZIP file. Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. After the restore, the restored draft agent will be trained automatically (unless disabled in agent settings). However, once the restore is done, training may not be completed yet. Please call TrainAgent and wait for the operation it returns in order to train explicitly. Operation An operation which tracks when restoring is complete. It only tracks when the draft agent is updated not when it is done training.
func (*ProjectsAgentService) Search ¶
func (r *ProjectsAgentService) Search(parent string) *ProjectsAgentSearchCall
Search: Returns the list of agents. Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id "-". Refer to [List Sub-Collections](https://cloud.google.com/apis/design/design_patterns# list_sub-collections).
func (*ProjectsAgentService) Train ¶
func (r *ProjectsAgentService) Train(parent string, googleclouddialogflowv2trainagentrequest *GoogleCloudDialogflowV2TrainAgentRequest) *ProjectsAgentTrainCall
Train: Trains the specified agent. Operation
func (*ProjectsAgentService) UpdateFulfillment ¶ added in v0.18.0
func (r *ProjectsAgentService) UpdateFulfillment(nameid string, googleclouddialogflowv2fulfillment *GoogleCloudDialogflowV2Fulfillment) *ProjectsAgentUpdateFulfillmentCall
UpdateFulfillment: Updates the fulfillment.
type ProjectsAgentSessionsContextsCreateCall ¶
type ProjectsAgentSessionsContextsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentSessionsContextsCreateCall) Context ¶
func (c *ProjectsAgentSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentSessionsContextsCreateCall) Do ¶
func (c *ProjectsAgentSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error)
Do executes the "dialogflow.projects.agent.sessions.contexts.create" call. Exactly one of *GoogleCloudDialogflowV2Context or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2Context.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentSessionsContextsCreateCall) Fields ¶
func (c *ProjectsAgentSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentSessionsContextsCreateCall) Header ¶
func (c *ProjectsAgentSessionsContextsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentSessionsContextsDeleteCall ¶
type ProjectsAgentSessionsContextsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentSessionsContextsDeleteCall) Context ¶
func (c *ProjectsAgentSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentSessionsContextsDeleteCall) Do ¶
func (c *ProjectsAgentSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
Do executes the "dialogflow.projects.agent.sessions.contexts.delete" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentSessionsContextsDeleteCall) Fields ¶
func (c *ProjectsAgentSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentSessionsContextsDeleteCall) Header ¶
func (c *ProjectsAgentSessionsContextsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentSessionsContextsGetCall ¶
type ProjectsAgentSessionsContextsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentSessionsContextsGetCall) Context ¶
func (c *ProjectsAgentSessionsContextsGetCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentSessionsContextsGetCall) Do ¶
func (c *ProjectsAgentSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error)
Do executes the "dialogflow.projects.agent.sessions.contexts.get" call. Exactly one of *GoogleCloudDialogflowV2Context or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2Context.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentSessionsContextsGetCall) Fields ¶
func (c *ProjectsAgentSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentSessionsContextsGetCall) Header ¶
func (c *ProjectsAgentSessionsContextsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentSessionsContextsGetCall) IfNoneMatch ¶
func (c *ProjectsAgentSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsContextsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsAgentSessionsContextsListCall ¶
type ProjectsAgentSessionsContextsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentSessionsContextsListCall) Context ¶
func (c *ProjectsAgentSessionsContextsListCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentSessionsContextsListCall) Do ¶
func (c *ProjectsAgentSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListContextsResponse, error)
Do executes the "dialogflow.projects.agent.sessions.contexts.list" call. Exactly one of *GoogleCloudDialogflowV2ListContextsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2ListContextsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentSessionsContextsListCall) Fields ¶
func (c *ProjectsAgentSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentSessionsContextsListCall) Header ¶
func (c *ProjectsAgentSessionsContextsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentSessionsContextsListCall) IfNoneMatch ¶
func (c *ProjectsAgentSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsContextsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsAgentSessionsContextsListCall) PageSize ¶
func (c *ProjectsAgentSessionsContextsListCall) PageSize(pageSize int64) *ProjectsAgentSessionsContextsListCall
PageSize sets the optional parameter "pageSize": The maximum number of items to return in a single page. By default 100 and at most 1000.
func (*ProjectsAgentSessionsContextsListCall) PageToken ¶
func (c *ProjectsAgentSessionsContextsListCall) PageToken(pageToken string) *ProjectsAgentSessionsContextsListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous list request.
func (*ProjectsAgentSessionsContextsListCall) Pages ¶
func (c *ProjectsAgentSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListContextsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsAgentSessionsContextsPatchCall ¶
type ProjectsAgentSessionsContextsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentSessionsContextsPatchCall) Context ¶
func (c *ProjectsAgentSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentSessionsContextsPatchCall) Do ¶
func (c *ProjectsAgentSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error)
Do executes the "dialogflow.projects.agent.sessions.contexts.patch" call. Exactly one of *GoogleCloudDialogflowV2Context or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2Context.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentSessionsContextsPatchCall) Fields ¶
func (c *ProjectsAgentSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentSessionsContextsPatchCall) Header ¶
func (c *ProjectsAgentSessionsContextsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentSessionsContextsPatchCall) UpdateMask ¶
func (c *ProjectsAgentSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsAgentSessionsContextsPatchCall
UpdateMask sets the optional parameter "updateMask": The mask to control which fields get updated.
type ProjectsAgentSessionsContextsService ¶
type ProjectsAgentSessionsContextsService struct {
// contains filtered or unexported fields
}
func NewProjectsAgentSessionsContextsService ¶
func NewProjectsAgentSessionsContextsService(s *Service) *ProjectsAgentSessionsContextsService
func (*ProjectsAgentSessionsContextsService) Create ¶
func (r *ProjectsAgentSessionsContextsService) Create(parent string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsAgentSessionsContextsCreateCall
Create: Creates a context. If the specified context already exists, overrides the context.
func (*ProjectsAgentSessionsContextsService) Delete ¶
func (r *ProjectsAgentSessionsContextsService) Delete(name string) *ProjectsAgentSessionsContextsDeleteCall
Delete: Deletes the specified context.
func (*ProjectsAgentSessionsContextsService) Get ¶
func (r *ProjectsAgentSessionsContextsService) Get(name string) *ProjectsAgentSessionsContextsGetCall
Get: Retrieves the specified context.
func (*ProjectsAgentSessionsContextsService) List ¶
func (r *ProjectsAgentSessionsContextsService) List(parent string) *ProjectsAgentSessionsContextsListCall
List: Returns the list of all contexts in the specified session.
func (*ProjectsAgentSessionsContextsService) Patch ¶
func (r *ProjectsAgentSessionsContextsService) Patch(nameid string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsAgentSessionsContextsPatchCall
Patch: Updates the specified context.
type ProjectsAgentSessionsDeleteContextsCall ¶
type ProjectsAgentSessionsDeleteContextsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentSessionsDeleteContextsCall) Context ¶
func (c *ProjectsAgentSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsAgentSessionsDeleteContextsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentSessionsDeleteContextsCall) Do ¶
func (c *ProjectsAgentSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
Do executes the "dialogflow.projects.agent.sessions.deleteContexts" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentSessionsDeleteContextsCall) Fields ¶
func (c *ProjectsAgentSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsDeleteContextsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentSessionsDeleteContextsCall) Header ¶
func (c *ProjectsAgentSessionsDeleteContextsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentSessionsDetectIntentCall ¶
type ProjectsAgentSessionsDetectIntentCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentSessionsDetectIntentCall) Context ¶
func (c *ProjectsAgentSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsAgentSessionsDetectIntentCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentSessionsDetectIntentCall) Do ¶
func (c *ProjectsAgentSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2DetectIntentResponse, error)
Do executes the "dialogflow.projects.agent.sessions.detectIntent" call. Exactly one of *GoogleCloudDialogflowV2DetectIntentResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2DetectIntentResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentSessionsDetectIntentCall) Fields ¶
func (c *ProjectsAgentSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsDetectIntentCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentSessionsDetectIntentCall) Header ¶
func (c *ProjectsAgentSessionsDetectIntentCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentSessionsEntityTypesCreateCall ¶
type ProjectsAgentSessionsEntityTypesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentSessionsEntityTypesCreateCall) Context ¶
func (c *ProjectsAgentSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentSessionsEntityTypesCreateCall) Do ¶
func (c *ProjectsAgentSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error)
Do executes the "dialogflow.projects.agent.sessions.entityTypes.create" call. Exactly one of *GoogleCloudDialogflowV2SessionEntityType or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2SessionEntityType.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentSessionsEntityTypesCreateCall) Fields ¶
func (c *ProjectsAgentSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentSessionsEntityTypesCreateCall) Header ¶
func (c *ProjectsAgentSessionsEntityTypesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentSessionsEntityTypesDeleteCall ¶
type ProjectsAgentSessionsEntityTypesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentSessionsEntityTypesDeleteCall) Context ¶
func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentSessionsEntityTypesDeleteCall) Do ¶
func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
Do executes the "dialogflow.projects.agent.sessions.entityTypes.delete" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentSessionsEntityTypesDeleteCall) Fields ¶
func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentSessionsEntityTypesDeleteCall) Header ¶
func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentSessionsEntityTypesGetCall ¶
type ProjectsAgentSessionsEntityTypesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentSessionsEntityTypesGetCall) Context ¶
func (c *ProjectsAgentSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentSessionsEntityTypesGetCall) Do ¶
func (c *ProjectsAgentSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error)
Do executes the "dialogflow.projects.agent.sessions.entityTypes.get" call. Exactly one of *GoogleCloudDialogflowV2SessionEntityType or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2SessionEntityType.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentSessionsEntityTypesGetCall) Fields ¶
func (c *ProjectsAgentSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentSessionsEntityTypesGetCall) Header ¶
func (c *ProjectsAgentSessionsEntityTypesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentSessionsEntityTypesGetCall) IfNoneMatch ¶
func (c *ProjectsAgentSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsEntityTypesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsAgentSessionsEntityTypesListCall ¶
type ProjectsAgentSessionsEntityTypesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentSessionsEntityTypesListCall) Context ¶
func (c *ProjectsAgentSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentSessionsEntityTypesListCall) Do ¶
func (c *ProjectsAgentSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListSessionEntityTypesResponse, error)
Do executes the "dialogflow.projects.agent.sessions.entityTypes.list" call. Exactly one of *GoogleCloudDialogflowV2ListSessionEntityTypesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2ListSessionEntityTypesResponse.ServerResponse. Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentSessionsEntityTypesListCall) Fields ¶
func (c *ProjectsAgentSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentSessionsEntityTypesListCall) Header ¶
func (c *ProjectsAgentSessionsEntityTypesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentSessionsEntityTypesListCall) IfNoneMatch ¶
func (c *ProjectsAgentSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsEntityTypesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsAgentSessionsEntityTypesListCall) PageSize ¶
func (c *ProjectsAgentSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentSessionsEntityTypesListCall
PageSize sets the optional parameter "pageSize": The maximum number of items to return in a single page. By default 100 and at most 1000.
func (*ProjectsAgentSessionsEntityTypesListCall) PageToken ¶
func (c *ProjectsAgentSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentSessionsEntityTypesListCall
PageToken sets the optional parameter "pageToken": The next_page_token value returned from a previous list request.
func (*ProjectsAgentSessionsEntityTypesListCall) Pages ¶
func (c *ProjectsAgentSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListSessionEntityTypesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsAgentSessionsEntityTypesPatchCall ¶
type ProjectsAgentSessionsEntityTypesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentSessionsEntityTypesPatchCall) Context ¶
func (c *ProjectsAgentSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentSessionsEntityTypesPatchCall) Do ¶
func (c *ProjectsAgentSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error)
Do executes the "dialogflow.projects.agent.sessions.entityTypes.patch" call. Exactly one of *GoogleCloudDialogflowV2SessionEntityType or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2SessionEntityType.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentSessionsEntityTypesPatchCall) Fields ¶
func (c *ProjectsAgentSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentSessionsEntityTypesPatchCall) Header ¶
func (c *ProjectsAgentSessionsEntityTypesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentSessionsEntityTypesPatchCall) UpdateMask ¶
func (c *ProjectsAgentSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentSessionsEntityTypesPatchCall
UpdateMask sets the optional parameter "updateMask": The mask to control which fields get updated.
type ProjectsAgentSessionsEntityTypesService ¶
type ProjectsAgentSessionsEntityTypesService struct {
// contains filtered or unexported fields
}
func NewProjectsAgentSessionsEntityTypesService ¶
func NewProjectsAgentSessionsEntityTypesService(s *Service) *ProjectsAgentSessionsEntityTypesService
func (*ProjectsAgentSessionsEntityTypesService) Create ¶
func (r *ProjectsAgentSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsAgentSessionsEntityTypesCreateCall
Create: Creates a session entity type. If the specified session entity type already exists, overrides the session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.
func (*ProjectsAgentSessionsEntityTypesService) Delete ¶
func (r *ProjectsAgentSessionsEntityTypesService) Delete(name string) *ProjectsAgentSessionsEntityTypesDeleteCall
Delete: Deletes the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.
func (*ProjectsAgentSessionsEntityTypesService) Get ¶
func (r *ProjectsAgentSessionsEntityTypesService) Get(name string) *ProjectsAgentSessionsEntityTypesGetCall
Get: Retrieves the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.
func (*ProjectsAgentSessionsEntityTypesService) List ¶
func (r *ProjectsAgentSessionsEntityTypesService) List(parent string) *ProjectsAgentSessionsEntityTypesListCall
List: Returns the list of all session entity types in the specified session. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.
func (*ProjectsAgentSessionsEntityTypesService) Patch ¶
func (r *ProjectsAgentSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsAgentSessionsEntityTypesPatchCall
Patch: Updates the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.
type ProjectsAgentSessionsService ¶
type ProjectsAgentSessionsService struct { Contexts *ProjectsAgentSessionsContextsService EntityTypes *ProjectsAgentSessionsEntityTypesService // contains filtered or unexported fields }
func NewProjectsAgentSessionsService ¶
func NewProjectsAgentSessionsService(s *Service) *ProjectsAgentSessionsService
func (*ProjectsAgentSessionsService) DeleteContexts ¶
func (r *ProjectsAgentSessionsService) DeleteContexts(parent string) *ProjectsAgentSessionsDeleteContextsCall
DeleteContexts: Deletes all active contexts in the specified session.
func (*ProjectsAgentSessionsService) DetectIntent ¶
func (r *ProjectsAgentSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2detectintentrequest *GoogleCloudDialogflowV2DetectIntentRequest) *ProjectsAgentSessionsDetectIntentCall
DetectIntent: Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries.
type ProjectsAgentTrainCall ¶
type ProjectsAgentTrainCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentTrainCall) Context ¶
func (c *ProjectsAgentTrainCall) Context(ctx context.Context) *ProjectsAgentTrainCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentTrainCall) Do ¶
func (c *ProjectsAgentTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "dialogflow.projects.agent.train" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentTrainCall) Fields ¶
func (c *ProjectsAgentTrainCall) Fields(s ...googleapi.Field) *ProjectsAgentTrainCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentTrainCall) Header ¶
func (c *ProjectsAgentTrainCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsAgentUpdateFulfillmentCall ¶ added in v0.18.0
type ProjectsAgentUpdateFulfillmentCall struct {
// contains filtered or unexported fields
}
func (*ProjectsAgentUpdateFulfillmentCall) Context ¶ added in v0.18.0
func (c *ProjectsAgentUpdateFulfillmentCall) Context(ctx context.Context) *ProjectsAgentUpdateFulfillmentCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsAgentUpdateFulfillmentCall) Do ¶ added in v0.18.0
func (c *ProjectsAgentUpdateFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Fulfillment, error)
Do executes the "dialogflow.projects.agent.updateFulfillment" call. Exactly one of *GoogleCloudDialogflowV2Fulfillment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2Fulfillment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsAgentUpdateFulfillmentCall) Fields ¶ added in v0.18.0
func (c *ProjectsAgentUpdateFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsAgentUpdateFulfillmentCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsAgentUpdateFulfillmentCall) Header ¶ added in v0.18.0
func (c *ProjectsAgentUpdateFulfillmentCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsAgentUpdateFulfillmentCall) UpdateMask ¶ added in v0.18.0
func (c *ProjectsAgentUpdateFulfillmentCall) UpdateMask(updateMask string) *ProjectsAgentUpdateFulfillmentCall
UpdateMask sets the optional parameter "updateMask": Required. The mask to control which fields get updated. If the mask is not present, all fields will be updated.
type ProjectsDeleteAgentCall ¶ added in v0.7.0
type ProjectsDeleteAgentCall struct {
// contains filtered or unexported fields
}
func (*ProjectsDeleteAgentCall) Context ¶ added in v0.7.0
func (c *ProjectsDeleteAgentCall) Context(ctx context.Context) *ProjectsDeleteAgentCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsDeleteAgentCall) Do ¶ added in v0.7.0
func (c *ProjectsDeleteAgentCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
Do executes the "dialogflow.projects.deleteAgent" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsDeleteAgentCall) Fields ¶ added in v0.7.0
func (c *ProjectsDeleteAgentCall) Fields(s ...googleapi.Field) *ProjectsDeleteAgentCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsDeleteAgentCall) Header ¶ added in v0.7.0
func (c *ProjectsDeleteAgentCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsGetAgentCall ¶
type ProjectsGetAgentCall struct {
// contains filtered or unexported fields
}
func (*ProjectsGetAgentCall) Context ¶
func (c *ProjectsGetAgentCall) Context(ctx context.Context) *ProjectsGetAgentCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsGetAgentCall) Do ¶
func (c *ProjectsGetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Agent, error)
Do executes the "dialogflow.projects.getAgent" call. Exactly one of *GoogleCloudDialogflowV2Agent or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2Agent.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsGetAgentCall) Fields ¶
func (c *ProjectsGetAgentCall) Fields(s ...googleapi.Field) *ProjectsGetAgentCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsGetAgentCall) Header ¶
func (c *ProjectsGetAgentCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsGetAgentCall) IfNoneMatch ¶
func (c *ProjectsGetAgentCall) IfNoneMatch(entityTag string) *ProjectsGetAgentCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsOperationsCancelCall ¶ added in v0.11.0
type ProjectsLocationsOperationsCancelCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsCancelCall) Context ¶ added in v0.11.0
func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsCancelCall) Do ¶ added in v0.11.0
func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
Do executes the "dialogflow.projects.locations.operations.cancel" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsCancelCall) Fields ¶ added in v0.11.0
func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsCancelCall) Header ¶ added in v0.11.0
func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsOperationsGetCall ¶ added in v0.10.0
type ProjectsLocationsOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsGetCall) Context ¶ added in v0.10.0
func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsGetCall) Do ¶ added in v0.10.0
func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "dialogflow.projects.locations.operations.get" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsGetCall) Fields ¶ added in v0.10.0
func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsGetCall) Header ¶ added in v0.10.0
func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsOperationsGetCall) IfNoneMatch ¶ added in v0.10.0
func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsOperationsListCall ¶ added in v0.10.0
type ProjectsLocationsOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsListCall) Context ¶ added in v0.10.0
func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsListCall) Do ¶ added in v0.10.0
func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error)
Do executes the "dialogflow.projects.locations.operations.list" call. Exactly one of *GoogleLongrunningListOperationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsListCall) Fields ¶ added in v0.10.0
func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsListCall) Filter ¶ added in v0.10.0
func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*ProjectsLocationsOperationsListCall) Header ¶ added in v0.10.0
func (c *ProjectsLocationsOperationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsOperationsListCall) IfNoneMatch ¶ added in v0.10.0
func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsOperationsListCall) PageSize ¶ added in v0.10.0
func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list page size.
func (*ProjectsLocationsOperationsListCall) PageToken ¶ added in v0.10.0
func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list page token.
func (*ProjectsLocationsOperationsListCall) Pages ¶ added in v0.10.0
func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsOperationsService ¶ added in v0.10.0
type ProjectsLocationsOperationsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsOperationsService ¶ added in v0.10.0
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService
func (*ProjectsLocationsOperationsService) Cancel ¶ added in v0.11.0
func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
func (*ProjectsLocationsOperationsService) Get ¶ added in v0.10.0
func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
func (*ProjectsLocationsOperationsService) List ¶ added in v0.10.0
func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
type ProjectsLocationsService ¶ added in v0.10.0
type ProjectsLocationsService struct { Operations *ProjectsLocationsOperationsService // contains filtered or unexported fields }
func NewProjectsLocationsService ¶ added in v0.10.0
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
type ProjectsOperationsCancelCall ¶ added in v0.11.0
type ProjectsOperationsCancelCall struct {
// contains filtered or unexported fields
}
func (*ProjectsOperationsCancelCall) Context ¶ added in v0.11.0
func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsOperationsCancelCall) Do ¶ added in v0.11.0
func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
Do executes the "dialogflow.projects.operations.cancel" call. Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsOperationsCancelCall) Fields ¶ added in v0.11.0
func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsOperationsCancelCall) Header ¶ added in v0.11.0
func (c *ProjectsOperationsCancelCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsOperationsGetCall ¶
type ProjectsOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsOperationsGetCall) Context ¶
func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsOperationsGetCall) Do ¶
func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
Do executes the "dialogflow.projects.operations.get" call. Exactly one of *GoogleLongrunningOperation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningOperation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsOperationsGetCall) Fields ¶
func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsOperationsGetCall) Header ¶
func (c *ProjectsOperationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsOperationsGetCall) IfNoneMatch ¶
func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsOperationsListCall ¶ added in v0.8.0
type ProjectsOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsOperationsListCall) Context ¶ added in v0.8.0
func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsOperationsListCall) Do ¶ added in v0.8.0
func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error)
Do executes the "dialogflow.projects.operations.list" call. Exactly one of *GoogleLongrunningListOperationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsOperationsListCall) Fields ¶ added in v0.8.0
func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsOperationsListCall) Filter ¶ added in v0.8.0
func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*ProjectsOperationsListCall) Header ¶ added in v0.8.0
func (c *ProjectsOperationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsOperationsListCall) IfNoneMatch ¶ added in v0.8.0
func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsOperationsListCall) PageSize ¶ added in v0.8.0
func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list page size.
func (*ProjectsOperationsListCall) PageToken ¶ added in v0.8.0
func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list page token.
func (*ProjectsOperationsListCall) Pages ¶ added in v0.8.0
func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsOperationsService ¶
type ProjectsOperationsService struct {
// contains filtered or unexported fields
}
func NewProjectsOperationsService ¶
func NewProjectsOperationsService(s *Service) *ProjectsOperationsService
func (*ProjectsOperationsService) Cancel ¶ added in v0.11.0
func (r *ProjectsOperationsService) Cancel(name string) *ProjectsOperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
func (*ProjectsOperationsService) Get ¶
func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall
Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
func (*ProjectsOperationsService) List ¶ added in v0.8.0
func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall
List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
type ProjectsService ¶
type ProjectsService struct { Agent *ProjectsAgentService Locations *ProjectsLocationsService Operations *ProjectsOperationsService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
func (*ProjectsService) DeleteAgent ¶ added in v0.7.0
func (r *ProjectsService) DeleteAgent(parent string) *ProjectsDeleteAgentCall
DeleteAgent: Deletes the specified agent.
func (*ProjectsService) GetAgent ¶
func (r *ProjectsService) GetAgent(parent string) *ProjectsGetAgentCall
GetAgent: Retrieves the specified agent.
func (*ProjectsService) SetAgent ¶ added in v0.20.0
func (r *ProjectsService) SetAgent(parent string, googleclouddialogflowv2agent *GoogleCloudDialogflowV2Agent) *ProjectsSetAgentCall
SetAgent: Creates/updates the specified agent.
type ProjectsSetAgentCall ¶ added in v0.20.0
type ProjectsSetAgentCall struct {
// contains filtered or unexported fields
}
func (*ProjectsSetAgentCall) Context ¶ added in v0.20.0
func (c *ProjectsSetAgentCall) Context(ctx context.Context) *ProjectsSetAgentCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsSetAgentCall) Do ¶ added in v0.20.0
func (c *ProjectsSetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Agent, error)
Do executes the "dialogflow.projects.setAgent" call. Exactly one of *GoogleCloudDialogflowV2Agent or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleCloudDialogflowV2Agent.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsSetAgentCall) Fields ¶ added in v0.20.0
func (c *ProjectsSetAgentCall) Fields(s ...googleapi.Field) *ProjectsSetAgentCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsSetAgentCall) Header ¶ added in v0.20.0
func (c *ProjectsSetAgentCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsSetAgentCall) UpdateMask ¶ added in v0.20.0
func (c *ProjectsSetAgentCall) UpdateMask(updateMask string) *ProjectsSetAgentCall
UpdateMask sets the optional parameter "updateMask": The mask to control which fields get updated.
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Projects *ProjectsService // contains filtered or unexported fields }
func New
deprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func NewService ¶ added in v0.3.0
NewService creates a new Service.