Movatterモバイル変換


[0]ホーム

URL:


dialogflow

package
v0.257.0Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:18Imported by:0

Details

Repository

github.com/googleapis/google-api-go-client

Links

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/

Library status

These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.

When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/dialogflow/v2beta1"...ctx := context.Background()dialogflowService, err := dialogflow.NewService(ctx)

In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://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, usegoogle.golang.org/api/option.WithScopes:

dialogflowService, err := dialogflow.NewService(ctx, option.WithScopes(dialogflow.DialogflowScope))

To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/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 OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)dialogflowService, err := dialogflow.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

Seegoogle.golang.org/api/option.ClientOption for details on options.

Index

Constants

View Source
const (// See, edit, configure, and delete your Google Cloud data and see the email// address for your Google Account.CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"// View, manage and query your Dialogflow agentsDialogflowScope = "https://www.googleapis.com/auth/dialogflow")

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

typeGoogleCloudDialogflowCxV3AdvancedSettingsadded inv0.139.0

type GoogleCloudDialogflowCxV3AdvancedSettings struct {// AudioExportGcsDestination: If present, incoming audio is exported by// Dialogflow to the configured Google Cloud Storage destination. Exposed at// the following levels: - Agent level - Flow levelAudioExportGcsDestination *GoogleCloudDialogflowCxV3GcsDestination `json:"audioExportGcsDestination,omitempty"`// DtmfSettings: Settings for DTMF. Exposed at the following levels: - Agent// level - Flow level - Page level - Parameter level.DtmfSettings *GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings `json:"dtmfSettings,omitempty"`// LoggingSettings: Settings for logging. Settings for Dialogflow History,// Contact Center messages, StackDriver logs, and speech logging. Exposed at// the following levels: - Agent level.LoggingSettings *GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings `json:"loggingSettings,omitempty"`// SpeechSettings: Settings for speech to text detection. Exposed at the// following levels: - Agent level - Flow level - Page level - Parameter levelSpeechSettings *GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings `json:"speechSettings,omitempty"`// ForceSendFields is a list of field names (e.g. "AudioExportGcsDestination")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AudioExportGcsDestination") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3AdvancedSettings: Hierarchical advanced settingsfor agent/flow/page/fulfillment/parameter. Settings exposed at lower leveloverrides the settings exposed at higher level. Overriding occurs at thesub-setting level. For example, the playback_interruption_settings atfulfillment level only overrides the playback_interruption_settings at theagent level, leaving other settings at the agent level unchanged. DTMFsettings does not override each other. DTMF settings set at different levelsdefine DTMF detections running in parallel. Hierarchy:Agent->Flow->Page->Fulfillment/Parameter.

func (GoogleCloudDialogflowCxV3AdvancedSettings)MarshalJSONadded inv0.139.0

typeGoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettingsadded inv0.139.0

type GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings struct {// Enabled: If true, incoming audio is processed for DTMF (dual tone multi// frequency) events. For example, if the caller presses a button on their// telephone keypad and DTMF processing is enabled, Dialogflow will detect the// event (e.g. a "3" was pressed) in the incoming audio and pass the event to// the bot to drive business logic (e.g. when 3 is pressed, return the account// balance).Enabledbool `json:"enabled,omitempty"`// EndpointingTimeoutDuration: Endpoint timeout setting for matching dtmf input// to regex.EndpointingTimeoutDurationstring `json:"endpointingTimeoutDuration,omitempty"`// FinishDigit: The digit that terminates a DTMF digit sequence.FinishDigitstring `json:"finishDigit,omitempty"`// InterdigitTimeoutDuration: Interdigit timeout setting for matching dtmf// input to regex.InterdigitTimeoutDurationstring `json:"interdigitTimeoutDuration,omitempty"`// MaxDigits: Max length of DTMF digits.MaxDigitsint64 `json:"maxDigits,omitempty"`// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings: Define behaviors forDTMF (dual tone multi frequency).

func (GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings)MarshalJSONadded inv0.139.0

typeGoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettingsadded inv0.139.0

type GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings struct {// EnableConsentBasedRedaction: Enables consent-based end-user input redaction,// if true, a pre-defined session parameter// `$session.params.conversation-redaction` will be used to determine if the// utterance should be redacted.EnableConsentBasedRedactionbool `json:"enableConsentBasedRedaction,omitempty"`// EnableInteractionLogging: Enables DF Interaction logging.EnableInteractionLoggingbool `json:"enableInteractionLogging,omitempty"`// EnableStackdriverLogging: Enables Google Cloud Logging.EnableStackdriverLoggingbool `json:"enableStackdriverLogging,omitempty"`// ForceSendFields is a list of field names (e.g.// "EnableConsentBasedRedaction") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EnableConsentBasedRedaction") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings: Define behaviorson logging.

func (GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings)MarshalJSONadded inv0.139.0

typeGoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettingsadded inv0.170.0

type GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings struct {// EndpointerSensitivity: Sensitivity of the speech model that detects the end// of speech. Scale from 0 to 100.EndpointerSensitivityint64 `json:"endpointerSensitivity,omitempty"`// Models: Mapping from language to Speech-to-Text model. The mapped// Speech-to-Text model will be selected for requests from its corresponding// language. For more information, see Speech models// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).Models map[string]string `json:"models,omitempty"`// NoSpeechTimeout: Timeout before detecting no speech.NoSpeechTimeoutstring `json:"noSpeechTimeout,omitempty"`// UseTimeoutBasedEndpointing: Use timeout based endpointing, interpreting// endpointer sensitivity as seconds of timeout value.UseTimeoutBasedEndpointingbool `json:"useTimeoutBasedEndpointing,omitempty"`// ForceSendFields is a list of field names (e.g. "EndpointerSensitivity") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EndpointerSensitivity") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings: Define behaviors ofspeech to text detection.

func (GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings)MarshalJSONadded inv0.170.0

typeGoogleCloudDialogflowCxV3AudioInputadded inv0.37.0

type GoogleCloudDialogflowCxV3AudioInput struct {// Audio: The natural language speech audio to be processed. A single request// can contain up to 2 minutes of speech audio data. The transcribed text// cannot contain more than 256 bytes. For non-streaming audio detect intent,// both `config` and `audio` must be provided. For streaming audio detect// intent, `config` must be provided in the first request and `audio` must be// provided in all following requests.Audiostring `json:"audio,omitempty"`// Config: Required. Instructs the speech recognizer how to process the speech// audio.Config *GoogleCloudDialogflowCxV3InputAudioConfig `json:"config,omitempty"`// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Audio") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3AudioInput: Represents the natural speech audio tobe processed.

func (GoogleCloudDialogflowCxV3AudioInput)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3BargeInConfigadded inv0.152.0

type GoogleCloudDialogflowCxV3BargeInConfig struct {// NoBargeInDuration: Duration that is not eligible for barge-in at the// beginning of the input audio.NoBargeInDurationstring `json:"noBargeInDuration,omitempty"`// TotalDuration: Total duration for the playback at the beginning of the input// audio.TotalDurationstring `json:"totalDuration,omitempty"`// ForceSendFields is a list of field names (e.g. "NoBargeInDuration") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NoBargeInDuration") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3BargeInConfig: Configuration of the barge-inbehavior. Barge-in instructs the API to return a detected utterance at aproper time while the client is playing back the response audio from aprevious request. When the client sees the utterance, it should stop theplayback and immediately get ready for receiving the responses for thecurrent request. The barge-in handling requires the client to startstreaming audio input as soon as it starts playing back the audio from theprevious response. The playback is modeled into two phases: * No barge-inphase: which goes first and during which speech detection should not becarried out. * Barge-in phase: which follows the no barge-in phase andduring which the API starts speech detection and may inform the client thatan utterance has been detected. Note that no-speech event is not expected inthis phase. The client provides this configuration in terms of the durationsof those two phases. The durations are measured in terms of the audio lengthfrom the start of the input audio. No-speech event is a response withEND_OF_UTTERANCE without any transcript following up.

func (GoogleCloudDialogflowCxV3BargeInConfig)MarshalJSONadded inv0.152.0

typeGoogleCloudDialogflowCxV3BatchRunTestCasesMetadataadded inv0.37.0

type GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata struct {// Errors: The test errors.Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Errors") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata: Metadata returned forthe TestCases.BatchRunTestCases long running operation.

func (GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3BatchRunTestCasesResponseadded inv0.37.0

type GoogleCloudDialogflowCxV3BatchRunTestCasesResponse struct {// Results: The test case results. The detailed conversation turns are empty in// this response.Results []*GoogleCloudDialogflowCxV3TestCaseResult `json:"results,omitempty"`// ForceSendFields is a list of field names (e.g. "Results") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Results") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3BatchRunTestCasesResponse: The response message forTestCases.BatchRunTestCases.

func (GoogleCloudDialogflowCxV3BatchRunTestCasesResponse)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3ContinuousTestResultadded inv0.48.0

type GoogleCloudDialogflowCxV3ContinuousTestResult struct {// Name: The resource name for the continuous test result. Format:// `projects//locations//agents//environments//continuousTestResults/`.Namestring `json:"name,omitempty"`// Result: The result of this continuous test run, i.e. whether all the tests// in this continuous test run pass or not.//// Possible values://   "AGGREGATED_TEST_RESULT_UNSPECIFIED" - Not specified. Should never be// used.//   "PASSED" - All the tests passed.//   "FAILED" - At least one test did not pass.Resultstring `json:"result,omitempty"`// RunTime: Time when the continuous testing run starts.RunTimestring `json:"runTime,omitempty"`// TestCaseResults: A list of individual test case results names in this// continuous test run.TestCaseResults []string `json:"testCaseResults,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ContinuousTestResult: Represents a result fromrunning a test case in an agent environment.

func (GoogleCloudDialogflowCxV3ContinuousTestResult)MarshalJSONadded inv0.48.0

typeGoogleCloudDialogflowCxV3ConversationSignalsadded inv0.107.0

type GoogleCloudDialogflowCxV3ConversationSignals struct {// TurnSignals: Required. Turn signals for the current turn.TurnSignals *GoogleCloudDialogflowCxV3TurnSignals `json:"turnSignals,omitempty"`// ForceSendFields is a list of field names (e.g. "TurnSignals") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "TurnSignals") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ConversationSignals: This message is used to holdall the Conversation Signals data, which will be converted to JSON andexported to BigQuery.

func (GoogleCloudDialogflowCxV3ConversationSignals)MarshalJSONadded inv0.107.0

typeGoogleCloudDialogflowCxV3ConversationTurnadded inv0.37.0

type GoogleCloudDialogflowCxV3ConversationTurn struct {// UserInput: The user input.UserInput *GoogleCloudDialogflowCxV3ConversationTurnUserInput `json:"userInput,omitempty"`// VirtualAgentOutput: The virtual agent output.VirtualAgentOutput *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`// ForceSendFields is a list of field names (e.g. "UserInput") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "UserInput") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ConversationTurn: One interaction between a humanand virtual agent. The human provides some input and the virtual agentprovides a response.

func (GoogleCloudDialogflowCxV3ConversationTurn)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3ConversationTurnUserInputadded inv0.37.0

type GoogleCloudDialogflowCxV3ConversationTurnUserInput struct {// EnableSentimentAnalysis: Whether sentiment analysis is enabled.EnableSentimentAnalysisbool `json:"enableSentimentAnalysis,omitempty"`// InjectedParameters: Parameters that need to be injected into the// conversation during intent detection.InjectedParametersgoogleapi.RawMessage `json:"injectedParameters,omitempty"`// Input: Supports text input, event input, dtmf input in the test case.Input *GoogleCloudDialogflowCxV3QueryInput `json:"input,omitempty"`// IsWebhookEnabled: If webhooks should be allowed to trigger in response to// the user utterance. Often if parameters are injected, webhooks should not be// enabled.IsWebhookEnabledbool `json:"isWebhookEnabled,omitempty"`// ForceSendFields is a list of field names (e.g. "EnableSentimentAnalysis") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EnableSentimentAnalysis") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ConversationTurnUserInput: The input from the humanuser.

func (GoogleCloudDialogflowCxV3ConversationTurnUserInput)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutputadded inv0.37.0

type GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput struct {// CurrentPage: The Page on which the utterance was spoken. Only name and// displayName will be set.CurrentPage *GoogleCloudDialogflowCxV3Page `json:"currentPage,omitempty"`// DiagnosticInfo: Required. Input only. The diagnostic info output for the// turn. Required to calculate the testing coverage.DiagnosticInfogoogleapi.RawMessage `json:"diagnosticInfo,omitempty"`// Differences: Output only. If this is part of a result conversation turn, the// list of differences between the original run and the replay for this output,// if any.Differences []*GoogleCloudDialogflowCxV3TestRunDifference `json:"differences,omitempty"`// SessionParameters: The session parameters available to the bot at this// point.SessionParametersgoogleapi.RawMessage `json:"sessionParameters,omitempty"`// Status: Response error from the agent in the test result. If set, other// output is empty.Status *GoogleRpcStatus `json:"status,omitempty"`// TextResponses: The text responses from the agent for the turn.TextResponses []*GoogleCloudDialogflowCxV3ResponseMessageText `json:"textResponses,omitempty"`// TriggeredIntent: The Intent that triggered the response. Only name and// displayName will be set.TriggeredIntent *GoogleCloudDialogflowCxV3Intent `json:"triggeredIntent,omitempty"`// ForceSendFields is a list of field names (e.g. "CurrentPage") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput: The output fromthe virtual agent.

func (GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3CreateVersionOperationMetadataadded inv0.37.0

type GoogleCloudDialogflowCxV3CreateVersionOperationMetadata struct {// Version: Name of the created version. Format:// `projects//locations//agents//flows//versions/`.Versionstring `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "Version") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3CreateVersionOperationMetadata: Metadata associatedwith the long running operation for Versions.CreateVersion.

func (GoogleCloudDialogflowCxV3CreateVersionOperationMetadata)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3DataStoreConnectionadded inv0.139.0

type GoogleCloudDialogflowCxV3DataStoreConnection struct {// DataStore: The full name of the referenced data store. Formats:// `projects/{project}/locations/{location}/collections/{collection}/dataStores/// {data_store}`// `projects/{project}/locations/{location}/dataStores/{data_store}`DataStorestring `json:"dataStore,omitempty"`// DataStoreType: The type of the connected data store.//// Possible values://   "DATA_STORE_TYPE_UNSPECIFIED" - Not specified. This value indicates that// the data store type is not specified, so it will not be used during search.//   "PUBLIC_WEB" - A data store that contains public web content.//   "UNSTRUCTURED" - A data store that contains unstructured private data.//   "STRUCTURED" - A data store that contains structured data (for example// FAQ).DataStoreTypestring `json:"dataStoreType,omitempty"`// DocumentProcessingMode: The document processing mode for the data store// connection. Should only be set for PUBLIC_WEB and UNSTRUCTURED data stores.// If not set it is considered as DOCUMENTS, as this is the legacy mode.//// Possible values://   "DOCUMENT_PROCESSING_MODE_UNSPECIFIED" - Not specified. This should be set// for STRUCTURED type data stores. Due to legacy reasons this is considered as// DOCUMENTS for STRUCTURED and PUBLIC_WEB data stores.//   "DOCUMENTS" - Documents are processed as documents.//   "CHUNKS" - Documents are converted to chunks.DocumentProcessingModestring `json:"documentProcessingMode,omitempty"`// ForceSendFields is a list of field names (e.g. "DataStore") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DataStore") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3DataStoreConnection: A data store connection. Itrepresents a data store in Discovery Engine and the type of the contents itcontains.

func (GoogleCloudDialogflowCxV3DataStoreConnection)MarshalJSONadded inv0.139.0

typeGoogleCloudDialogflowCxV3DeployFlowMetadataadded inv0.58.0

type GoogleCloudDialogflowCxV3DeployFlowMetadata struct {// TestErrors: Errors of running deployment tests.TestErrors []*GoogleCloudDialogflowCxV3TestError `json:"testErrors,omitempty"`// ForceSendFields is a list of field names (e.g. "TestErrors") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "TestErrors") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3DeployFlowMetadata: Metadata returned for theEnvironments.DeployFlow long running operation.

func (GoogleCloudDialogflowCxV3DeployFlowMetadata)MarshalJSONadded inv0.58.0

typeGoogleCloudDialogflowCxV3DeployFlowResponseadded inv0.58.0

type GoogleCloudDialogflowCxV3DeployFlowResponse struct {// Deployment: The name of the flow version Deployment. Format:// `projects//locations//agents//environments//deployments/`.Deploymentstring `json:"deployment,omitempty"`// Environment: The updated environment where the flow is deployed.Environment *GoogleCloudDialogflowCxV3Environment `json:"environment,omitempty"`// ForceSendFields is a list of field names (e.g. "Deployment") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Deployment") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3DeployFlowResponse: The response message forEnvironments.DeployFlow.

func (GoogleCloudDialogflowCxV3DeployFlowResponse)MarshalJSONadded inv0.58.0

typeGoogleCloudDialogflowCxV3DtmfInputadded inv0.37.0

type GoogleCloudDialogflowCxV3DtmfInput struct {// Digits: The dtmf digits.Digitsstring `json:"digits,omitempty"`// FinishDigit: The finish digit (if any).FinishDigitstring `json:"finishDigit,omitempty"`// ForceSendFields is a list of field names (e.g. "Digits") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Digits") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3DtmfInput: Represents the input for dtmf event.

func (GoogleCloudDialogflowCxV3DtmfInput)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3Environmentadded inv0.58.0

type GoogleCloudDialogflowCxV3Environment struct {// Description: The human-readable description of the environment. The maximum// length is 500 characters. If exceeded, the request is rejected.Descriptionstring `json:"description,omitempty"`// DisplayName: Required. The human-readable name of the environment (unique in// an agent). Limit of 64 characters.DisplayNamestring `json:"displayName,omitempty"`// Name: The name of the environment. Format:// `projects//locations//agents//environments/`.Namestring `json:"name,omitempty"`// TestCasesConfig: The test cases config for continuous tests of this// environment.TestCasesConfig *GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig `json:"testCasesConfig,omitempty"`// UpdateTime: Output only. Update time of this environment.UpdateTimestring `json:"updateTime,omitempty"`// VersionConfigs: A list of configurations for flow versions. You should// include version configs for all flows that are reachable from `Start Flow`// in the agent. Otherwise, an error will be returned.VersionConfigs []*GoogleCloudDialogflowCxV3EnvironmentVersionConfig `json:"versionConfigs,omitempty"`// WebhookConfig: The webhook configuration for this environment.WebhookConfig *GoogleCloudDialogflowCxV3EnvironmentWebhookConfig `json:"webhookConfig,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3Environment: Represents an environment for anagent. You can create multiple versions of your agent and publish them toseparate environments. When you edit an agent, you are editing the draftagent. At any point, you can save the draft agent as an agent version, whichis an immutable snapshot of your agent. When you save the draft agent, it ispublished to the default environment. When you create agent versions, youcan publish them to custom environments. You can create a variety of customenvironments for testing, development, production, etc.

func (GoogleCloudDialogflowCxV3Environment)MarshalJSONadded inv0.58.0

typeGoogleCloudDialogflowCxV3EnvironmentTestCasesConfigadded inv0.58.0

type GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig struct {// EnableContinuousRun: Whether to run test cases in TestCasesConfig.test_cases// periodically. Default false. If set to true, run once a day.EnableContinuousRunbool `json:"enableContinuousRun,omitempty"`// EnablePredeploymentRun: Whether to run test cases in// TestCasesConfig.test_cases before deploying a flow version to the// environment. Default false.EnablePredeploymentRunbool `json:"enablePredeploymentRun,omitempty"`// TestCases: A list of test case names to run. They should be under the same// agent. Format of each test case name:// `projects//locations//agents//testCases/`TestCases []string `json:"testCases,omitempty"`// ForceSendFields is a list of field names (e.g. "EnableContinuousRun") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EnableContinuousRun") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig: The configuration forcontinuous tests.

func (GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig)MarshalJSONadded inv0.58.0

typeGoogleCloudDialogflowCxV3EnvironmentVersionConfigadded inv0.58.0

type GoogleCloudDialogflowCxV3EnvironmentVersionConfig struct {// Version: Required. Flow, playbook and tool versions are supported. Format// for flow version: projects//locations//agents//flows//versions/. Format for// playbook version: projects//locations//agents//playbooks//versions/. Format// for tool version: projects//locations//agents//tools//versions/.Versionstring `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "Version") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3EnvironmentVersionConfig: Configuration for theversion.

func (GoogleCloudDialogflowCxV3EnvironmentVersionConfig)MarshalJSONadded inv0.58.0

typeGoogleCloudDialogflowCxV3EnvironmentWebhookConfigadded inv0.82.0

type GoogleCloudDialogflowCxV3EnvironmentWebhookConfig struct {// WebhookOverrides: The list of webhooks to override for the agent// environment. The webhook must exist in the agent. You can override fields in// `generic_web_service` and `service_directory`.WebhookOverrides []*GoogleCloudDialogflowCxV3Webhook `json:"webhookOverrides,omitempty"`// ForceSendFields is a list of field names (e.g. "WebhookOverrides") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "WebhookOverrides") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3EnvironmentWebhookConfig: Configuration forwebhooks.

func (GoogleCloudDialogflowCxV3EnvironmentWebhookConfig)MarshalJSONadded inv0.82.0

typeGoogleCloudDialogflowCxV3EventHandleradded inv0.37.0

type GoogleCloudDialogflowCxV3EventHandler struct {// Event: Required. The name of the event to handle.Eventstring `json:"event,omitempty"`// Name: Output only. The unique identifier of this event handler.Namestring `json:"name,omitempty"`// TargetFlow: The target flow to transition to. Format:// `projects//locations//agents//flows/`.TargetFlowstring `json:"targetFlow,omitempty"`// TargetPage: The target page to transition to. Format:// `projects//locations//agents//flows//pages/`.TargetPagestring `json:"targetPage,omitempty"`// TargetPlaybook: The target playbook to transition to. Format:// `projects//locations//agents//playbooks/`.TargetPlaybookstring `json:"targetPlaybook,omitempty"`// TriggerFulfillment: The fulfillment to call when the event occurs. Handling// webhook errors with a fulfillment enabled with webhook could cause infinite// loop. It is invalid to specify such fulfillment for a handler handling// webhooks.TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`// ForceSendFields is a list of field names (e.g. "Event") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Event") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3EventHandler: An event handler specifies an eventthat can be handled during a session. When the specified event happens, thefollowing actions are taken in order: * If there is a `trigger_fulfillment`associated with the event, it will be called. * If there is a `target_page`associated with the event, the session will transition into the specifiedpage. * If there is a `target_flow` associated with the event, the sessionwill transition into the specified flow.

func (GoogleCloudDialogflowCxV3EventHandler)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3EventInputadded inv0.37.0

type GoogleCloudDialogflowCxV3EventInput struct {// Event: Name of the event.Eventstring `json:"event,omitempty"`// ForceSendFields is a list of field names (e.g. "Event") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Event") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3EventInput: Represents the event to trigger.

func (GoogleCloudDialogflowCxV3EventInput)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3ExportAgentResponseadded inv0.37.0

type GoogleCloudDialogflowCxV3ExportAgentResponse struct {// AgentContent: Uncompressed raw byte content for agent. This field is// populated if none of `agent_uri` and `git_destination` are specified in// ExportAgentRequest.AgentContentstring `json:"agentContent,omitempty"`// AgentUri: The URI to a file containing the exported agent. This field is// populated if `agent_uri` is specified in ExportAgentRequest.AgentUristring `json:"agentUri,omitempty"`// CommitSha: Commit SHA of the git push. This field is populated if// `git_destination` is specified in ExportAgentRequest.CommitShastring `json:"commitSha,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentContent") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ExportAgentResponse: The response message forAgents.ExportAgent.

func (GoogleCloudDialogflowCxV3ExportAgentResponse)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3ExportEntityTypesMetadataadded inv0.164.0

type GoogleCloudDialogflowCxV3ExportEntityTypesMetadata struct {}

GoogleCloudDialogflowCxV3ExportEntityTypesMetadata: Metadata returned forthe EntityTypes.ExportEntityTypes long running operation.

typeGoogleCloudDialogflowCxV3ExportEntityTypesResponseadded inv0.164.0

type GoogleCloudDialogflowCxV3ExportEntityTypesResponse struct {// EntityTypesContent: Uncompressed byte content for entity types. This field// is populated only if `entity_types_content_inline` is set to true in// ExportEntityTypesRequest.EntityTypesContent *GoogleCloudDialogflowCxV3InlineDestination `json:"entityTypesContent,omitempty"`// EntityTypesUri: The URI to a file containing the exported entity types. This// field is populated only if `entity_types_uri` is specified in// ExportEntityTypesRequest.EntityTypesUristring `json:"entityTypesUri,omitempty"`// ForceSendFields is a list of field names (e.g. "EntityTypesContent") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EntityTypesContent") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ExportEntityTypesResponse: The response message forEntityTypes.ExportEntityTypes.

func (GoogleCloudDialogflowCxV3ExportEntityTypesResponse)MarshalJSONadded inv0.164.0

typeGoogleCloudDialogflowCxV3ExportFlowResponseadded inv0.46.0

type GoogleCloudDialogflowCxV3ExportFlowResponse struct {// FlowContent: Uncompressed raw byte content for flow.FlowContentstring `json:"flowContent,omitempty"`// FlowUri: The URI to a file containing the exported flow. This field is// populated only if `flow_uri` is specified in ExportFlowRequest.FlowUristring `json:"flowUri,omitempty"`// ForceSendFields is a list of field names (e.g. "FlowContent") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FlowContent") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ExportFlowResponse: The response message forFlows.ExportFlow.

func (GoogleCloudDialogflowCxV3ExportFlowResponse)MarshalJSONadded inv0.46.0

typeGoogleCloudDialogflowCxV3ExportIntentsMetadataadded inv0.143.0

type GoogleCloudDialogflowCxV3ExportIntentsMetadata struct {}

GoogleCloudDialogflowCxV3ExportIntentsMetadata: Metadata returned for theIntents.ExportIntents long running operation.

typeGoogleCloudDialogflowCxV3ExportIntentsResponseadded inv0.143.0

type GoogleCloudDialogflowCxV3ExportIntentsResponse struct {// IntentsContent: Uncompressed byte content for intents. This field is// populated only if `intents_content_inline` is set to true in// ExportIntentsRequest.IntentsContent *GoogleCloudDialogflowCxV3InlineDestination `json:"intentsContent,omitempty"`// IntentsUri: The URI to a file containing the exported intents. This field is// populated only if `intents_uri` is specified in ExportIntentsRequest.IntentsUristring `json:"intentsUri,omitempty"`// ForceSendFields is a list of field names (e.g. "IntentsContent") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IntentsContent") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ExportIntentsResponse: The response message forIntents.ExportIntents.

func (GoogleCloudDialogflowCxV3ExportIntentsResponse)MarshalJSONadded inv0.143.0

typeGoogleCloudDialogflowCxV3ExportTestCasesMetadataadded inv0.37.0

type GoogleCloudDialogflowCxV3ExportTestCasesMetadata struct {}

GoogleCloudDialogflowCxV3ExportTestCasesMetadata: Metadata returned for theTestCases.ExportTestCases long running operation. This message currently hasno fields.

typeGoogleCloudDialogflowCxV3ExportTestCasesResponseadded inv0.37.0

type GoogleCloudDialogflowCxV3ExportTestCasesResponse struct {// Content: Uncompressed raw byte content for test cases.Contentstring `json:"content,omitempty"`// GcsUri: The URI to a file containing the exported test cases. This field is// populated only if `gcs_uri` is specified in ExportTestCasesRequest.GcsUristring `json:"gcsUri,omitempty"`// ForceSendFields is a list of field names (e.g. "Content") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ExportTestCasesResponse: The response message forTestCases.ExportTestCases.

func (GoogleCloudDialogflowCxV3ExportTestCasesResponse)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3Formadded inv0.37.0

type GoogleCloudDialogflowCxV3Form struct {// Parameters: Parameters to collect from the user.Parameters []*GoogleCloudDialogflowCxV3FormParameter `json:"parameters,omitempty"`// ForceSendFields is a list of field names (e.g. "Parameters") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3Form: A form is a data model that groups relatedparameters that can be collected from the user. The process in which theagent prompts the user and collects parameter values from the user is calledform filling. A form can be added to a page. When form filling is done, thefilled parameters will be written to the session.

func (GoogleCloudDialogflowCxV3Form)MarshalJSONadded inv0.37.0

func (sGoogleCloudDialogflowCxV3Form) MarshalJSON() ([]byte,error)

typeGoogleCloudDialogflowCxV3FormParameteradded inv0.37.0

type GoogleCloudDialogflowCxV3FormParameter struct {// AdvancedSettings: Hierarchical advanced settings for this parameter. The// settings exposed at the lower level overrides the settings exposed at the// higher level.AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`// DefaultValue: The default value of an optional parameter. If the parameter// is required, the default value will be ignored.DefaultValue interface{} `json:"defaultValue,omitempty"`// DisplayName: Required. The human-readable name of the parameter, unique// within the form.DisplayNamestring `json:"displayName,omitempty"`// EntityType: Required. The entity type of the parameter. Format:// `projects/-/locations/-/agents/-/entityTypes/` for system entity types (for// example, `projects/-/locations/-/agents/-/entityTypes/sys.date`), or// `projects//locations//agents//entityTypes/` for developer entity types.EntityTypestring `json:"entityType,omitempty"`// FillBehavior: Required. Defines fill behavior for the parameter.FillBehavior *GoogleCloudDialogflowCxV3FormParameterFillBehavior `json:"fillBehavior,omitempty"`// IsList: Indicates whether the parameter represents a list of values.IsListbool `json:"isList,omitempty"`// Redact: Indicates whether the parameter content should be redacted in log.// If redaction is enabled, the parameter content will be replaced by parameter// name during logging. Note: the parameter content is subject to redaction if// either parameter level redaction or entity type level redaction is enabled.Redactbool `json:"redact,omitempty"`// Required: 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.Requiredbool `json:"required,omitempty"`// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdvancedSettings") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3FormParameter: Represents a form parameter.

func (GoogleCloudDialogflowCxV3FormParameter)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3FormParameterFillBehavioradded inv0.37.0

type GoogleCloudDialogflowCxV3FormParameterFillBehavior struct {// InitialPromptFulfillment: Required. The fulfillment to provide the initial// prompt that the agent can present to the user in order to fill the// parameter.InitialPromptFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"initialPromptFulfillment,omitempty"`// RepromptEventHandlers: The handlers for parameter-level events, used to// provide reprompt for the parameter or transition to a different page/flow.// The supported events are: * `sys.no-match-`, where N can be from 1 to 6 *// `sys.no-match-default` * `sys.no-input-`, where N can be from 1 to 6 *// `sys.no-input-default` * `sys.invalid-parameter`// `initial_prompt_fulfillment` provides the first prompt for the parameter. If// the user's response does not fill the parameter, a no-match/no-input event// will be triggered, and the fulfillment associated with the// `sys.no-match-1`/`sys.no-input-1` handler (if defined) will be called to// provide a prompt. The `sys.no-match-2`/`sys.no-input-2` handler (if defined)// will respond to the next no-match/no-input event, and so on. A// `sys.no-match-default` or `sys.no-input-default` handler will be used to// handle all following no-match/no-input events after all numbered// no-match/no-input handlers for the parameter are consumed. A// `sys.invalid-parameter` handler can be defined to handle the case where the// parameter values have been `invalidated` by webhook. For example, if the// user's response fill the parameter, however the parameter was invalidated by// webhook, the fulfillment associated with the `sys.invalid-parameter` handler// (if defined) will be called to provide a prompt. If the event handler for// the corresponding event can't be found on the parameter,// `initial_prompt_fulfillment` will be re-prompted.RepromptEventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"repromptEventHandlers,omitempty"`// ForceSendFields is a list of field names (e.g. "InitialPromptFulfillment")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InitialPromptFulfillment") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3FormParameterFillBehavior: Configuration for howthe filling of a parameter should be handled.

func (GoogleCloudDialogflowCxV3FormParameterFillBehavior)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3Fulfillmentadded inv0.37.0

type GoogleCloudDialogflowCxV3Fulfillment struct {// AdvancedSettings: Hierarchical advanced settings for this fulfillment. The// settings exposed at the lower level overrides the settings exposed at the// higher level.AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`// ConditionalCases: Conditional cases for this fulfillment.ConditionalCases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"conditionalCases,omitempty"`// EnableGenerativeFallback: If the flag is true, the agent will utilize LLM to// generate a text response. If LLM generation fails, the defined responses in// the fulfillment will be respected. This flag is only useful for fulfillments// associated with no-match event handlers.EnableGenerativeFallbackbool `json:"enableGenerativeFallback,omitempty"`// Generators: A list of Generators to be called during this fulfillment.Generators []*GoogleCloudDialogflowCxV3FulfillmentGeneratorSettings `json:"generators,omitempty"`// Messages: The list of rich message responses to present to the user.Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`// ReturnPartialResponses: Whether Dialogflow should return currently queued// fulfillment response messages in streaming APIs. If a webhook is specified,// it happens before Dialogflow invokes webhook. Warning: 1) This flag only// affects streaming API. Responses are still queued and returned once in// non-streaming API. 2) The flag can be enabled in any fulfillment but only// the first 3 partial responses will be returned. You may only want to apply// it to fulfillments that have slow webhooks.ReturnPartialResponsesbool `json:"returnPartialResponses,omitempty"`// SetParameterActions: Set parameter values before executing the webhook.SetParameterActions []*GoogleCloudDialogflowCxV3FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`// Tag: The value of this field will be populated in the WebhookRequest// `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is// called. The tag is typically used by the webhook service to identify which// fulfillment is being called, but it could be used for other purposes. This// field is required if `webhook` is specified.Tagstring `json:"tag,omitempty"`// Webhook: The webhook to call. Format:// `projects//locations//agents//webhooks/`.Webhookstring `json:"webhook,omitempty"`// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdvancedSettings") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3Fulfillment: A fulfillment can do one or more ofthe following actions at the same time: * Generate rich message responses. *Set parameter values. * Call the webhook. Fulfillments can be called atvarious stages in the Page or Form lifecycle. For example, when aDetectIntentRequest drives a session to enter a new page, the page's entryfulfillment can add a static response to the QueryResult in the returningDetectIntentResponse, call the webhook (for example, to load user data froma database), or both.

func (GoogleCloudDialogflowCxV3Fulfillment)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3FulfillmentConditionalCasesadded inv0.37.0

type GoogleCloudDialogflowCxV3FulfillmentConditionalCases struct {// Cases: A list of cascading if-else conditions.Cases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase `json:"cases,omitempty"`// ForceSendFields is a list of field names (e.g. "Cases") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Cases") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3FulfillmentConditionalCases: A list of cascadingif-else conditions. Cases are mutually exclusive. The first one with amatching condition is selected, all the rest ignored.

func (GoogleCloudDialogflowCxV3FulfillmentConditionalCases)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseadded inv0.37.0

type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase struct {// CaseContent: A list of case content.CaseContent []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`// Condition: The condition to activate and select this case. Empty means the// condition is always true. The condition is evaluated against form parameters// or session parameters. See the conditions reference// (https://cloud.google.com/dialogflow/cx/docs/reference/condition).Conditionstring `json:"condition,omitempty"`// ForceSendFields is a list of field names (e.g. "CaseContent") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CaseContent") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase: Each case has aBoolean condition. When it is evaluated to be True, the correspondingmessages will be selected and evaluated recursively.

func (GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContentadded inv0.37.0

type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent struct {// AdditionalCases: Additional cases to be evaluated.AdditionalCases *GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"additionalCases,omitempty"`// Message: Returned message.Message *GoogleCloudDialogflowCxV3ResponseMessage `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "AdditionalCases") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdditionalCases") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent: Thelist of messages or conditional cases to activate for this case.

func (GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3FulfillmentGeneratorSettingsadded inv0.239.0

type GoogleCloudDialogflowCxV3FulfillmentGeneratorSettings struct {// Generator: Required. The generator to call. Format:// `projects//locations//agents//generators/`.Generatorstring `json:"generator,omitempty"`// InputParameters: Map from placeholder parameter in the Generator to// corresponding session parameters. By default, Dialogflow uses the session// parameter with the same name to fill in the generator template. e.g. If// there is a placeholder parameter `city` in the Generator, Dialogflow default// to fill in the `$city` with `$session.params.city`. However, you may choose// to fill `$city` with `$session.params.desination-city`. - Map key: parameter// ID - Map value: session parameter nameInputParameters map[string]string `json:"inputParameters,omitempty"`// OutputParameter: Required. Output parameter which should contain the// generator response.OutputParameterstring `json:"outputParameter,omitempty"`// ForceSendFields is a list of field names (e.g. "Generator") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Generator") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3FulfillmentGeneratorSettings: Generator settingsused by the LLM to generate a text response.

func (GoogleCloudDialogflowCxV3FulfillmentGeneratorSettings)MarshalJSONadded inv0.239.0

typeGoogleCloudDialogflowCxV3FulfillmentSetParameterActionadded inv0.37.0

type GoogleCloudDialogflowCxV3FulfillmentSetParameterAction struct {// Parameter: Display name of the parameter.Parameterstring `json:"parameter,omitempty"`// Value: The new value of the parameter. A null value clears the parameter.Value interface{} `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Parameter") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Parameter") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3FulfillmentSetParameterAction: Setting a parametervalue.

func (GoogleCloudDialogflowCxV3FulfillmentSetParameterAction)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3GcsDestinationadded inv0.139.0

type GoogleCloudDialogflowCxV3GcsDestination struct {// Uri: Required. The Google Cloud Storage URI for the exported objects. A URI// is of the form: `gs://bucket/object-name-or-prefix` Whether a full object// name, or just a prefix, its usage depends on the Dialogflow operation.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3GcsDestination: Google Cloud Storage location for aDialogflow operation that writes or exports objects (e.g. exported agent ortranscripts) outside of Dialogflow.

func (GoogleCloudDialogflowCxV3GcsDestination)MarshalJSONadded inv0.139.0

typeGoogleCloudDialogflowCxV3ImportEntityTypesMetadataadded inv0.164.0

type GoogleCloudDialogflowCxV3ImportEntityTypesMetadata struct {}

GoogleCloudDialogflowCxV3ImportEntityTypesMetadata: Metadata returned forthe EntityTypes.ImportEntityTypes long running operation.

typeGoogleCloudDialogflowCxV3ImportEntityTypesResponseadded inv0.164.0

type GoogleCloudDialogflowCxV3ImportEntityTypesResponse struct {// ConflictingResources: Info which resources have conflicts when// REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest.ConflictingResources *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"`// EntityTypes: The unique identifier of the imported entity types. Format:// `projects//locations//agents//entity_types/`.EntityTypes []string `json:"entityTypes,omitempty"`// ForceSendFields is a list of field names (e.g. "ConflictingResources") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConflictingResources") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ImportEntityTypesResponse: The response message forEntityTypes.ImportEntityTypes.

func (GoogleCloudDialogflowCxV3ImportEntityTypesResponse)MarshalJSONadded inv0.164.0

typeGoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResourcesadded inv0.164.0

type GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources struct {// EntityDisplayNames: Display names of conflicting entities.EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`// EntityTypeDisplayNames: Display names of conflicting entity types.EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"`// ForceSendFields is a list of field names (e.g. "EntityDisplayNames") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EntityDisplayNames") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources:Conflicting resources detected during the import process. Only filled whenREPORT_CONFLICT is set in the request and there are conflicts in the displaynames.

func (GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources)MarshalJSONadded inv0.164.0

typeGoogleCloudDialogflowCxV3ImportFlowResponseadded inv0.46.0

type GoogleCloudDialogflowCxV3ImportFlowResponse struct {// Flow: The unique identifier of the new flow. Format:// `projects//locations//agents//flows/`.Flowstring `json:"flow,omitempty"`// ForceSendFields is a list of field names (e.g. "Flow") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Flow") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ImportFlowResponse: The response message forFlows.ImportFlow.

func (GoogleCloudDialogflowCxV3ImportFlowResponse)MarshalJSONadded inv0.46.0

typeGoogleCloudDialogflowCxV3ImportIntentsMetadataadded inv0.143.0

type GoogleCloudDialogflowCxV3ImportIntentsMetadata struct {}

GoogleCloudDialogflowCxV3ImportIntentsMetadata: Metadata returned for theIntents.ImportIntents long running operation.

typeGoogleCloudDialogflowCxV3ImportIntentsResponseadded inv0.143.0

type GoogleCloudDialogflowCxV3ImportIntentsResponse struct {// ConflictingResources: Info which resources have conflicts when// REPORT_CONFLICT merge_option is set in ImportIntentsRequest.ConflictingResources *GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources `json:"conflictingResources,omitempty"`// Intents: The unique identifier of the imported intents. Format:// `projects//locations//agents//intents/`.Intents []string `json:"intents,omitempty"`// ForceSendFields is a list of field names (e.g. "ConflictingResources") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConflictingResources") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ImportIntentsResponse: The response message forIntents.ImportIntents.

func (GoogleCloudDialogflowCxV3ImportIntentsResponse)MarshalJSONadded inv0.143.0

typeGoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResourcesadded inv0.143.0

type GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources struct {// EntityDisplayNames: Display names of conflicting entities.EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`// IntentDisplayNames: Display names of conflicting intents.IntentDisplayNames []string `json:"intentDisplayNames,omitempty"`// ForceSendFields is a list of field names (e.g. "EntityDisplayNames") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EntityDisplayNames") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources:Conflicting resources detected during the import process. Only filled whenREPORT_CONFLICT is set in the request and there are conflicts in the displaynames.

func (GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources)MarshalJSONadded inv0.143.0

typeGoogleCloudDialogflowCxV3ImportTestCasesMetadataadded inv0.37.0

type GoogleCloudDialogflowCxV3ImportTestCasesMetadata struct {// Errors: Errors for failed test cases.Errors []*GoogleCloudDialogflowCxV3TestCaseError `json:"errors,omitempty"`// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Errors") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ImportTestCasesMetadata: Metadata returned for theTestCases.ImportTestCases long running operation.

func (GoogleCloudDialogflowCxV3ImportTestCasesMetadata)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3ImportTestCasesResponseadded inv0.37.0

type GoogleCloudDialogflowCxV3ImportTestCasesResponse struct {// Names: The unique identifiers of the new test cases. Format:// `projects//locations//agents//testCases/`.Names []string `json:"names,omitempty"`// ForceSendFields is a list of field names (e.g. "Names") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Names") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ImportTestCasesResponse: The response message forTestCases.ImportTestCases.

func (GoogleCloudDialogflowCxV3ImportTestCasesResponse)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3InlineDestinationadded inv0.143.0

type GoogleCloudDialogflowCxV3InlineDestination struct {// Content: Output only. The uncompressed byte content for the objects. Only// populated in responses.Contentstring `json:"content,omitempty"`// ForceSendFields is a list of field names (e.g. "Content") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3InlineDestination: Inline destination for aDialogflow operation that writes or exports objects (e.g. intents) outsideof Dialogflow.

func (GoogleCloudDialogflowCxV3InlineDestination)MarshalJSONadded inv0.143.0

typeGoogleCloudDialogflowCxV3InputAudioConfigadded inv0.37.0

type GoogleCloudDialogflowCxV3InputAudioConfig 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). LINT: LEGACY_NAMES//   "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.//   "AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio samples// using G.711 PCMU/a-law.AudioEncodingstring `json:"audioEncoding,omitempty"`// BargeInConfig: Configuration of barge-in behavior during the streaming of// input audio.BargeInConfig *GoogleCloudDialogflowCxV3BargeInConfig `json:"bargeInConfig,omitempty"`// EnableWordInfo: Optional. 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.EnableWordInfobool `json:"enableWordInfo,omitempty"`// Model: Optional. Which Speech model to select for the given request. For// more information, see Speech models// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).Modelstring `json:"model,omitempty"`// ModelVariant: Optional. 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.//   "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-models)// 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-models)// describes which models have enhanced variants.ModelVariantstring `json:"modelVariant,omitempty"`// OptOutConformerModelMigration: If `true`, the request will opt out for STT// conformer model migration. This field will be deprecated once force// migration takes place in June 2024. Please refer to Dialogflow CX Speech// model migration// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-model-migration).OptOutConformerModelMigrationbool `json:"optOutConformerModelMigration,omitempty"`// PhraseHints: Optional. 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#phrase-hints) for more// details.PhraseHints []string `json:"phraseHints,omitempty"`// SampleRateHertz: 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.SampleRateHertzint64 `json:"sampleRateHertz,omitempty"`// SingleUtterance: Optional. 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.SingleUtterancebool `json:"singleUtterance,omitempty"`// ForceSendFields is a list of field names (e.g. "AudioEncoding") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3InputAudioConfig: Instructs the speech recognizeron how to process the audio content.

func (GoogleCloudDialogflowCxV3InputAudioConfig)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3Intentadded inv0.37.0

type GoogleCloudDialogflowCxV3Intent struct {// Description: Human readable description for better understanding an intent// like its scope, content, result etc. Maximum character limit: 140// characters.Descriptionstring `json:"description,omitempty"`// DisplayName: Required. The human-readable name of the intent, unique within// the agent.DisplayNamestring `json:"displayName,omitempty"`// IsFallback: Indicates whether this is a fallback intent. Currently only// default fallback intent is allowed in the agent, which is added upon agent// creation. Adding training phrases to fallback intent is useful in the case// of requests that are mistakenly matched, since training phrases assigned to// fallback intents act as negative examples that triggers no-match event.IsFallbackbool `json:"isFallback,omitempty"`// Labels: The key/value metadata to label an intent. Labels can contain// lowercase letters, digits and the symbols '-' and '_'. International// characters are allowed, including letters from unicase alphabets. Keys must// start with a letter. Keys and values can be no longer than 63 characters and// no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined// labels. Currently allowed Dialogflow defined labels include: * sys-head *// sys-contextual The above labels do not require value. "sys-head" means the// intent is a head intent. "sys.contextual" means the intent is a contextual// intent.Labels map[string]string `json:"labels,omitempty"`// Name: The unique identifier of the intent. Required for the// Intents.UpdateIntent method. Intents.CreateIntent populates the name// automatically. Format: `projects//locations//agents//intents/`.Namestring `json:"name,omitempty"`// Parameters: The collection of parameters associated with the intent.Parameters []*GoogleCloudDialogflowCxV3IntentParameter `json:"parameters,omitempty"`// Priority: 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.Priorityint64 `json:"priority,omitempty"`// TrainingPhrases: The collection of training phrases the agent is trained on// to identify the intent.TrainingPhrases []*GoogleCloudDialogflowCxV3IntentTrainingPhrase `json:"trainingPhrases,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3Intent: An intent represents a user's intent tointeract with a conversational agent. You can provide information for theDialogflow API to use to match user input to an intent by adding trainingphrases (i.e., examples of user input) to your intent.

func (GoogleCloudDialogflowCxV3Intent)MarshalJSONadded inv0.37.0

func (sGoogleCloudDialogflowCxV3Intent) MarshalJSON() ([]byte,error)

typeGoogleCloudDialogflowCxV3IntentInputadded inv0.37.0

type GoogleCloudDialogflowCxV3IntentInput struct {// Intent: Required. The unique identifier of the intent. Format:// `projects//locations//agents//intents/`.Intentstring `json:"intent,omitempty"`// ForceSendFields is a list of field names (e.g. "Intent") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Intent") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3IntentInput: Represents the intent to triggerprogrammatically rather than as a result of natural language processing.

func (GoogleCloudDialogflowCxV3IntentInput)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3IntentParameteradded inv0.37.0

type GoogleCloudDialogflowCxV3IntentParameter struct {// EntityType: Required. The entity type of the parameter. Format:// `projects/-/locations/-/agents/-/entityTypes/` for system entity types (for// example, `projects/-/locations/-/agents/-/entityTypes/sys.date`), or// `projects//locations//agents//entityTypes/` for developer entity types.EntityTypestring `json:"entityType,omitempty"`// Id: Required. The unique identifier of the parameter. This field is used by// training phrases to annotate their parts.Idstring `json:"id,omitempty"`// IsList: Indicates whether the parameter represents a list of values.IsListbool `json:"isList,omitempty"`// Redact: Indicates whether the parameter content should be redacted in log.// If redaction is enabled, the parameter content will be replaced by parameter// name during logging. Note: the parameter content is subject to redaction if// either parameter level redaction or entity type level redaction is enabled.Redactbool `json:"redact,omitempty"`// ForceSendFields is a list of field names (e.g. "EntityType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3IntentParameter: Represents an intent parameter.

func (GoogleCloudDialogflowCxV3IntentParameter)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3IntentTrainingPhraseadded inv0.37.0

type GoogleCloudDialogflowCxV3IntentTrainingPhrase struct {// Id: Output only. The unique identifier of the training phrase.Idstring `json:"id,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 `parameter_id` field is set.Parts []*GoogleCloudDialogflowCxV3IntentTrainingPhrasePart `json:"parts,omitempty"`// RepeatCount: Indicates how many times this example was added to the intent.RepeatCountint64 `json:"repeatCount,omitempty"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3IntentTrainingPhrase: Represents an example thatthe agent is trained on to identify the intent.

func (GoogleCloudDialogflowCxV3IntentTrainingPhrase)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3IntentTrainingPhrasePartadded inv0.37.0

type GoogleCloudDialogflowCxV3IntentTrainingPhrasePart struct {// ParameterId: The parameter used to annotate this part of the training// phrase. This field is required for annotated parts of the training phrase.ParameterIdstring `json:"parameterId,omitempty"`// Text: Required. The text for this part.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "ParameterId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ParameterId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3IntentTrainingPhrasePart: Represents a part of atraining phrase.

func (GoogleCloudDialogflowCxV3IntentTrainingPhrasePart)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3KnowledgeConnectorSettingsadded inv0.139.0

type GoogleCloudDialogflowCxV3KnowledgeConnectorSettings struct {// DataStoreConnections: Optional. List of related data store connections.DataStoreConnections []*GoogleCloudDialogflowCxV3DataStoreConnection `json:"dataStoreConnections,omitempty"`// Enabled: Whether Knowledge Connector is enabled or not.Enabledbool `json:"enabled,omitempty"`// TargetFlow: The target flow to transition to. Format:// `projects//locations//agents//flows/`.TargetFlowstring `json:"targetFlow,omitempty"`// TargetPage: The target page to transition to. Format:// `projects//locations//agents//flows//pages/`.TargetPagestring `json:"targetPage,omitempty"`// TriggerFulfillment: The fulfillment to be triggered. When the answers from// the Knowledge Connector are selected by Dialogflow, you can utitlize the// request scoped parameter `$request.knowledge.answers` (contains up to the 5// highest confidence answers) and `$request.knowledge.questions` (contains the// corresponding questions) to construct the fulfillment.TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`// ForceSendFields is a list of field names (e.g. "DataStoreConnections") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DataStoreConnections") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3KnowledgeConnectorSettings: The Knowledge Connectorsettings for this page or flow. This includes information such as theattached Knowledge Bases, and the way to execute fulfillment.

func (GoogleCloudDialogflowCxV3KnowledgeConnectorSettings)MarshalJSONadded inv0.139.0

typeGoogleCloudDialogflowCxV3LanguageInfoadded inv0.177.0

type GoogleCloudDialogflowCxV3LanguageInfo struct {// ConfidenceScore: The confidence score of the detected language between 0 and// 1.ConfidenceScorefloat64 `json:"confidenceScore,omitempty"`// InputLanguageCode: The language code specified in the original request.InputLanguageCodestring `json:"inputLanguageCode,omitempty"`// ResolvedLanguageCode: The language code detected for this request based on// the user conversation.ResolvedLanguageCodestring `json:"resolvedLanguageCode,omitempty"`// ForceSendFields is a list of field names (e.g. "ConfidenceScore") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConfidenceScore") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3LanguageInfo: Represents the language informationof the request.

func (GoogleCloudDialogflowCxV3LanguageInfo)MarshalJSONadded inv0.177.0

func (*GoogleCloudDialogflowCxV3LanguageInfo)UnmarshalJSONadded inv0.177.0

func (s *GoogleCloudDialogflowCxV3LanguageInfo) UnmarshalJSON(data []byte)error

typeGoogleCloudDialogflowCxV3Pageadded inv0.37.0

type GoogleCloudDialogflowCxV3Page struct {// AdvancedSettings: Hierarchical advanced settings for this page. The settings// exposed at the lower level overrides the settings exposed at the higher// level.AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`// Description: The description of the page. The maximum length is 500// characters.Descriptionstring `json:"description,omitempty"`// DisplayName: Required. The human-readable name of the page, unique within// the flow.DisplayNamestring `json:"displayName,omitempty"`// EntryFulfillment: The fulfillment to call when the session is entering the// page.EntryFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"entryFulfillment,omitempty"`// EventHandlers: Handlers associated with the page to handle events such as// webhook errors, no match or no input.EventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"eventHandlers,omitempty"`// Form: The form associated with the page, used for collecting parameters// relevant to the page.Form *GoogleCloudDialogflowCxV3Form `json:"form,omitempty"`// KnowledgeConnectorSettings: Optional. Knowledge connector configuration.KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`// Name: The unique identifier of the page. Required for the Pages.UpdatePage// method. Pages.CreatePage populates the name automatically. Format:// `projects//locations//agents//flows//pages/`.Namestring `json:"name,omitempty"`// TransitionRouteGroups: Ordered list of `TransitionRouteGroups` added to the// page. Transition route groups must be unique within a page. If the page// links both flow-level transition route groups and agent-level transition// route groups, the flow-level ones will have higher priority and will be put// before the agent-level ones. * If multiple transition routes within a page// scope refer to the same intent, then the precedence order is: page's// transition route -> page's transition route group -> flow's transition// routes. * If multiple transition route groups within a page contain the same// intent, then the first group in the ordered list takes precedence.// Format:`projects//locations//agents//flows//transitionRouteGroups/` or// `projects//locations//agents//transitionRouteGroups/` for agent-level// groups.TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`// TransitionRoutes: A list of transitions for the transition rules of this// page. They route the conversation to another page in the same flow, or// another flow. When we are in a certain page, the TransitionRoutes are// evaluated in the following order: * TransitionRoutes defined in the page// with intent specified. * TransitionRoutes defined in the transition route// groups with intent specified. * TransitionRoutes defined in flow with intent// specified. * TransitionRoutes defined in the transition route groups with// intent specified. * TransitionRoutes defined in the page with only condition// specified. * TransitionRoutes defined in the transition route groups with// only condition specified.TransitionRoutes []*GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoutes,omitempty"`// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdvancedSettings") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3Page: A Dialogflow CX conversation (session) can bedescribed and visualized as a state machine. The states of a CX session arerepresented by pages. For each flow, you define many pages, where yourcombined pages can handle a complete conversation on the topics the flow isdesigned for. At any given moment, exactly one page is the current page, thecurrent page is considered active, and the flow associated with that page isconsidered active. Every flow has a special start page. When a flowinitially becomes active, the start page page becomes the current page. Foreach conversational turn, the current page will either stay the same ortransition to another page. You configure each page to collect informationfrom the end-user that is relevant for the conversational state representedby the page. For more information, see the Page guide(https://cloud.google.com/dialogflow/cx/docs/concept/page).

func (GoogleCloudDialogflowCxV3Page)MarshalJSONadded inv0.37.0

func (sGoogleCloudDialogflowCxV3Page) MarshalJSON() ([]byte,error)

typeGoogleCloudDialogflowCxV3PageInfoadded inv0.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/`.CurrentPagestring `json:"currentPage,omitempty"`// DisplayName: Always present for WebhookRequest. Ignored for WebhookResponse.// The display name of the current page.DisplayNamestring `json:"displayName,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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3PageInfo: Represents page information communicatedto and from the webhook.

func (GoogleCloudDialogflowCxV3PageInfo)MarshalJSONadded inv0.34.0

func (sGoogleCloudDialogflowCxV3PageInfo) MarshalJSON() ([]byte,error)

typeGoogleCloudDialogflowCxV3PageInfoFormInfoadded inv0.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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3PageInfoFormInfo: Represents form information.

func (GoogleCloudDialogflowCxV3PageInfoFormInfo)MarshalJSONadded inv0.34.0

typeGoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfoadded inv0.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.DisplayNamestring `json:"displayName,omitempty"`// JustCollected: Optional for WebhookRequest. Ignored for WebhookResponse.// Indicates if the parameter value was just collected on the last conversation// turn.JustCollectedbool `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.Requiredbool `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.Statestring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo: Represents parameterinformation.

func (GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo)MarshalJSONadded inv0.34.0

typeGoogleCloudDialogflowCxV3QueryInputadded inv0.37.0

type GoogleCloudDialogflowCxV3QueryInput struct {// Audio: The natural language speech audio to be processed.Audio *GoogleCloudDialogflowCxV3AudioInput `json:"audio,omitempty"`// Dtmf: The DTMF event to be handled.Dtmf *GoogleCloudDialogflowCxV3DtmfInput `json:"dtmf,omitempty"`// Event: The event to be triggered.Event *GoogleCloudDialogflowCxV3EventInput `json:"event,omitempty"`// Intent: The intent to be triggered.Intent *GoogleCloudDialogflowCxV3IntentInput `json:"intent,omitempty"`// LanguageCode: Required. The language of the input. See Language Support// (https://cloud.google.com/dialogflow/cx/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.LanguageCodestring `json:"languageCode,omitempty"`// Text: The natural language text to be processed.Text *GoogleCloudDialogflowCxV3TextInput `json:"text,omitempty"`// ToolCallResult: The results of a tool executed by the client.ToolCallResult *GoogleCloudDialogflowCxV3ToolCallResult `json:"toolCallResult,omitempty"`// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Audio") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3QueryInput: Represents the query input. It cancontain one of: 1. A conversational query in the form of text. 2. An intentquery that specifies which intent to trigger. 3. Natural language speechaudio to be processed. 4. An event to be triggered. 5. DTMF digits to invokean intent and fill in parameter value. 6. The results of a tool executed bythe client.

func (GoogleCloudDialogflowCxV3QueryInput)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3ResponseMessageadded inv0.34.0

type GoogleCloudDialogflowCxV3ResponseMessage struct {// Channel: The channel which the response is associated with. Clients can// specify the channel via QueryParameters.channel, and only associated channel// response will be returned.Channelstring `json:"channel,omitempty"`// 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` 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"`// KnowledgeInfoCard: Represents info card for knowledge answers, to be better// rendered in Dialogflow Messenger.KnowledgeInfoCard *GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard `json:"knowledgeInfoCard,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.Payloadgoogleapi.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"`// ResponseType: Response type.//// Possible values://   "RESPONSE_TYPE_UNSPECIFIED" - Not specified.//   "ENTRY_PROMPT" - The response is from an entry prompt in the page.//   "PARAMETER_PROMPT" - The response is from form-filling prompt in the page.//   "HANDLER_PROMPT" - The response is from a transition route or an event// handler in the page or flow or transition route group.ResponseTypestring `json:"responseType,omitempty"`// TelephonyTransferCall: A signal that the client should transfer the phone// call connected to this agent to a third-party endpoint.TelephonyTransferCall *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`// Text: Returns a text response.Text *GoogleCloudDialogflowCxV3ResponseMessageText `json:"text,omitempty"`// ToolCall: Returns the definition of a tool call that should be executed by// the client.ToolCall *GoogleCloudDialogflowCxV3ToolCall `json:"toolCall,omitempty"`// ForceSendFields is a list of field names (e.g. "Channel") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Channel") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ResponseMessage: Represents a response message thatcan be returned by a conversational agent. Response messages are also usedfor output audio synthesis. The approach is as follows: * If at least oneOutputAudioText response is present, then all OutputAudioText responses arelinearly concatenated, and the result is used for output audio synthesis. *If the OutputAudioText responses are a mixture of text and SSML, then theconcatenated result is treated as SSML; otherwise, the result is treated aseither text or SSML as appropriate. The agent designer should ideally useeither text or SSML consistently throughout the bot design. * Otherwise, allText responses are linearly concatenated, and the result is used for outputaudio synthesis. This approach allows for more sophisticated user experiencescenarios, where the text displayed to the user may differ from what isheard.

func (GoogleCloudDialogflowCxV3ResponseMessage)MarshalJSONadded inv0.34.0

typeGoogleCloudDialogflowCxV3ResponseMessageConversationSuccessadded inv0.34.0

type GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess struct {// Metadata: Custom metadata. Dialogflow doesn't impose any structure on this.Metadatagoogleapi.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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess: Indicates thatthe conversation succeeded, i.e., the bot handled the issue that thecustomer talked to it about. Dialogflow only uses this to determine whichconversations should be counted as successful and doesn't process themetadata in this message in any way. Note that Dialogflow also considersconversations that get to the conversation end page as successful even ifthey don't return ConversationSuccess. You may set this, for example: * Inthe entry_fulfillment of a Page if entering the page indicates that theconversation succeeded. * In a webhook response when you determine that youhandled the customer issue.

func (GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess)MarshalJSONadded inv0.34.0

typeGoogleCloudDialogflowCxV3ResponseMessageEndInteractionadded inv0.34.0

type GoogleCloudDialogflowCxV3ResponseMessageEndInteraction struct {}

GoogleCloudDialogflowCxV3ResponseMessageEndInteraction: Indicates thatinteraction with the Dialogflow agent has ended. This message is generatedby Dialogflow only and not supposed to be defined by the user.

typeGoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCardadded inv0.139.0

type GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard struct {}

GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard: Represents infocard response. If the response contains generative knowledge prediction,Dialogflow will return a payload with Infobot Messenger compatible infocard. Otherwise, the info card response is skipped.

typeGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoffadded inv0.34.0

type GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff struct {// Metadata: Custom metadata for your handoff procedure. Dialogflow doesn't// impose any structure on this.Metadatagoogleapi.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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff: Indicates that theconversation should be handed off to a live agent. Dialogflow only uses thisto determine which conversations were handed off to a human agent formeasurement purposes. What else to do with this signal is up to you and yourhandoff procedures. You may set this, for example: * In theentry_fulfillment of a Page if entering the page indicates something wentextremely wrong in the conversation. * In a webhook response when youdetermine that the customer issue can only be handled by a human.

func (GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff)MarshalJSONadded inv0.34.0

typeGoogleCloudDialogflowCxV3ResponseMessageMixedAudioadded inv0.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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ResponseMessageMixedAudio: Represents an audiomessage that is composed of both segments synthesized from the Dialogflowagent prompts and ones hosted externally at the specified URIs. The externalURIs are specified via play_audio. This message is generated by Dialogflowonly and not supposed to be defined by the user.

func (GoogleCloudDialogflowCxV3ResponseMessageMixedAudio)MarshalJSONadded inv0.34.0

typeGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegmentadded inv0.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.AllowPlaybackInterruptionbool `json:"allowPlaybackInterruption,omitempty"`// Audio: Raw audio synthesized from the Dialogflow agent's response using the// output config specified in the request.Audiostring `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.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment: Represents onesegment of audio.

func (GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment)MarshalJSONadded inv0.34.0

typeGoogleCloudDialogflowCxV3ResponseMessageOutputAudioTextadded inv0.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.AllowPlaybackInterruptionbool `json:"allowPlaybackInterruption,omitempty"`// Ssml: The SSML text to be synthesized. For more information, see SSML// (/speech/text-to-speech/docs/ssml).Ssmlstring `json:"ssml,omitempty"`// Text: The raw text to be synthesized.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText: A text or ssmlresponse that is preferentially used for TTS output audio synthesis, asdescribed in the comment on the ResponseMessage message.

func (GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText)MarshalJSONadded inv0.34.0

typeGoogleCloudDialogflowCxV3ResponseMessagePlayAudioadded inv0.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.AllowPlaybackInterruptionbool `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.AudioUristring `json:"audioUri,omitempty"`// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ResponseMessagePlayAudio: Specifies an audio clipto be played by the client as part of the response.

func (GoogleCloudDialogflowCxV3ResponseMessagePlayAudio)MarshalJSONadded inv0.34.0

typeGoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCalladded inv0.62.0

type GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall struct {// PhoneNumber: Transfer the call to a phone number in E.164 format// (https://en.wikipedia.org/wiki/E.164).PhoneNumberstring `json:"phoneNumber,omitempty"`// ForceSendFields is a list of field names (e.g. "PhoneNumber") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall: Representsthe signal that telles the client to transfer the phone call connected tothe agent to a third-party endpoint.

func (GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall)MarshalJSONadded inv0.62.0

typeGoogleCloudDialogflowCxV3ResponseMessageTextadded inv0.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.AllowPlaybackInterruptionbool `json:"allowPlaybackInterruption,omitempty"`// Text: Required. A collection of text response variants. If multiple variants// are defined, only one text response variant is returned at runtime.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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ResponseMessageText: The text response message.

func (GoogleCloudDialogflowCxV3ResponseMessageText)MarshalJSONadded inv0.34.0

typeGoogleCloudDialogflowCxV3RunContinuousTestMetadataadded inv0.48.0

type GoogleCloudDialogflowCxV3RunContinuousTestMetadata struct {// Errors: The test errors.Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Errors") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3RunContinuousTestMetadata: Metadata returned forthe Environments.RunContinuousTest long running operation.

func (GoogleCloudDialogflowCxV3RunContinuousTestMetadata)MarshalJSONadded inv0.48.0

typeGoogleCloudDialogflowCxV3RunContinuousTestResponseadded inv0.48.0

type GoogleCloudDialogflowCxV3RunContinuousTestResponse struct {// ContinuousTestResult: The result for a continuous test run.ContinuousTestResult *GoogleCloudDialogflowCxV3ContinuousTestResult `json:"continuousTestResult,omitempty"`// ForceSendFields is a list of field names (e.g. "ContinuousTestResult") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContinuousTestResult") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3RunContinuousTestResponse: The response message forEnvironments.RunContinuousTest.

func (GoogleCloudDialogflowCxV3RunContinuousTestResponse)MarshalJSONadded inv0.48.0

typeGoogleCloudDialogflowCxV3RunTestCaseMetadataadded inv0.37.0

type GoogleCloudDialogflowCxV3RunTestCaseMetadata struct {}

GoogleCloudDialogflowCxV3RunTestCaseMetadata: Metadata returned for theTestCases.RunTestCase long running operation. This message currently has nofields.

typeGoogleCloudDialogflowCxV3RunTestCaseResponseadded inv0.37.0

type GoogleCloudDialogflowCxV3RunTestCaseResponse struct {// Result: The result.Result *GoogleCloudDialogflowCxV3TestCaseResult `json:"result,omitempty"`// ForceSendFields is a list of field names (e.g. "Result") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Result") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3RunTestCaseResponse: The response message forTestCases.RunTestCase.

func (GoogleCloudDialogflowCxV3RunTestCaseResponse)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3SessionInfoadded inv0.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.Parametersgoogleapi.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 session. Format: `projects//locations//agents//sessions/` or// `projects//locations//agents//environments//sessions/` if environment is// specified.Sessionstring `json:"session,omitempty"`// ForceSendFields is a list of field names (e.g. "Parameters") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3SessionInfo: Represents session informationcommunicated to and from the webhook.

func (GoogleCloudDialogflowCxV3SessionInfo)MarshalJSONadded inv0.34.0

typeGoogleCloudDialogflowCxV3TestCaseadded inv0.37.0

type GoogleCloudDialogflowCxV3TestCase struct {// CreationTime: Output only. When the test was created.CreationTimestring `json:"creationTime,omitempty"`// DisplayName: Required. The human-readable name of the test case, unique// within the agent. Limit of 200 characters.DisplayNamestring `json:"displayName,omitempty"`// LastTestResult: The latest test result.LastTestResult *GoogleCloudDialogflowCxV3TestCaseResult `json:"lastTestResult,omitempty"`// Name: The unique identifier of the test case. TestCases.CreateTestCase will// populate the name automatically. Otherwise use format:// `projects//locations//agents//testCases/`.Namestring `json:"name,omitempty"`// Notes: Additional freeform notes about the test case. Limit of 400// characters.Notesstring `json:"notes,omitempty"`// Tags: Tags are short descriptions that users may apply to test cases for// organizational and filtering purposes. Each tag should start with "#" and// has a limit of 30 characters.Tags []string `json:"tags,omitempty"`// TestCaseConversationTurns: The conversation turns uttered when the test case// was created, in chronological order. These include the canonical set of// agent utterances that should occur when the agent is working properly.TestCaseConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"testCaseConversationTurns,omitempty"`// TestConfig: Config for the test case.TestConfig *GoogleCloudDialogflowCxV3TestConfig `json:"testConfig,omitempty"`// ForceSendFields is a list of field names (e.g. "CreationTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreationTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3TestCase: Represents a test case.

func (GoogleCloudDialogflowCxV3TestCase)MarshalJSONadded inv0.37.0

func (sGoogleCloudDialogflowCxV3TestCase) MarshalJSON() ([]byte,error)

typeGoogleCloudDialogflowCxV3TestCaseErroradded inv0.37.0

type GoogleCloudDialogflowCxV3TestCaseError struct {// Status: The status associated with the test case.Status *GoogleRpcStatus `json:"status,omitempty"`// TestCase: The test case.TestCase *GoogleCloudDialogflowCxV3TestCase `json:"testCase,omitempty"`// ForceSendFields is a list of field names (e.g. "Status") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Status") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3TestCaseError: Error info for importing a test.

func (GoogleCloudDialogflowCxV3TestCaseError)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3TestCaseResultadded inv0.37.0

type GoogleCloudDialogflowCxV3TestCaseResult struct {// ConversationTurns: The conversation turns uttered during the test case// replay in chronological order.ConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"conversationTurns,omitempty"`// Environment: Environment where the test was run. If not set, it indicates// the draft environment.Environmentstring `json:"environment,omitempty"`// Name: The resource name for the test case result. Format:// `projects//locations//agents//testCases//results/`.Namestring `json:"name,omitempty"`// TestResult: Whether the test case passed in the agent environment.//// Possible values://   "TEST_RESULT_UNSPECIFIED" - Not specified. Should never be used.//   "PASSED" - The test passed.//   "FAILED" - The test did not pass.TestResultstring `json:"testResult,omitempty"`// TestTime: The time that the test was run.TestTimestring `json:"testTime,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversationTurns") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationTurns") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3TestCaseResult: Represents a result from running atest case in an agent environment.

func (GoogleCloudDialogflowCxV3TestCaseResult)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3TestConfigadded inv0.37.0

type GoogleCloudDialogflowCxV3TestConfig struct {// Flow: Flow name to start the test case with. Format:// `projects//locations//agents//flows/`. Only one of `flow` and `page` should// be set to indicate the starting point of the test case. If neither is set,// the test case will start with start page on the default start flow.Flowstring `json:"flow,omitempty"`// Page: The page to start the test case with. Format:// `projects//locations//agents//flows//pages/`. Only one of `flow` and `page`// should be set to indicate the starting point of the test case. If neither is// set, the test case will start with start page on the default start flow.Pagestring `json:"page,omitempty"`// TrackingParameters: Session parameters to be compared when calculating// differences.TrackingParameters []string `json:"trackingParameters,omitempty"`// ForceSendFields is a list of field names (e.g. "Flow") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Flow") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3TestConfig: Represents configurations for a testcase.

func (GoogleCloudDialogflowCxV3TestConfig)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3TestErroradded inv0.37.0

type GoogleCloudDialogflowCxV3TestError struct {// Status: The status associated with the test.Status *GoogleRpcStatus `json:"status,omitempty"`// TestCase: The test case resource name.TestCasestring `json:"testCase,omitempty"`// TestTime: The timestamp when the test was completed.TestTimestring `json:"testTime,omitempty"`// ForceSendFields is a list of field names (e.g. "Status") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Status") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3TestError: Error info for running a test.

func (GoogleCloudDialogflowCxV3TestError)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3TestRunDifferenceadded inv0.37.0

type GoogleCloudDialogflowCxV3TestRunDifference struct {// Description: A human readable description of the diff, showing the actual// output vs expected output.Descriptionstring `json:"description,omitempty"`// Type: The type of diff.//// Possible values://   "DIFF_TYPE_UNSPECIFIED" - Should never be used.//   "INTENT" - The intent.//   "PAGE" - The page.//   "PARAMETERS" - The parameters.//   "UTTERANCE" - The message utterance.//   "FLOW" - The flow.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3TestRunDifference: The description of differencesbetween original and replayed agent output.

func (GoogleCloudDialogflowCxV3TestRunDifference)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3TextInputadded inv0.37.0

type GoogleCloudDialogflowCxV3TextInput struct {// Text: Required. The UTF-8 encoded natural language text to be processed.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "Text") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3TextInput: Represents the natural language text tobe processed.

func (GoogleCloudDialogflowCxV3TextInput)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3ToolCalladded inv0.231.0

type GoogleCloudDialogflowCxV3ToolCall struct {// Action: Required. The name of the tool's action associated with this call.Actionstring `json:"action,omitempty"`// InputParameters: Optional. The action's input parameters.InputParametersgoogleapi.RawMessage `json:"inputParameters,omitempty"`// Tool: Required. The tool associated with this call. Format:// `projects//locations//agents//tools/`.Toolstring `json:"tool,omitempty"`// ForceSendFields is a list of field names (e.g. "Action") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ToolCall: Represents a call of a specific tool'saction with the specified inputs.

func (GoogleCloudDialogflowCxV3ToolCall)MarshalJSONadded inv0.231.0

func (sGoogleCloudDialogflowCxV3ToolCall) MarshalJSON() ([]byte,error)

typeGoogleCloudDialogflowCxV3ToolCallResultadded inv0.231.0

type GoogleCloudDialogflowCxV3ToolCallResult struct {// Action: Required. The name of the tool's action associated with this call.Actionstring `json:"action,omitempty"`// Error: The tool call's error.Error *GoogleCloudDialogflowCxV3ToolCallResultError `json:"error,omitempty"`// OutputParameters: The tool call's output parameters.OutputParametersgoogleapi.RawMessage `json:"outputParameters,omitempty"`// Tool: Required. The tool associated with this call. Format:// `projects//locations//agents//tools/`.Toolstring `json:"tool,omitempty"`// ForceSendFields is a list of field names (e.g. "Action") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ToolCallResult: The result of calling a tool'saction that has been executed by the client.

func (GoogleCloudDialogflowCxV3ToolCallResult)MarshalJSONadded inv0.231.0

typeGoogleCloudDialogflowCxV3ToolCallResultErroradded inv0.231.0

type GoogleCloudDialogflowCxV3ToolCallResultError struct {// Message: Optional. The error message of the function.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Message") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Message") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3ToolCallResultError: An error produced by the toolcall.

func (GoogleCloudDialogflowCxV3ToolCallResultError)MarshalJSONadded inv0.231.0

typeGoogleCloudDialogflowCxV3TransitionRouteadded inv0.37.0

type GoogleCloudDialogflowCxV3TransitionRoute struct {// Condition: The condition to evaluate against form parameters or session// parameters. See the conditions reference// (https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least// one of `intent` or `condition` must be specified. When both `intent` and// `condition` are specified, the transition can only happen when both are// fulfilled.Conditionstring `json:"condition,omitempty"`// Description: Optional. The description of the transition route. The maximum// length is 500 characters.Descriptionstring `json:"description,omitempty"`// Intent: The unique identifier of an Intent. Format:// `projects//locations//agents//intents/`. Indicates that the transition can// only happen when the given intent is matched. At least one of `intent` or// `condition` must be specified. When both `intent` and `condition` are// specified, the transition can only happen when both are fulfilled.Intentstring `json:"intent,omitempty"`// Name: Output only. The unique identifier of this transition route.Namestring `json:"name,omitempty"`// TargetFlow: The target flow to transition to. Format:// `projects//locations//agents//flows/`.TargetFlowstring `json:"targetFlow,omitempty"`// TargetPage: The target page to transition to. Format:// `projects//locations//agents//flows//pages/`.TargetPagestring `json:"targetPage,omitempty"`// TriggerFulfillment: The fulfillment to call when the condition is satisfied.// At least one of `trigger_fulfillment` and `target` must be specified. When// both are defined, `trigger_fulfillment` is executed first.TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`// ForceSendFields is a list of field names (e.g. "Condition") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Condition") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3TransitionRoute: A transition route specifies aintent that can be matched and/or a data condition that can be evaluatedduring a session. When a specified transition is matched, the followingactions are taken in order: * If there is a `trigger_fulfillment` associatedwith the transition, it will be called. * If there is a `target_page`associated with the transition, the session will transition into thespecified page. * If there is a `target_flow` associated with thetransition, the session will transition into the specified flow.

func (GoogleCloudDialogflowCxV3TransitionRoute)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3TurnSignalsadded inv0.107.0

type GoogleCloudDialogflowCxV3TurnSignals struct {// AgentEscalated: Whether agent responded with LiveAgentHandoff fulfillment.AgentEscalatedbool `json:"agentEscalated,omitempty"`// DtmfUsed: Whether user was using DTMF input.DtmfUsedbool `json:"dtmfUsed,omitempty"`// FailureReasons: Failure reasons of the turn.//// Possible values://   "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned.//   "FAILED_INTENT" - Whether NLU failed to recognize user intent.//   "FAILED_WEBHOOK" - Whether webhook failed during the turn.FailureReasons []string `json:"failureReasons,omitempty"`// NoMatch: Whether NLU predicted NO_MATCH.NoMatchbool `json:"noMatch,omitempty"`// NoUserInput: Whether user provided no input.NoUserInputbool `json:"noUserInput,omitempty"`// ReachedEndPage: Whether turn resulted in End Session page.ReachedEndPagebool `json:"reachedEndPage,omitempty"`// SentimentMagnitude: Sentiment magnitude of the user utterance if sentiment// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.SentimentMagnitudefloat64 `json:"sentimentMagnitude,omitempty"`// SentimentScore: Sentiment score of the user utterance if sentiment// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.SentimentScorefloat64 `json:"sentimentScore,omitempty"`// UserEscalated: Whether user was specifically asking for a live agent.UserEscalatedbool `json:"userEscalated,omitempty"`// WebhookStatuses: Human-readable statuses of the webhooks triggered during// this turn.WebhookStatuses []string `json:"webhookStatuses,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentEscalated") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentEscalated") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3TurnSignals: Collection of all signals that wereextracted for a single turn of the conversation.

func (GoogleCloudDialogflowCxV3TurnSignals)MarshalJSONadded inv0.107.0

func (*GoogleCloudDialogflowCxV3TurnSignals)UnmarshalJSONadded inv0.123.0

func (s *GoogleCloudDialogflowCxV3TurnSignals) UnmarshalJSON(data []byte)error

typeGoogleCloudDialogflowCxV3Webhookadded inv0.82.0

type GoogleCloudDialogflowCxV3Webhook struct {// Disabled: Indicates whether the webhook is disabled.Disabledbool `json:"disabled,omitempty"`// DisplayName: Required. The human-readable name of the webhook, unique within// the agent.DisplayNamestring `json:"displayName,omitempty"`// GenericWebService: Configuration for a generic web service.GenericWebService *GoogleCloudDialogflowCxV3WebhookGenericWebService `json:"genericWebService,omitempty"`// Name: The unique identifier of the webhook. Required for the// Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name// automatically. Format: `projects//locations//agents//webhooks/`.Namestring `json:"name,omitempty"`// ServiceDirectory: Configuration for a Service Directory// (https://cloud.google.com/service-directory) service.ServiceDirectory *GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig `json:"serviceDirectory,omitempty"`// Timeout: Webhook execution timeout. Execution is considered failed if// Dialogflow doesn't receive a response from webhook at the end of the timeout// period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds.Timeoutstring `json:"timeout,omitempty"`// ForceSendFields is a list of field names (e.g. "Disabled") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Disabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3Webhook: Webhooks host the developer's businesslogic. During a session, webhooks allow the developer to use the dataextracted by Dialogflow's natural language processing to generate dynamicresponses, validate collected data, or trigger actions on the backend.

func (GoogleCloudDialogflowCxV3Webhook)MarshalJSONadded inv0.82.0

func (sGoogleCloudDialogflowCxV3Webhook) MarshalJSON() ([]byte,error)

typeGoogleCloudDialogflowCxV3WebhookGenericWebServiceadded inv0.82.0

type GoogleCloudDialogflowCxV3WebhookGenericWebService struct {// AllowedCaCerts: Optional. Specifies a list of allowed custom CA certificates// (in DER format) for HTTPS verification. This overrides the default SSL trust// store. If this is empty or unspecified, Dialogflow will use Google's default// trust store to verify certificates. N.B. Make sure the HTTPS server// certificates are signed with "subject alt name". For instance a certificate// can be self-signed using the following command, “` openssl x509 -req -days// 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \// -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") “`AllowedCaCerts []string `json:"allowedCaCerts,omitempty"`// HttpMethod: Optional. HTTP method for the flexible webhook calls. Standard// webhook always uses POST.//// Possible values://   "HTTP_METHOD_UNSPECIFIED" - HTTP method not specified.//   "POST" - HTTP POST Method.//   "GET" - HTTP GET Method.//   "HEAD" - HTTP HEAD Method.//   "PUT" - HTTP PUT Method.//   "DELETE" - HTTP DELETE Method.//   "PATCH" - HTTP PATCH Method.//   "OPTIONS" - HTTP OPTIONS Method.HttpMethodstring `json:"httpMethod,omitempty"`// OauthConfig: Optional. The OAuth configuration of the webhook. If specified,// Dialogflow will initiate the OAuth client credential flow to exchange an// access token from the 3rd party platform and put it in the auth header.OauthConfig *GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig `json:"oauthConfig,omitempty"`// ParameterMapping: Optional. Maps the values extracted from specific fields// of the flexible webhook response into session parameters. - Key: session// parameter name - Value: field path in the webhook responseParameterMapping map[string]string `json:"parameterMapping,omitempty"`// Password: The password for HTTP Basic authentication.Passwordstring `json:"password,omitempty"`// RequestBody: Optional. Defines a custom JSON object as request body to send// to flexible webhook.RequestBodystring `json:"requestBody,omitempty"`// RequestHeaders: The HTTP request headers to send together with webhook// requests.RequestHeaders map[string]string `json:"requestHeaders,omitempty"`// SecretVersionForUsernamePassword: Optional. The SecretManager secret version// resource storing the username:password pair for HTTP Basic authentication.// Format: `projects/{project}/secrets/{secret}/versions/{version}`SecretVersionForUsernamePasswordstring `json:"secretVersionForUsernamePassword,omitempty"`// SecretVersionsForRequestHeaders: Optional. The HTTP request headers to send// together with webhook requests. Header values are stored in SecretManager// secret versions. When the same header name is specified in both// `request_headers` and `secret_versions_for_request_headers`, the value in// `secret_versions_for_request_headers` will be used.SecretVersionsForRequestHeaders map[string]GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue `json:"secretVersionsForRequestHeaders,omitempty"`// ServiceAccountAuthConfig: Optional. Configuration for service account// authentication.ServiceAccountAuthConfig *GoogleCloudDialogflowCxV3WebhookGenericWebServiceServiceAccountAuthConfig `json:"serviceAccountAuthConfig,omitempty"`// ServiceAgentAuth: Optional. Indicate the auth token type generated from the// Diglogflow service agent// (https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).// The generated token is sent in the Authorization header.//// Possible values://   "SERVICE_AGENT_AUTH_UNSPECIFIED" - Service agent auth type unspecified.// Default to ID_TOKEN.//   "NONE" - No token used.//   "ID_TOKEN" - Use [ID// token](https://cloud.google.com/docs/authentication/token-types#id)// generated from service agent. This can be used to access Cloud Function and// Cloud Run after you grant Invoker role to// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.//   "ACCESS_TOKEN" - Use [access// token](https://cloud.google.com/docs/authentication/token-types#access)// generated from service agent. This can be used to access other Google Cloud// APIs after you grant required roles to// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.ServiceAgentAuthstring `json:"serviceAgentAuth,omitempty"`// Uri: Required. The webhook URI for receiving POST requests. It must use// https protocol.Uristring `json:"uri,omitempty"`// Username: The user name for HTTP Basic authentication.Usernamestring `json:"username,omitempty"`// WebhookType: Optional. Type of the webhook.//// Possible values://   "WEBHOOK_TYPE_UNSPECIFIED" - Default value. This value is unused.//   "STANDARD" - Represents a standard webhook.//   "FLEXIBLE" - Represents a flexible webhook.WebhookTypestring `json:"webhookType,omitempty"`// ForceSendFields is a list of field names (e.g. "AllowedCaCerts") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AllowedCaCerts") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3WebhookGenericWebService: Represents configurationfor a generic web service.

func (GoogleCloudDialogflowCxV3WebhookGenericWebService)MarshalJSONadded inv0.82.0

typeGoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfigadded inv0.171.0

type GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig struct {// ClientId: Required. The client ID provided by the 3rd party platform.ClientIdstring `json:"clientId,omitempty"`// ClientSecret: Optional. The client secret provided by the 3rd party// platform.ClientSecretstring `json:"clientSecret,omitempty"`// Scopes: Optional. The OAuth scopes to grant.Scopes []string `json:"scopes,omitempty"`// SecretVersionForClientSecret: Optional. The name of the SecretManager secret// version resource storing the client secret. If this field is set, the// `client_secret` field will be ignored. Format:// `projects/{project}/secrets/{secret}/versions/{version}`SecretVersionForClientSecretstring `json:"secretVersionForClientSecret,omitempty"`// TokenEndpoint: Required. The token endpoint provided by the 3rd party// platform to exchange an access token.TokenEndpointstring `json:"tokenEndpoint,omitempty"`// ForceSendFields is a list of field names (e.g. "ClientId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ClientId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig: Representsconfiguration of OAuth client credential flow for 3rd party APIauthentication.

func (GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig)MarshalJSONadded inv0.171.0

typeGoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValueadded inv0.229.0

type GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue struct {// SecretVersion: Required. The SecretManager secret version resource storing// the header value. Format:// `projects/{project}/secrets/{secret}/versions/{version}`SecretVersionstring `json:"secretVersion,omitempty"`// ForceSendFields is a list of field names (e.g. "SecretVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "SecretVersion") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue:Represents the value of an HTTP header stored in a SecretManager secretversion.

func (GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue)MarshalJSONadded inv0.229.0

typeGoogleCloudDialogflowCxV3WebhookGenericWebServiceServiceAccountAuthConfigadded inv0.255.0

type GoogleCloudDialogflowCxV3WebhookGenericWebServiceServiceAccountAuthConfig struct {// ServiceAccount: Required. The email address of the service account used to// authenticate the webhook call. Dialogflow uses this service account to// exchange an access token and the access token is then sent in the// `Authorization` header of the webhook request. The service account must have// the `roles/iam.serviceAccountTokenCreator` role granted to the Dialogflow// service agent// (https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).ServiceAccountstring `json:"serviceAccount,omitempty"`// ForceSendFields is a list of field names (e.g. "ServiceAccount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ServiceAccount") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3WebhookGenericWebServiceServiceAccountAuthConfig:Configuration for authentication using a service account.

func (GoogleCloudDialogflowCxV3WebhookGenericWebServiceServiceAccountAuthConfig)MarshalJSONadded inv0.255.0

typeGoogleCloudDialogflowCxV3WebhookRequestadded inv0.34.0

type GoogleCloudDialogflowCxV3WebhookRequest struct {// DetectIntentResponseId: Always present. The unique identifier of the// DetectIntentResponse that will be returned to the API caller.DetectIntentResponseIdstring `json:"detectIntentResponseId,omitempty"`// DtmfDigits: If DTMF was provided as input, this field will contain the DTMF// digits.DtmfDigitsstring `json:"dtmfDigits,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"`// LanguageCode: The language code specified in the original request.LanguageCodestring `json:"languageCode,omitempty"`// LanguageInfo: Information about the language of the request.LanguageInfo *GoogleCloudDialogflowCxV3LanguageInfo `json:"languageInfo,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.Payloadgoogleapi.RawMessage `json:"payload,omitempty"`// SentimentAnalysisResult: The sentiment analysis result of the current user// request. The field is filled when sentiment analysis is configured to be// enabled for the request.SentimentAnalysisResult *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`// SessionInfo: Information about session status.SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`// Text: If natural language text was provided as input, this field will// contain a copy of the text.Textstring `json:"text,omitempty"`// Transcript: If natural language speech audio was provided as input, this// field will contain the transcript for the audio.Transcriptstring `json:"transcript,omitempty"`// TriggerEvent: If an event was provided as input, this field will contain the// name of the event.TriggerEventstring `json:"triggerEvent,omitempty"`// TriggerIntent: If an intent was provided as input, this field will contain a// copy of the intent identifier. Format:// `projects//locations//agents//intents/`.TriggerIntentstring `json:"triggerIntent,omitempty"`// ForceSendFields is a list of field names (e.g. "DetectIntentResponseId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3WebhookRequest: The request message for a webhookcall. The request is sent as a JSON object and the field names will bepresented in camel cases. You may see undocumented fields in an actualrequest. These fields are used internally by Dialogflow and should beignored.

func (GoogleCloudDialogflowCxV3WebhookRequest)MarshalJSONadded inv0.34.0

typeGoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfoadded inv0.34.0

type GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo struct {// Tag: Always present. The value of the Fulfillment.tag field will be// populated in this field by Dialogflow when the associated webhook is called.// The tag is typically used by the webhook service to identify which// fulfillment is being called, but it could be used for other purposes.Tagstring `json:"tag,omitempty"`// ForceSendFields is a list of field names (e.g. "Tag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo: Representsfulfillment information communicated to the webhook.

func (GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo)MarshalJSONadded inv0.34.0

typeGoogleCloudDialogflowCxV3WebhookRequestIntentInfoadded inv0.34.0

type GoogleCloudDialogflowCxV3WebhookRequestIntentInfo struct {// Confidence: The confidence of the matched intent. Values range from 0.0// (completely uncertain) to 1.0 (completely certain).Confidencefloat64 `json:"confidence,omitempty"`// DisplayName: Always present. The display name of the last matched intent.DisplayNamestring `json:"displayName,omitempty"`// LastMatchedIntent: Always present. The unique identifier of the last matched// intent. Format: `projects//locations//agents//intents/`.LastMatchedIntentstring `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. "Confidence") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Confidence") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3WebhookRequestIntentInfo: Represents intentinformation communicated to the webhook.

func (GoogleCloudDialogflowCxV3WebhookRequestIntentInfo)MarshalJSONadded inv0.34.0

func (*GoogleCloudDialogflowCxV3WebhookRequestIntentInfo)UnmarshalJSONadded inv0.39.0

typeGoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValueadded inv0.34.0

type GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue struct {// OriginalValue: Always present. Original text value extracted from user// utterance.OriginalValuestring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue:Represents a value for an intent parameter.

func (GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue)MarshalJSONadded inv0.34.0

typeGoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResultadded inv0.41.0

type GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult struct {// Magnitude: A non-negative number in the [0, +inf) range, which represents// the absolute magnitude of sentiment, regardless of score (positive or// negative).Magnitudefloat64 `json:"magnitude,omitempty"`// Score: Sentiment score between -1.0 (negative sentiment) and 1.0 (positive// sentiment).Scorefloat64 `json:"score,omitempty"`// ForceSendFields is a list of field names (e.g. "Magnitude") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult: Representsthe result of sentiment analysis.

func (GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult)MarshalJSONadded inv0.41.0

func (*GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult)UnmarshalJSONadded inv0.41.0

typeGoogleCloudDialogflowCxV3WebhookResponseadded inv0.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.Payloadgoogleapi.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/`.TargetFlowstring `json:"targetFlow,omitempty"`// TargetPage: The target page to transition to. Format:// `projects//locations//agents//flows//pages/`.TargetPagestring `json:"targetPage,omitempty"`// ForceSendFields is a list of field names (e.g. "FulfillmentResponse") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3WebhookResponse: The response message for a webhookcall.

func (GoogleCloudDialogflowCxV3WebhookResponse)MarshalJSONadded inv0.34.0

typeGoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponseadded inv0.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.MergeBehaviorstring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse: Represents afulfillment response to the user.

func (GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse)MarshalJSONadded inv0.34.0

typeGoogleCloudDialogflowCxV3WebhookServiceDirectoryConfigadded inv0.82.0

type GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig struct {// GenericWebService: Generic Service configuration of this webhook.GenericWebService *GoogleCloudDialogflowCxV3WebhookGenericWebService `json:"genericWebService,omitempty"`// Service: Required. The name of Service Directory// (https://cloud.google.com/service-directory) service. Format:// `projects//locations//namespaces//services/`. `Location ID` of the service// directory must be the same as the location of the agent.Servicestring `json:"service,omitempty"`// ForceSendFields is a list of field names (e.g. "GenericWebService") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "GenericWebService") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig: Representsconfiguration for a Service Directory(https://cloud.google.com/service-directory) service.

func (GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig)MarshalJSONadded inv0.82.0

typeGoogleCloudDialogflowCxV3beta1AdvancedSettingsadded inv0.139.0

type GoogleCloudDialogflowCxV3beta1AdvancedSettings struct {// AudioExportGcsDestination: If present, incoming audio is exported by// Dialogflow to the configured Google Cloud Storage destination. Exposed at// the following levels: - Agent level - Flow levelAudioExportGcsDestination *GoogleCloudDialogflowCxV3beta1GcsDestination `json:"audioExportGcsDestination,omitempty"`// DtmfSettings: Settings for DTMF. Exposed at the following levels: - Agent// level - Flow level - Page level - Parameter level.DtmfSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings `json:"dtmfSettings,omitempty"`// LoggingSettings: Settings for logging. Settings for Dialogflow History,// Contact Center messages, StackDriver logs, and speech logging. Exposed at// the following levels: - Agent level.LoggingSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings `json:"loggingSettings,omitempty"`// SpeechSettings: Settings for speech to text detection. Exposed at the// following levels: - Agent level - Flow level - Page level - Parameter levelSpeechSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings `json:"speechSettings,omitempty"`// ForceSendFields is a list of field names (e.g. "AudioExportGcsDestination")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AudioExportGcsDestination") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1AdvancedSettings: Hierarchical advancedsettings for agent/flow/page/fulfillment/parameter. Settings exposed atlower level overrides the settings exposed at higher level. Overridingoccurs at the sub-setting level. For example, theplayback_interruption_settings at fulfillment level only overrides theplayback_interruption_settings at the agent level, leaving other settings atthe agent level unchanged. DTMF settings does not override each other. DTMFsettings set at different levels define DTMF detections running in parallel.Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.

func (GoogleCloudDialogflowCxV3beta1AdvancedSettings)MarshalJSONadded inv0.139.0

typeGoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettingsadded inv0.139.0

type GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings struct {// Enabled: If true, incoming audio is processed for DTMF (dual tone multi// frequency) events. For example, if the caller presses a button on their// telephone keypad and DTMF processing is enabled, Dialogflow will detect the// event (e.g. a "3" was pressed) in the incoming audio and pass the event to// the bot to drive business logic (e.g. when 3 is pressed, return the account// balance).Enabledbool `json:"enabled,omitempty"`// EndpointingTimeoutDuration: Endpoint timeout setting for matching dtmf input// to regex.EndpointingTimeoutDurationstring `json:"endpointingTimeoutDuration,omitempty"`// FinishDigit: The digit that terminates a DTMF digit sequence.FinishDigitstring `json:"finishDigit,omitempty"`// InterdigitTimeoutDuration: Interdigit timeout setting for matching dtmf// input to regex.InterdigitTimeoutDurationstring `json:"interdigitTimeoutDuration,omitempty"`// MaxDigits: Max length of DTMF digits.MaxDigitsint64 `json:"maxDigits,omitempty"`// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings: Define behaviorsfor DTMF (dual tone multi frequency).

func (GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings)MarshalJSONadded inv0.139.0

typeGoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettingsadded inv0.139.0

type GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings struct {// EnableConsentBasedRedaction: Enables consent-based end-user input redaction,// if true, a pre-defined session parameter// `$session.params.conversation-redaction` will be used to determine if the// utterance should be redacted.EnableConsentBasedRedactionbool `json:"enableConsentBasedRedaction,omitempty"`// EnableInteractionLogging: Enables DF Interaction logging.EnableInteractionLoggingbool `json:"enableInteractionLogging,omitempty"`// EnableStackdriverLogging: Enables Google Cloud Logging.EnableStackdriverLoggingbool `json:"enableStackdriverLogging,omitempty"`// ForceSendFields is a list of field names (e.g.// "EnableConsentBasedRedaction") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EnableConsentBasedRedaction") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings: Definebehaviors on logging.

func (GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings)MarshalJSONadded inv0.139.0

typeGoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettingsadded inv0.170.0

type GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings struct {// EndpointerSensitivity: Sensitivity of the speech model that detects the end// of speech. Scale from 0 to 100.EndpointerSensitivityint64 `json:"endpointerSensitivity,omitempty"`// Models: Mapping from language to Speech-to-Text model. The mapped// Speech-to-Text model will be selected for requests from its corresponding// language. For more information, see Speech models// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).Models map[string]string `json:"models,omitempty"`// NoSpeechTimeout: Timeout before detecting no speech.NoSpeechTimeoutstring `json:"noSpeechTimeout,omitempty"`// UseTimeoutBasedEndpointing: Use timeout based endpointing, interpreting// endpointer sensitivity as seconds of timeout value.UseTimeoutBasedEndpointingbool `json:"useTimeoutBasedEndpointing,omitempty"`// ForceSendFields is a list of field names (e.g. "EndpointerSensitivity") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EndpointerSensitivity") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings: Definebehaviors of speech to text detection.

func (GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings)MarshalJSONadded inv0.170.0

typeGoogleCloudDialogflowCxV3beta1AudioInputadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1AudioInput struct {// Audio: The natural language speech audio to be processed. A single request// can contain up to 2 minutes of speech audio data. The transcribed text// cannot contain more than 256 bytes. For non-streaming audio detect intent,// both `config` and `audio` must be provided. For streaming audio detect// intent, `config` must be provided in the first request and `audio` must be// provided in all following requests.Audiostring `json:"audio,omitempty"`// Config: Required. Instructs the speech recognizer how to process the speech// audio.Config *GoogleCloudDialogflowCxV3beta1InputAudioConfig `json:"config,omitempty"`// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Audio") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1AudioInput: Represents the natural speechaudio to be processed.

func (GoogleCloudDialogflowCxV3beta1AudioInput)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1BargeInConfigadded inv0.152.0

type GoogleCloudDialogflowCxV3beta1BargeInConfig struct {// NoBargeInDuration: Duration that is not eligible for barge-in at the// beginning of the input audio.NoBargeInDurationstring `json:"noBargeInDuration,omitempty"`// TotalDuration: Total duration for the playback at the beginning of the input// audio.TotalDurationstring `json:"totalDuration,omitempty"`// ForceSendFields is a list of field names (e.g. "NoBargeInDuration") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NoBargeInDuration") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1BargeInConfig: Configuration of the barge-inbehavior. Barge-in instructs the API to return a detected utterance at aproper time while the client is playing back the response audio from aprevious request. When the client sees the utterance, it should stop theplayback and immediately get ready for receiving the responses for thecurrent request. The barge-in handling requires the client to startstreaming audio input as soon as it starts playing back the audio from theprevious response. The playback is modeled into two phases: * No barge-inphase: which goes first and during which speech detection should not becarried out. * Barge-in phase: which follows the no barge-in phase andduring which the API starts speech detection and may inform the client thatan utterance has been detected. Note that no-speech event is not expected inthis phase. The client provides this configuration in terms of the durationsof those two phases. The durations are measured in terms of the audio lengthfrom the start of the input audio. No-speech event is a response withEND_OF_UTTERANCE without any transcript following up.

func (GoogleCloudDialogflowCxV3beta1BargeInConfig)MarshalJSONadded inv0.152.0

typeGoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadataadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata struct {// Errors: The test errors.Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Errors") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata: Metadata returnedfor the TestCases.BatchRunTestCases long running operation.

func (GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponseadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse struct {// Results: The test case results. The detailed conversation turns are empty in// this response.Results []*GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"results,omitempty"`// ForceSendFields is a list of field names (e.g. "Results") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Results") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse: The responsemessage for TestCases.BatchRunTestCases.

func (GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1ContinuousTestResultadded inv0.48.0

type GoogleCloudDialogflowCxV3beta1ContinuousTestResult struct {// Name: The resource name for the continuous test result. Format:// `projects//locations//agents//environments//continuousTestResults/`.Namestring `json:"name,omitempty"`// Result: The result of this continuous test run, i.e. whether all the tests// in this continuous test run pass or not.//// Possible values://   "AGGREGATED_TEST_RESULT_UNSPECIFIED" - Not specified. Should never be// used.//   "PASSED" - All the tests passed.//   "FAILED" - At least one test did not pass.Resultstring `json:"result,omitempty"`// RunTime: Time when the continuous testing run starts.RunTimestring `json:"runTime,omitempty"`// TestCaseResults: A list of individual test case results names in this// continuous test run.TestCaseResults []string `json:"testCaseResults,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ContinuousTestResult: Represents a result fromrunning a test case in an agent environment.

func (GoogleCloudDialogflowCxV3beta1ContinuousTestResult)MarshalJSONadded inv0.48.0

typeGoogleCloudDialogflowCxV3beta1ConversationSignalsadded inv0.107.0

type GoogleCloudDialogflowCxV3beta1ConversationSignals struct {// TurnSignals: Required. Turn signals for the current turn.TurnSignals *GoogleCloudDialogflowCxV3beta1TurnSignals `json:"turnSignals,omitempty"`// ForceSendFields is a list of field names (e.g. "TurnSignals") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "TurnSignals") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ConversationSignals: This message is used tohold all the Conversation Signals data, which will be converted to JSON andexported to BigQuery.

func (GoogleCloudDialogflowCxV3beta1ConversationSignals)MarshalJSONadded inv0.107.0

typeGoogleCloudDialogflowCxV3beta1ConversationTurnadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1ConversationTurn struct {// UserInput: The user input.UserInput *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput `json:"userInput,omitempty"`// VirtualAgentOutput: The virtual agent output.VirtualAgentOutput *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`// ForceSendFields is a list of field names (e.g. "UserInput") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "UserInput") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ConversationTurn: One interaction between ahuman and virtual agent. The human provides some input and the virtual agentprovides a response.

func (GoogleCloudDialogflowCxV3beta1ConversationTurn)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1ConversationTurnUserInputadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput struct {// EnableSentimentAnalysis: Whether sentiment analysis is enabled.EnableSentimentAnalysisbool `json:"enableSentimentAnalysis,omitempty"`// InjectedParameters: Parameters that need to be injected into the// conversation during intent detection.InjectedParametersgoogleapi.RawMessage `json:"injectedParameters,omitempty"`// Input: Supports text input, event input, dtmf input in the test case.Input *GoogleCloudDialogflowCxV3beta1QueryInput `json:"input,omitempty"`// IsWebhookEnabled: If webhooks should be allowed to trigger in response to// the user utterance. Often if parameters are injected, webhooks should not be// enabled.IsWebhookEnabledbool `json:"isWebhookEnabled,omitempty"`// ForceSendFields is a list of field names (e.g. "EnableSentimentAnalysis") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EnableSentimentAnalysis") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput: The input from thehuman user.

func (GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutputadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput struct {// CurrentPage: The Page on which the utterance was spoken. Only name and// displayName will be set.CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"`// DiagnosticInfo: Required. Input only. The diagnostic info output for the// turn. Required to calculate the testing coverage.DiagnosticInfogoogleapi.RawMessage `json:"diagnosticInfo,omitempty"`// Differences: Output only. If this is part of a result conversation turn, the// list of differences between the original run and the replay for this output,// if any.Differences []*GoogleCloudDialogflowCxV3beta1TestRunDifference `json:"differences,omitempty"`// SessionParameters: The session parameters available to the bot at this// point.SessionParametersgoogleapi.RawMessage `json:"sessionParameters,omitempty"`// Status: Response error from the agent in the test result. If set, other// output is empty.Status *GoogleRpcStatus `json:"status,omitempty"`// TextResponses: The text responses from the agent for the turn.TextResponses []*GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"textResponses,omitempty"`// TriggeredIntent: The Intent that triggered the response. Only name and// displayName will be set.TriggeredIntent *GoogleCloudDialogflowCxV3beta1Intent `json:"triggeredIntent,omitempty"`// ForceSendFields is a list of field names (e.g. "CurrentPage") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput: The outputfrom the virtual agent.

func (GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadataadded inv0.31.0

type GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata struct {// Version: Name of the created version. Format:// `projects//locations//agents//flows//versions/`.Versionstring `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "Version") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata: Metadataassociated with the long running operation for Versions.CreateVersion.

func (GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata)MarshalJSONadded inv0.31.0

typeGoogleCloudDialogflowCxV3beta1DataStoreConnectionadded inv0.139.0

type GoogleCloudDialogflowCxV3beta1DataStoreConnection struct {// DataStore: The full name of the referenced data store. Formats:// `projects/{project}/locations/{location}/collections/{collection}/dataStores/// {data_store}`// `projects/{project}/locations/{location}/dataStores/{data_store}`DataStorestring `json:"dataStore,omitempty"`// DataStoreType: The type of the connected data store.//// Possible values://   "DATA_STORE_TYPE_UNSPECIFIED" - Not specified. This value indicates that// the data store type is not specified, so it will not be used during search.//   "PUBLIC_WEB" - A data store that contains public web content.//   "UNSTRUCTURED" - A data store that contains unstructured private data.//   "STRUCTURED" - A data store that contains structured data (for example// FAQ).DataStoreTypestring `json:"dataStoreType,omitempty"`// DocumentProcessingMode: The document processing mode for the data store// connection. Should only be set for PUBLIC_WEB and UNSTRUCTURED data stores.// If not set it is considered as DOCUMENTS, as this is the legacy mode.//// Possible values://   "DOCUMENT_PROCESSING_MODE_UNSPECIFIED" - Not specified. This should be set// for STRUCTURED type data stores. Due to legacy reasons this is considered as// DOCUMENTS for STRUCTURED and PUBLIC_WEB data stores.//   "DOCUMENTS" - Documents are processed as documents.//   "CHUNKS" - Documents are converted to chunks.DocumentProcessingModestring `json:"documentProcessingMode,omitempty"`// ForceSendFields is a list of field names (e.g. "DataStore") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DataStore") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1DataStoreConnection: A data store connection.It represents a data store in Discovery Engine and the type of the contentsit contains.

func (GoogleCloudDialogflowCxV3beta1DataStoreConnection)MarshalJSONadded inv0.139.0

typeGoogleCloudDialogflowCxV3beta1DeployFlowMetadataadded inv0.58.0

type GoogleCloudDialogflowCxV3beta1DeployFlowMetadata struct {// TestErrors: Errors of running deployment tests.TestErrors []*GoogleCloudDialogflowCxV3beta1TestError `json:"testErrors,omitempty"`// ForceSendFields is a list of field names (e.g. "TestErrors") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "TestErrors") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1DeployFlowMetadata: Metadata returned for theEnvironments.DeployFlow long running operation.

func (GoogleCloudDialogflowCxV3beta1DeployFlowMetadata)MarshalJSONadded inv0.58.0

typeGoogleCloudDialogflowCxV3beta1DeployFlowResponseadded inv0.58.0

type GoogleCloudDialogflowCxV3beta1DeployFlowResponse struct {// Deployment: The name of the flow version deployment. Format:// `projects//locations//agents//environments//deployments/`.Deploymentstring `json:"deployment,omitempty"`// Environment: The updated environment where the flow is deployed.Environment *GoogleCloudDialogflowCxV3beta1Environment `json:"environment,omitempty"`// ForceSendFields is a list of field names (e.g. "Deployment") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Deployment") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1DeployFlowResponse: The response message forEnvironments.DeployFlow.

func (GoogleCloudDialogflowCxV3beta1DeployFlowResponse)MarshalJSONadded inv0.58.0

typeGoogleCloudDialogflowCxV3beta1DtmfInputadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1DtmfInput struct {// Digits: The dtmf digits.Digitsstring `json:"digits,omitempty"`// FinishDigit: The finish digit (if any).FinishDigitstring `json:"finishDigit,omitempty"`// ForceSendFields is a list of field names (e.g. "Digits") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Digits") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1DtmfInput: Represents the input for dtmfevent.

func (GoogleCloudDialogflowCxV3beta1DtmfInput)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1Environmentadded inv0.58.0

type GoogleCloudDialogflowCxV3beta1Environment struct {// Description: The human-readable description of the environment. The maximum// length is 500 characters. If exceeded, the request is rejected.Descriptionstring `json:"description,omitempty"`// DisplayName: Required. The human-readable name of the environment (unique in// an agent). Limit of 64 characters.DisplayNamestring `json:"displayName,omitempty"`// Name: The name of the environment. Format:// `projects//locations//agents//environments/`.Namestring `json:"name,omitempty"`// TestCasesConfig: The test cases config for continuous tests of this// environment.TestCasesConfig *GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig `json:"testCasesConfig,omitempty"`// UpdateTime: Output only. Update time of this environment.UpdateTimestring `json:"updateTime,omitempty"`// VersionConfigs: A list of configurations for flow versions. You should// include version configs for all flows that are reachable from `Start Flow`// in the agent. Otherwise, an error will be returned.VersionConfigs []*GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig `json:"versionConfigs,omitempty"`// WebhookConfig: The webhook configuration for this environment.WebhookConfig *GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig `json:"webhookConfig,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1Environment: Represents an environment for anagent. You can create multiple versions of your agent and publish them toseparate environments. When you edit an agent, you are editing the draftagent. At any point, you can save the draft agent as an agent version, whichis an immutable snapshot of your agent. When you save the draft agent, it ispublished to the default environment. When you create agent versions, youcan publish them to custom environments. You can create a variety of customenvironments for testing, development, production, etc.

func (GoogleCloudDialogflowCxV3beta1Environment)MarshalJSONadded inv0.58.0

typeGoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfigadded inv0.58.0

type GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig struct {// EnableContinuousRun: Whether to run test cases in TestCasesConfig.test_cases// periodically. Default false. If set to true, run once a day.EnableContinuousRunbool `json:"enableContinuousRun,omitempty"`// EnablePredeploymentRun: Whether to run test cases in// TestCasesConfig.test_cases before deploying a flow version to the// environment. Default false.EnablePredeploymentRunbool `json:"enablePredeploymentRun,omitempty"`// TestCases: A list of test case names to run. They should be under the same// agent. Format of each test case name:// `projects//locations//agents//testCases/`TestCases []string `json:"testCases,omitempty"`// ForceSendFields is a list of field names (e.g. "EnableContinuousRun") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EnableContinuousRun") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig: The configurationfor continuous tests.

func (GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig)MarshalJSONadded inv0.58.0

typeGoogleCloudDialogflowCxV3beta1EnvironmentVersionConfigadded inv0.58.0

type GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig struct {// Version: Required. Flow, playbook and tool versions are supported. Format// for flow version: projects//locations//agents//flows//versions/. Format for// playbook version: projects//locations//agents//playbooks//versions/. Format// for tool version: projects//locations//agents//tools//versions/.Versionstring `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "Version") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig: Configuration forthe version.

func (GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig)MarshalJSONadded inv0.58.0

typeGoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfigadded inv0.82.0

type GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig struct {// WebhookOverrides: The list of webhooks to override for the agent// environment. The webhook must exist in the agent. You can override fields in// `generic_web_service` and `service_directory`.WebhookOverrides []*GoogleCloudDialogflowCxV3beta1Webhook `json:"webhookOverrides,omitempty"`// ForceSendFields is a list of field names (e.g. "WebhookOverrides") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "WebhookOverrides") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig: Configuration forwebhooks.

func (GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig)MarshalJSONadded inv0.82.0

typeGoogleCloudDialogflowCxV3beta1EventHandleradded inv0.37.0

type GoogleCloudDialogflowCxV3beta1EventHandler struct {// Event: Required. The name of the event to handle.Eventstring `json:"event,omitempty"`// Name: Output only. The unique identifier of this event handler.Namestring `json:"name,omitempty"`// TargetFlow: The target flow to transition to. Format:// `projects//locations//agents//flows/`.TargetFlowstring `json:"targetFlow,omitempty"`// TargetPage: The target page to transition to. Format:// `projects//locations//agents//flows//pages/`.TargetPagestring `json:"targetPage,omitempty"`// TargetPlaybook: The target playbook to transition to. Format:// `projects//locations//agents//playbooks/`.TargetPlaybookstring `json:"targetPlaybook,omitempty"`// TriggerFulfillment: The fulfillment to call when the event occurs. Handling// webhook errors with a fulfillment enabled with webhook could cause infinite// loop. It is invalid to specify such fulfillment for a handler handling// webhooks.TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`// ForceSendFields is a list of field names (e.g. "Event") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Event") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1EventHandler: An event handler specifies anevent that can be handled during a session. When the specified eventhappens, the following actions are taken in order: * If there is a`trigger_fulfillment` associated with the event, it will be called. * Ifthere is a `target_page` associated with the event, the session willtransition into the specified page. * If there is a `target_flow` associatedwith the event, the session will transition into the specified flow.

func (GoogleCloudDialogflowCxV3beta1EventHandler)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1EventInputadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1EventInput struct {// Event: Name of the event.Eventstring `json:"event,omitempty"`// ForceSendFields is a list of field names (e.g. "Event") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Event") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1EventInput: Represents the event to trigger.

func (GoogleCloudDialogflowCxV3beta1EventInput)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1ExportAgentResponseadded inv0.26.0

type GoogleCloudDialogflowCxV3beta1ExportAgentResponse struct {// AgentContent: Uncompressed raw byte content for agent. This field is// populated if none of `agent_uri` and `git_destination` are specified in// ExportAgentRequest.AgentContentstring `json:"agentContent,omitempty"`// AgentUri: The URI to a file containing the exported agent. This field is// populated if `agent_uri` is specified in ExportAgentRequest.AgentUristring `json:"agentUri,omitempty"`// CommitSha: Commit SHA of the git push. This field is populated if// `git_destination` is specified in ExportAgentRequest.CommitShastring `json:"commitSha,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentContent") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ExportAgentResponse: The response message forAgents.ExportAgent.

func (GoogleCloudDialogflowCxV3beta1ExportAgentResponse)MarshalJSONadded inv0.26.0

typeGoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadataadded inv0.164.0

type GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata struct {}

GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata: Metadata returnedfor the EntityTypes.ExportEntityTypes long running operation.

typeGoogleCloudDialogflowCxV3beta1ExportEntityTypesResponseadded inv0.164.0

type GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse struct {// EntityTypesContent: Uncompressed byte content for entity types. This field// is populated only if `entity_types_content_inline` is set to true in// ExportEntityTypesRequest.EntityTypesContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"entityTypesContent,omitempty"`// EntityTypesUri: The URI to a file containing the exported entity types. This// field is populated only if `entity_types_uri` is specified in// ExportEntityTypesRequest.EntityTypesUristring `json:"entityTypesUri,omitempty"`// ForceSendFields is a list of field names (e.g. "EntityTypesContent") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EntityTypesContent") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse: The responsemessage for EntityTypes.ExportEntityTypes.

func (GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse)MarshalJSONadded inv0.164.0

typeGoogleCloudDialogflowCxV3beta1ExportFlowResponseadded inv0.46.0

type GoogleCloudDialogflowCxV3beta1ExportFlowResponse struct {// FlowContent: Uncompressed raw byte content for flow.FlowContentstring `json:"flowContent,omitempty"`// FlowUri: The URI to a file containing the exported flow. This field is// populated only if `flow_uri` is specified in ExportFlowRequest.FlowUristring `json:"flowUri,omitempty"`// ForceSendFields is a list of field names (e.g. "FlowContent") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FlowContent") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ExportFlowResponse: The response message forFlows.ExportFlow.

func (GoogleCloudDialogflowCxV3beta1ExportFlowResponse)MarshalJSONadded inv0.46.0

typeGoogleCloudDialogflowCxV3beta1ExportIntentsMetadataadded inv0.143.0

type GoogleCloudDialogflowCxV3beta1ExportIntentsMetadata struct {}

GoogleCloudDialogflowCxV3beta1ExportIntentsMetadata: Metadata returned forthe Intents.ExportIntents long running operation.

typeGoogleCloudDialogflowCxV3beta1ExportIntentsResponseadded inv0.143.0

type GoogleCloudDialogflowCxV3beta1ExportIntentsResponse struct {// IntentsContent: Uncompressed byte content for intents. This field is// populated only if `intents_content_inline` is set to true in// ExportIntentsRequest.IntentsContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"intentsContent,omitempty"`// IntentsUri: The URI to a file containing the exported intents. This field is// populated only if `intents_uri` is specified in ExportIntentsRequest.IntentsUristring `json:"intentsUri,omitempty"`// ForceSendFields is a list of field names (e.g. "IntentsContent") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IntentsContent") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ExportIntentsResponse: The response messagefor Intents.ExportIntents.

func (GoogleCloudDialogflowCxV3beta1ExportIntentsResponse)MarshalJSONadded inv0.143.0

typeGoogleCloudDialogflowCxV3beta1ExportTestCasesMetadataadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata struct {}

GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata: Metadata returned forthe TestCases.ExportTestCases long running operation. This message currentlyhas no fields.

typeGoogleCloudDialogflowCxV3beta1ExportTestCasesResponseadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse struct {// Content: Uncompressed raw byte content for test cases.Contentstring `json:"content,omitempty"`// GcsUri: The URI to a file containing the exported test cases. This field is// populated only if `gcs_uri` is specified in ExportTestCasesRequest.GcsUristring `json:"gcsUri,omitempty"`// ForceSendFields is a list of field names (e.g. "Content") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse: The response messagefor TestCases.ExportTestCases.

func (GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1Formadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1Form struct {// Parameters: Parameters to collect from the user.Parameters []*GoogleCloudDialogflowCxV3beta1FormParameter `json:"parameters,omitempty"`// ForceSendFields is a list of field names (e.g. "Parameters") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1Form: A form is a data model that groupsrelated parameters that can be collected from the user. The process in whichthe agent prompts the user and collects parameter values from the user iscalled form filling. A form can be added to a page. When form filling isdone, the filled parameters will be written to the session.

func (GoogleCloudDialogflowCxV3beta1Form)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1FormParameteradded inv0.37.0

type GoogleCloudDialogflowCxV3beta1FormParameter struct {// AdvancedSettings: Hierarchical advanced settings for this parameter. The// settings exposed at the lower level overrides the settings exposed at the// higher level.AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`// DefaultValue: The default value of an optional parameter. If the parameter// is required, the default value will be ignored.DefaultValue interface{} `json:"defaultValue,omitempty"`// DisplayName: Required. The human-readable name of the parameter, unique// within the form.DisplayNamestring `json:"displayName,omitempty"`// EntityType: Required. The entity type of the parameter. Format:// `projects/-/locations/-/agents/-/entityTypes/` for system entity types (for// example, `projects/-/locations/-/agents/-/entityTypes/sys.date`), or// `projects//locations//agents//entityTypes/` for developer entity types.EntityTypestring `json:"entityType,omitempty"`// FillBehavior: Required. Defines fill behavior for the parameter.FillBehavior *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior `json:"fillBehavior,omitempty"`// IsList: Indicates whether the parameter represents a list of values.IsListbool `json:"isList,omitempty"`// Redact: Indicates whether the parameter content should be redacted in log.// If redaction is enabled, the parameter content will be replaced by parameter// name during logging. Note: the parameter content is subject to redaction if// either parameter level redaction or entity type level redaction is enabled.Redactbool `json:"redact,omitempty"`// Required: 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.Requiredbool `json:"required,omitempty"`// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdvancedSettings") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1FormParameter: Represents a form parameter.

func (GoogleCloudDialogflowCxV3beta1FormParameter)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1FormParameterFillBehavioradded inv0.37.0

type GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior struct {// InitialPromptFulfillment: Required. The fulfillment to provide the initial// prompt that the agent can present to the user in order to fill the// parameter.InitialPromptFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"initialPromptFulfillment,omitempty"`// RepromptEventHandlers: The handlers for parameter-level events, used to// provide reprompt for the parameter or transition to a different page/flow.// The supported events are: * `sys.no-match-`, where N can be from 1 to 6 *// `sys.no-match-default` * `sys.no-input-`, where N can be from 1 to 6 *// `sys.no-input-default` * `sys.invalid-parameter`// `initial_prompt_fulfillment` provides the first prompt for the parameter. If// the user's response does not fill the parameter, a no-match/no-input event// will be triggered, and the fulfillment associated with the// `sys.no-match-1`/`sys.no-input-1` handler (if defined) will be called to// provide a prompt. The `sys.no-match-2`/`sys.no-input-2` handler (if defined)// will respond to the next no-match/no-input event, and so on. A// `sys.no-match-default` or `sys.no-input-default` handler will be used to// handle all following no-match/no-input events after all numbered// no-match/no-input handlers for the parameter are consumed. A// `sys.invalid-parameter` handler can be defined to handle the case where the// parameter values have been `invalidated` by webhook. For example, if the// user's response fill the parameter, however the parameter was invalidated by// webhook, the fulfillment associated with the `sys.invalid-parameter` handler// (if defined) will be called to provide a prompt. If the event handler for// the corresponding event can't be found on the parameter,// `initial_prompt_fulfillment` will be re-prompted.RepromptEventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"repromptEventHandlers,omitempty"`// ForceSendFields is a list of field names (e.g. "InitialPromptFulfillment")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InitialPromptFulfillment") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior: Configuration forhow the filling of a parameter should be handled.

func (GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1Fulfillmentadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1Fulfillment struct {// AdvancedSettings: Hierarchical advanced settings for this fulfillment. The// settings exposed at the lower level overrides the settings exposed at the// higher level.AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`// ConditionalCases: Conditional cases for this fulfillment.ConditionalCases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"conditionalCases,omitempty"`// EnableGenerativeFallback: If the flag is true, the agent will utilize LLM to// generate a text response. If LLM generation fails, the defined responses in// the fulfillment will be respected. This flag is only useful for fulfillments// associated with no-match event handlers.EnableGenerativeFallbackbool `json:"enableGenerativeFallback,omitempty"`// Generators: A list of Generators to be called during this fulfillment.Generators []*GoogleCloudDialogflowCxV3beta1FulfillmentGeneratorSettings `json:"generators,omitempty"`// Messages: The list of rich message responses to present to the user.Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`// ReturnPartialResponses: Whether Dialogflow should return currently queued// fulfillment response messages in streaming APIs. If a webhook is specified,// it happens before Dialogflow invokes webhook. Warning: 1) This flag only// affects streaming API. Responses are still queued and returned once in// non-streaming API. 2) The flag can be enabled in any fulfillment but only// the first 3 partial responses will be returned. You may only want to apply// it to fulfillments that have slow webhooks.ReturnPartialResponsesbool `json:"returnPartialResponses,omitempty"`// SetParameterActions: Set parameter values before executing the webhook.SetParameterActions []*GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`// Tag: The value of this field will be populated in the WebhookRequest// `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is// called. The tag is typically used by the webhook service to identify which// fulfillment is being called, but it could be used for other purposes. This// field is required if `webhook` is specified.Tagstring `json:"tag,omitempty"`// Webhook: The webhook to call. Format:// `projects//locations//agents//webhooks/`.Webhookstring `json:"webhook,omitempty"`// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdvancedSettings") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1Fulfillment: A fulfillment can do one or moreof the following actions at the same time: * Generate rich messageresponses. * Set parameter values. * Call the webhook. Fulfillments can becalled at various stages in the Page or Form lifecycle. For example, when aDetectIntentRequest drives a session to enter a new page, the page's entryfulfillment can add a static response to the QueryResult in the returningDetectIntentResponse, call the webhook (for example, to load user data froma database), or both.

func (GoogleCloudDialogflowCxV3beta1Fulfillment)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases struct {// Cases: A list of cascading if-else conditions.Cases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase `json:"cases,omitempty"`// ForceSendFields is a list of field names (e.g. "Cases") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Cases") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases: A list ofcascading if-else conditions. Cases are mutually exclusive. The first onewith a matching condition is selected, all the rest ignored.

func (GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase struct {// CaseContent: A list of case content.CaseContent []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`// Condition: The condition to activate and select this case. Empty means the// condition is always true. The condition is evaluated against form parameters// or session parameters. See the conditions reference// (https://cloud.google.com/dialogflow/cx/docs/reference/condition).Conditionstring `json:"condition,omitempty"`// ForceSendFields is a list of field names (e.g. "CaseContent") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CaseContent") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase: Each case hasa Boolean condition. When it is evaluated to be True, the correspondingmessages will be selected and evaluated recursively.

func (GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContentadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent struct {// AdditionalCases: Additional cases to be evaluated.AdditionalCases *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"additionalCases,omitempty"`// Message: Returned message.Message *GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "AdditionalCases") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdditionalCases") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent:The list of messages or conditional cases to activate for this case.

func (GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1FulfillmentGeneratorSettingsadded inv0.239.0

type GoogleCloudDialogflowCxV3beta1FulfillmentGeneratorSettings struct {// Generator: Required. The generator to call. Format:// `projects//locations//agents//generators/`.Generatorstring `json:"generator,omitempty"`// InputParameters: Map from placeholder parameter in the Generator to// corresponding session parameters. By default, Dialogflow uses the session// parameter with the same name to fill in the generator template. e.g. If// there is a placeholder parameter `city` in the Generator, Dialogflow default// to fill in the `$city` with `$session.params.city`. However, you may choose// to fill `$city` with `$session.params.desination-city`. - Map key: parameter// ID - Map value: session parameter nameInputParameters map[string]string `json:"inputParameters,omitempty"`// OutputParameter: Required. Output parameter which should contain the// generator response.OutputParameterstring `json:"outputParameter,omitempty"`// ForceSendFields is a list of field names (e.g. "Generator") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Generator") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1FulfillmentGeneratorSettings: Generatorsettings used by the LLM to generate a text response.

func (GoogleCloudDialogflowCxV3beta1FulfillmentGeneratorSettings)MarshalJSONadded inv0.239.0

typeGoogleCloudDialogflowCxV3beta1FulfillmentSetParameterActionadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction struct {// Parameter: Display name of the parameter.Parameterstring `json:"parameter,omitempty"`// Value: The new value of the parameter. A null value clears the parameter.Value interface{} `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Parameter") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Parameter") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction: Setting aparameter value.

func (GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1GcsDestinationadded inv0.139.0

type GoogleCloudDialogflowCxV3beta1GcsDestination struct {// Uri: Required. The Google Cloud Storage URI for the exported objects. A URI// is of the form: `gs://bucket/object-name-or-prefix` Whether a full object// name, or just a prefix, its usage depends on the Dialogflow operation.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1GcsDestination: Google Cloud Storage locationfor a Dialogflow operation that writes or exports objects (e.g. exportedagent or transcripts) outside of Dialogflow.

func (GoogleCloudDialogflowCxV3beta1GcsDestination)MarshalJSONadded inv0.139.0

typeGoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadataadded inv0.164.0

type GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata struct {}

GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata: Metadata returnedfor the EntityTypes.ImportEntityTypes long running operation.

typeGoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseadded inv0.164.0

type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse struct {// ConflictingResources: Info which resources have conflicts when// REPORT_CONFLICT merge_option is set in ImportEntityTypesRequest.ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"`// EntityTypes: The unique identifier of the imported entity types. Format:// `projects//locations//agents//entity_types/`.EntityTypes []string `json:"entityTypes,omitempty"`// ForceSendFields is a list of field names (e.g. "ConflictingResources") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConflictingResources") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse: The responsemessage for EntityTypes.ImportEntityTypes.

func (GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse)MarshalJSONadded inv0.164.0

typeGoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResourcesadded inv0.164.0

type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources struct {// EntityDisplayNames: Display names of conflicting entities.EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`// EntityTypeDisplayNames: Display names of conflicting entity types.EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"`// ForceSendFields is a list of field names (e.g. "EntityDisplayNames") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EntityDisplayNames") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources:Conflicting resources detected during the import process. Only filled whenREPORT_CONFLICT is set in the request and there are conflicts in the displaynames.

func (GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources)MarshalJSONadded inv0.164.0

typeGoogleCloudDialogflowCxV3beta1ImportFlowResponseadded inv0.46.0

type GoogleCloudDialogflowCxV3beta1ImportFlowResponse struct {// Flow: The unique identifier of the new flow. Format:// `projects//locations//agents//flows/`.Flowstring `json:"flow,omitempty"`// ForceSendFields is a list of field names (e.g. "Flow") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Flow") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ImportFlowResponse: The response message forFlows.ImportFlow.

func (GoogleCloudDialogflowCxV3beta1ImportFlowResponse)MarshalJSONadded inv0.46.0

typeGoogleCloudDialogflowCxV3beta1ImportIntentsMetadataadded inv0.143.0

type GoogleCloudDialogflowCxV3beta1ImportIntentsMetadata struct {}

GoogleCloudDialogflowCxV3beta1ImportIntentsMetadata: Metadata returned forthe Intents.ImportIntents long running operation.

typeGoogleCloudDialogflowCxV3beta1ImportIntentsResponseadded inv0.143.0

type GoogleCloudDialogflowCxV3beta1ImportIntentsResponse struct {// ConflictingResources: Info which resources have conflicts when// REPORT_CONFLICT merge_option is set in ImportIntentsRequest.ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources `json:"conflictingResources,omitempty"`// Intents: The unique identifier of the imported intents. Format:// `projects//locations//agents//intents/`.Intents []string `json:"intents,omitempty"`// ForceSendFields is a list of field names (e.g. "ConflictingResources") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConflictingResources") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ImportIntentsResponse: The response messagefor Intents.ImportIntents.

func (GoogleCloudDialogflowCxV3beta1ImportIntentsResponse)MarshalJSONadded inv0.143.0

typeGoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResourcesadded inv0.143.0

type GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources struct {// EntityDisplayNames: Display names of conflicting entities.EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`// IntentDisplayNames: Display names of conflicting intents.IntentDisplayNames []string `json:"intentDisplayNames,omitempty"`// ForceSendFields is a list of field names (e.g. "EntityDisplayNames") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EntityDisplayNames") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources:Conflicting resources detected during the import process. Only filled whenREPORT_CONFLICT is set in the request and there are conflicts in the displaynames.

func (GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources)MarshalJSONadded inv0.143.0

typeGoogleCloudDialogflowCxV3beta1ImportTestCasesMetadataadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata struct {// Errors: Errors for failed test cases.Errors []*GoogleCloudDialogflowCxV3beta1TestCaseError `json:"errors,omitempty"`// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Errors") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata: Metadata returned forthe TestCases.ImportTestCases long running operation.

func (GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1ImportTestCasesResponseadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse struct {// Names: The unique identifiers of the new test cases. Format:// `projects//locations//agents//testCases/`.Names []string `json:"names,omitempty"`// ForceSendFields is a list of field names (e.g. "Names") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Names") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse: The response messagefor TestCases.ImportTestCases.

func (GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1InlineDestinationadded inv0.143.0

type GoogleCloudDialogflowCxV3beta1InlineDestination struct {// Content: Output only. The uncompressed byte content for the objects. Only// populated in responses.Contentstring `json:"content,omitempty"`// ForceSendFields is a list of field names (e.g. "Content") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1InlineDestination: Inline destination for aDialogflow operation that writes or exports objects (e.g. intents) outsideof Dialogflow.

func (GoogleCloudDialogflowCxV3beta1InlineDestination)MarshalJSONadded inv0.143.0

typeGoogleCloudDialogflowCxV3beta1InputAudioConfigadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1InputAudioConfig 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). LINT: LEGACY_NAMES//   "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.//   "AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio samples// using G.711 PCMU/a-law.AudioEncodingstring `json:"audioEncoding,omitempty"`// BargeInConfig: Configuration of barge-in behavior during the streaming of// input audio.BargeInConfig *GoogleCloudDialogflowCxV3beta1BargeInConfig `json:"bargeInConfig,omitempty"`// EnableWordInfo: Optional. 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.EnableWordInfobool `json:"enableWordInfo,omitempty"`// Model: Optional. Which Speech model to select for the given request. For// more information, see Speech models// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).Modelstring `json:"model,omitempty"`// ModelVariant: Optional. 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.//   "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-models)// 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-models)// describes which models have enhanced variants.ModelVariantstring `json:"modelVariant,omitempty"`// OptOutConformerModelMigration: If `true`, the request will opt out for STT// conformer model migration. This field will be deprecated once force// migration takes place in June 2024. Please refer to Dialogflow CX Speech// model migration// (https://cloud.google.com/dialogflow/cx/docs/concept/speech-model-migration).OptOutConformerModelMigrationbool `json:"optOutConformerModelMigration,omitempty"`// PhraseHints: Optional. 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#phrase-hints) for more// details.PhraseHints []string `json:"phraseHints,omitempty"`// SampleRateHertz: 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.SampleRateHertzint64 `json:"sampleRateHertz,omitempty"`// SingleUtterance: Optional. 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.SingleUtterancebool `json:"singleUtterance,omitempty"`// ForceSendFields is a list of field names (e.g. "AudioEncoding") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1InputAudioConfig: Instructs the speechrecognizer on how to process the audio content.

func (GoogleCloudDialogflowCxV3beta1InputAudioConfig)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1Intentadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1Intent struct {// Description: Human readable description for better understanding an intent// like its scope, content, result etc. Maximum character limit: 140// characters.Descriptionstring `json:"description,omitempty"`// DisplayName: Required. The human-readable name of the intent, unique within// the agent.DisplayNamestring `json:"displayName,omitempty"`// IsFallback: Indicates whether this is a fallback intent. Currently only// default fallback intent is allowed in the agent, which is added upon agent// creation. Adding training phrases to fallback intent is useful in the case// of requests that are mistakenly matched, since training phrases assigned to// fallback intents act as negative examples that triggers no-match event.IsFallbackbool `json:"isFallback,omitempty"`// Labels: The key/value metadata to label an intent. Labels can contain// lowercase letters, digits and the symbols '-' and '_'. International// characters are allowed, including letters from unicase alphabets. Keys must// start with a letter. Keys and values can be no longer than 63 characters and// no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined// labels. Currently allowed Dialogflow defined labels include: * sys-head *// sys-contextual The above labels do not require value. "sys-head" means the// intent is a head intent. "sys-contextual" means the intent is a contextual// intent.Labels map[string]string `json:"labels,omitempty"`// Name: The unique identifier of the intent. Required for the// Intents.UpdateIntent method. Intents.CreateIntent populates the name// automatically. Format: `projects//locations//agents//intents/`.Namestring `json:"name,omitempty"`// Parameters: The collection of parameters associated with the intent.Parameters []*GoogleCloudDialogflowCxV3beta1IntentParameter `json:"parameters,omitempty"`// Priority: 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.Priorityint64 `json:"priority,omitempty"`// TrainingPhrases: The collection of training phrases the agent is trained on// to identify the intent.TrainingPhrases []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1Intent: An intent represents a user's intentto interact with a conversational agent. You can provide information for theDialogflow API to use to match user input to an intent by adding trainingphrases (i.e., examples of user input) to your intent.

func (GoogleCloudDialogflowCxV3beta1Intent)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1IntentInputadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1IntentInput struct {// Intent: Required. The unique identifier of the intent. Format:// `projects//locations//agents//intents/`.Intentstring `json:"intent,omitempty"`// ForceSendFields is a list of field names (e.g. "Intent") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Intent") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1IntentInput: Represents the intent to triggerprogrammatically rather than as a result of natural language processing.

func (GoogleCloudDialogflowCxV3beta1IntentInput)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1IntentParameteradded inv0.37.0

type GoogleCloudDialogflowCxV3beta1IntentParameter struct {// EntityType: Required. The entity type of the parameter. Format:// `projects/-/locations/-/agents/-/entityTypes/` for system entity types (for// example, `projects/-/locations/-/agents/-/entityTypes/sys.date`), or// `projects//locations//agents//entityTypes/` for developer entity types.EntityTypestring `json:"entityType,omitempty"`// Id: Required. The unique identifier of the parameter. This field is used by// training phrases to annotate their parts.Idstring `json:"id,omitempty"`// IsList: Indicates whether the parameter represents a list of values.IsListbool `json:"isList,omitempty"`// Redact: Indicates whether the parameter content should be redacted in log.// If redaction is enabled, the parameter content will be replaced by parameter// name during logging. Note: the parameter content is subject to redaction if// either parameter level redaction or entity type level redaction is enabled.Redactbool `json:"redact,omitempty"`// ForceSendFields is a list of field names (e.g. "EntityType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1IntentParameter: Represents an intentparameter.

func (GoogleCloudDialogflowCxV3beta1IntentParameter)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1IntentTrainingPhraseadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase struct {// Id: Output only. The unique identifier of the training phrase.Idstring `json:"id,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 `parameter_id` field is set.Parts []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart `json:"parts,omitempty"`// RepeatCount: Indicates how many times this example was added to the intent.RepeatCountint64 `json:"repeatCount,omitempty"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase: Represents an examplethat the agent is trained on to identify the intent.

func (GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePartadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart struct {// ParameterId: The parameter used to annotate this part of the training// phrase. This field is required for annotated parts of the training phrase.ParameterIdstring `json:"parameterId,omitempty"`// Text: Required. The text for this part.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "ParameterId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ParameterId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart: Represents a part ofa training phrase.

func (GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettingsadded inv0.139.0

type GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings struct {// DataStoreConnections: Optional. List of related data store connections.DataStoreConnections []*GoogleCloudDialogflowCxV3beta1DataStoreConnection `json:"dataStoreConnections,omitempty"`// Enabled: Whether Knowledge Connector is enabled or not.Enabledbool `json:"enabled,omitempty"`// TargetFlow: The target flow to transition to. Format:// `projects//locations//agents//flows/`.TargetFlowstring `json:"targetFlow,omitempty"`// TargetPage: The target page to transition to. Format:// `projects//locations//agents//flows//pages/`.TargetPagestring `json:"targetPage,omitempty"`// TriggerFulfillment: The fulfillment to be triggered. When the answers from// the Knowledge Connector are selected by Dialogflow, you can utitlize the// request scoped parameter `$request.knowledge.answers` (contains up to the 5// highest confidence answers) and `$request.knowledge.questions` (contains the// corresponding questions) to construct the fulfillment.TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`// ForceSendFields is a list of field names (e.g. "DataStoreConnections") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DataStoreConnections") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings: The KnowledgeConnector settings for this page or flow. This includes information such asthe attached Knowledge Bases, and the way to execute fulfillment.

func (GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings)MarshalJSONadded inv0.139.0

typeGoogleCloudDialogflowCxV3beta1LanguageInfoadded inv0.177.0

type GoogleCloudDialogflowCxV3beta1LanguageInfo struct {// ConfidenceScore: The confidence score of the detected language between 0 and// 1.ConfidenceScorefloat64 `json:"confidenceScore,omitempty"`// InputLanguageCode: The language code specified in the original request.InputLanguageCodestring `json:"inputLanguageCode,omitempty"`// ResolvedLanguageCode: The language code detected for this request based on// the user conversation.ResolvedLanguageCodestring `json:"resolvedLanguageCode,omitempty"`// ForceSendFields is a list of field names (e.g. "ConfidenceScore") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConfidenceScore") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1LanguageInfo: Represents the languageinformation of the request.

func (GoogleCloudDialogflowCxV3beta1LanguageInfo)MarshalJSONadded inv0.177.0

func (*GoogleCloudDialogflowCxV3beta1LanguageInfo)UnmarshalJSONadded inv0.177.0

typeGoogleCloudDialogflowCxV3beta1Pageadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1Page struct {// AdvancedSettings: Hierarchical advanced settings for this page. The settings// exposed at the lower level overrides the settings exposed at the higher// level.AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`// Description: The description of the page. The maximum length is 500// characters.Descriptionstring `json:"description,omitempty"`// DisplayName: Required. The human-readable name of the page, unique within// the flow.DisplayNamestring `json:"displayName,omitempty"`// EntryFulfillment: The fulfillment to call when the session is entering the// page.EntryFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"entryFulfillment,omitempty"`// EventHandlers: Handlers associated with the page to handle events such as// webhook errors, no match or no input.EventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandlers,omitempty"`// Form: The form associated with the page, used for collecting parameters// relevant to the page.Form *GoogleCloudDialogflowCxV3beta1Form `json:"form,omitempty"`// KnowledgeConnectorSettings: Optional. Knowledge connector configuration.KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`// Name: The unique identifier of the page. Required for the Pages.UpdatePage// method. Pages.CreatePage populates the name automatically. Format:// `projects//locations//agents//flows//pages/`.Namestring `json:"name,omitempty"`// TransitionRouteGroups: Ordered list of `TransitionRouteGroups` added to the// page. Transition route groups must be unique within a page. If the page// links both flow-level transition route groups and agent-level transition// route groups, the flow-level ones will have higher priority and will be put// before the agent-level ones. * If multiple transition routes within a page// scope refer to the same intent, then the precedence order is: page's// transition route -> page's transition route group -> flow's transition// routes. * If multiple transition route groups within a page contain the same// intent, then the first group in the ordered list takes precedence.// Format:`projects//locations//agents//flows//transitionRouteGroups/` or// `projects//locations//agents//transitionRouteGroups/` for agent-level// groups.TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`// TransitionRoutes: A list of transitions for the transition rules of this// page. They route the conversation to another page in the same flow, or// another flow. When we are in a certain page, the TransitionRoutes are// evaluated in the following order: * TransitionRoutes defined in the page// with intent specified. * TransitionRoutes defined in the transition route// groups with intent specified. * TransitionRoutes defined in flow with intent// specified. * TransitionRoutes defined in the transition route groups with// intent specified. * TransitionRoutes defined in the page with only condition// specified. * TransitionRoutes defined in the transition route groups with// only condition specified.TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`// ForceSendFields is a list of field names (e.g. "AdvancedSettings") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdvancedSettings") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1Page: A Dialogflow CX conversation (session)can be described and visualized as a state machine. The states of a CXsession are represented by pages. For each flow, you define many pages,where your combined pages can handle a complete conversation on the topicsthe flow is designed for. At any given moment, exactly one page is thecurrent page, the current page is considered active, and the flow associatedwith that page is considered active. Every flow has a special start page.When a flow initially becomes active, the start page page becomes thecurrent page. For each conversational turn, the current page will eitherstay the same or transition to another page. You configure each page tocollect information from the end-user that is relevant for theconversational state represented by the page. For more information, see thePage guide (https://cloud.google.com/dialogflow/cx/docs/concept/page).

func (GoogleCloudDialogflowCxV3beta1Page)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1PageInfoadded inv0.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/`.CurrentPagestring `json:"currentPage,omitempty"`// DisplayName: Always present for WebhookRequest. Ignored for WebhookResponse.// The display name of the current page.DisplayNamestring `json:"displayName,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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1PageInfo: Represents page informationcommunicated to and from the webhook.

func (GoogleCloudDialogflowCxV3beta1PageInfo)MarshalJSONadded inv0.26.0

typeGoogleCloudDialogflowCxV3beta1PageInfoFormInfoadded inv0.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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1PageInfoFormInfo: Represents form information.

func (GoogleCloudDialogflowCxV3beta1PageInfoFormInfo)MarshalJSONadded inv0.26.0

typeGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfoadded inv0.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.DisplayNamestring `json:"displayName,omitempty"`// JustCollected: Optional for WebhookRequest. Ignored for WebhookResponse.// Indicates if the parameter value was just collected on the last conversation// turn.JustCollectedbool `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.Requiredbool `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.Statestring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo: Representsparameter information.

func (GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo)MarshalJSONadded inv0.26.0

typeGoogleCloudDialogflowCxV3beta1QueryInputadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1QueryInput struct {// Audio: The natural language speech audio to be processed.Audio *GoogleCloudDialogflowCxV3beta1AudioInput `json:"audio,omitempty"`// Dtmf: The DTMF event to be handled.Dtmf *GoogleCloudDialogflowCxV3beta1DtmfInput `json:"dtmf,omitempty"`// Event: The event to be triggered.Event *GoogleCloudDialogflowCxV3beta1EventInput `json:"event,omitempty"`// Intent: The intent to be triggered.Intent *GoogleCloudDialogflowCxV3beta1IntentInput `json:"intent,omitempty"`// LanguageCode: Required. The language of the input. See Language Support// (https://cloud.google.com/dialogflow/cx/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.LanguageCodestring `json:"languageCode,omitempty"`// Text: The natural language text to be processed.Text *GoogleCloudDialogflowCxV3beta1TextInput `json:"text,omitempty"`// ToolCallResult: The results of a tool executed by the client.ToolCallResult *GoogleCloudDialogflowCxV3beta1ToolCallResult `json:"toolCallResult,omitempty"`// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Audio") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1QueryInput: Represents the query input. It cancontain one of: 1. A conversational query in the form of text. 2. An intentquery that specifies which intent to trigger. 3. Natural language speechaudio to be processed. 4. An event to be triggered. 5. DTMF digits to invokean intent and fill in parameter value. 6. The results of a tool executed bythe client.

func (GoogleCloudDialogflowCxV3beta1QueryInput)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1ResponseMessageadded inv0.26.0

type GoogleCloudDialogflowCxV3beta1ResponseMessage struct {// Channel: The channel which the response is associated with. Clients can// specify the channel via QueryParameters.channel, and only associated channel// response will be returned.Channelstring `json:"channel,omitempty"`// 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` 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"`// KnowledgeInfoCard: Represents info card for knowledge answers, to be better// rendered in Dialogflow Messenger.KnowledgeInfoCard *GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard `json:"knowledgeInfoCard,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.Payloadgoogleapi.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"`// TelephonyTransferCall: A signal that the client should transfer the phone// call connected to this agent to a third-party endpoint.TelephonyTransferCall *GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`// Text: Returns a text response.Text *GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"text,omitempty"`// ToolCall: Returns the definition of a tool call that should be executed by// the client.ToolCall *GoogleCloudDialogflowCxV3beta1ToolCall `json:"toolCall,omitempty"`// ForceSendFields is a list of field names (e.g. "Channel") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Channel") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ResponseMessage: Represents a response messagethat can be returned by a conversational agent. Response messages are alsoused for output audio synthesis. The approach is as follows: * If at leastone OutputAudioText response is present, then all OutputAudioText responsesare linearly concatenated, and the result is used for output audiosynthesis. * If the OutputAudioText responses are a mixture of text andSSML, then the concatenated result is treated as SSML; otherwise, the resultis treated as either text or SSML as appropriate. The agent designer shouldideally use either text or SSML consistently throughout the bot design. *Otherwise, all Text responses are linearly concatenated, and the result isused for output audio synthesis. This approach allows for more sophisticateduser experience scenarios, where the text displayed to the user may differfrom what is heard.

func (GoogleCloudDialogflowCxV3beta1ResponseMessage)MarshalJSONadded inv0.26.0

typeGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccessadded inv0.26.0

type GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess struct {// Metadata: Custom metadata. Dialogflow doesn't impose any structure on this.Metadatagoogleapi.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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess: Indicatesthat the conversation succeeded, i.e., the bot handled the issue that thecustomer talked to it about. Dialogflow only uses this to determine whichconversations should be counted as successful and doesn't process themetadata in this message in any way. Note that Dialogflow also considersconversations that get to the conversation end page as successful even ifthey don't return ConversationSuccess. You may set this, for example: * Inthe entry_fulfillment of a Page if entering the page indicates that theconversation succeeded. * In a webhook response when you determine that youhandled the customer issue.

func (GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess)MarshalJSONadded inv0.26.0

typeGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteractionadded inv0.29.0

type GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction struct {}

GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction: Indicates thatinteraction with the Dialogflow agent has ended. This message is generatedby Dialogflow only and not supposed to be defined by the user.

typeGoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCardadded inv0.139.0

type GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard struct {}

GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard: Representsinfo card response. If the response contains generative knowledgeprediction, Dialogflow will return a payload with Infobot Messengercompatible info card. Otherwise, the info card response is skipped.

typeGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoffadded inv0.29.0

type GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff struct {// Metadata: Custom metadata for your handoff procedure. Dialogflow doesn't// impose any structure on this.Metadatagoogleapi.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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff: Indicatesthat the conversation should be handed off to a live agent. Dialogflow onlyuses this to determine which conversations were handed off to a human agentfor measurement purposes. What else to do with this signal is up to you andyour handoff procedures. You may set this, for example: * In theentry_fulfillment of a Page if entering the page indicates something wentextremely wrong in the conversation. * In a webhook response when youdetermine that the customer issue can only be handled by a human.

func (GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff)MarshalJSONadded inv0.29.0

typeGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioadded inv0.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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio: Represents an audiomessage that is composed of both segments synthesized from the Dialogflowagent prompts and ones hosted externally at the specified URIs. The externalURIs are specified via play_audio. This message is generated by Dialogflowonly and not supposed to be defined by the user.

func (GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio)MarshalJSONadded inv0.29.0

typeGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegmentadded inv0.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.AllowPlaybackInterruptionbool `json:"allowPlaybackInterruption,omitempty"`// Audio: Raw audio synthesized from the Dialogflow agent's response using the// output config specified in the request.Audiostring `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.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment: Representsone segment of audio.

func (GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment)MarshalJSONadded inv0.29.0

typeGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioTextadded inv0.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.AllowPlaybackInterruptionbool `json:"allowPlaybackInterruption,omitempty"`// Ssml: The SSML text to be synthesized. For more information, see SSML// (/speech/text-to-speech/docs/ssml).Ssmlstring `json:"ssml,omitempty"`// Text: The raw text to be synthesized.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText: A text or ssmlresponse that is preferentially used for TTS output audio synthesis, asdescribed in the comment on the ResponseMessage message.

func (GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText)MarshalJSONadded inv0.29.0

typeGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudioadded inv0.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.AllowPlaybackInterruptionbool `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.AudioUristring `json:"audioUri,omitempty"`// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio: Specifies an audioclip to be played by the client as part of the response.

func (GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio)MarshalJSONadded inv0.29.0

typeGoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCalladded inv0.62.0

type GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall struct {// PhoneNumber: Transfer the call to a phone number in E.164 format// (https://en.wikipedia.org/wiki/E.164).PhoneNumberstring `json:"phoneNumber,omitempty"`// ForceSendFields is a list of field names (e.g. "PhoneNumber") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall:Represents the signal that telles the client to transfer the phone callconnected to the agent to a third-party endpoint.

func (GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall)MarshalJSONadded inv0.62.0

typeGoogleCloudDialogflowCxV3beta1ResponseMessageTextadded inv0.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.AllowPlaybackInterruptionbool `json:"allowPlaybackInterruption,omitempty"`// Text: Required. A collection of text response variants. If multiple variants// are defined, only one text response variant is returned at runtime.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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ResponseMessageText: The text responsemessage.

func (GoogleCloudDialogflowCxV3beta1ResponseMessageText)MarshalJSONadded inv0.26.0

typeGoogleCloudDialogflowCxV3beta1RunContinuousTestMetadataadded inv0.48.0

type GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata struct {// Errors: The test errors.Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Errors") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata: Metadata returnedfor the Environments.RunContinuousTest long running operation.

func (GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata)MarshalJSONadded inv0.48.0

typeGoogleCloudDialogflowCxV3beta1RunContinuousTestResponseadded inv0.48.0

type GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse struct {// ContinuousTestResult: The result for a continuous test run.ContinuousTestResult *GoogleCloudDialogflowCxV3beta1ContinuousTestResult `json:"continuousTestResult,omitempty"`// ForceSendFields is a list of field names (e.g. "ContinuousTestResult") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContinuousTestResult") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse: The responsemessage for Environments.RunContinuousTest.

func (GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse)MarshalJSONadded inv0.48.0

typeGoogleCloudDialogflowCxV3beta1RunTestCaseMetadataadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata struct {}

GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata: Metadata returned for theTestCases.RunTestCase long running operation. This message currently has nofields.

typeGoogleCloudDialogflowCxV3beta1RunTestCaseResponseadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1RunTestCaseResponse struct {// Result: The result.Result *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"result,omitempty"`// ForceSendFields is a list of field names (e.g. "Result") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Result") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1RunTestCaseResponse: The response message forTestCases.RunTestCase.

func (GoogleCloudDialogflowCxV3beta1RunTestCaseResponse)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1SessionInfoadded inv0.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.Parametersgoogleapi.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 session. Format: `projects//locations//agents//sessions/` or// `projects//locations//agents//environments//sessions/` if environment is// specified.Sessionstring `json:"session,omitempty"`// ForceSendFields is a list of field names (e.g. "Parameters") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1SessionInfo: Represents session informationcommunicated to and from the webhook.

func (GoogleCloudDialogflowCxV3beta1SessionInfo)MarshalJSONadded inv0.26.0

typeGoogleCloudDialogflowCxV3beta1TestCaseadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1TestCase struct {// CreationTime: Output only. When the test was created.CreationTimestring `json:"creationTime,omitempty"`// DisplayName: Required. The human-readable name of the test case, unique// within the agent. Limit of 200 characters.DisplayNamestring `json:"displayName,omitempty"`// LastTestResult: The latest test result.LastTestResult *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"lastTestResult,omitempty"`// Name: The unique identifier of the test case. TestCases.CreateTestCase will// populate the name automatically. Otherwise use format:// `projects//locations//agents//testCases/`.Namestring `json:"name,omitempty"`// Notes: Additional freeform notes about the test case. Limit of 400// characters.Notesstring `json:"notes,omitempty"`// Tags: Tags are short descriptions that users may apply to test cases for// organizational and filtering purposes. Each tag should start with "#" and// has a limit of 30 characters.Tags []string `json:"tags,omitempty"`// TestCaseConversationTurns: The conversation turns uttered when the test case// was created, in chronological order. These include the canonical set of// agent utterances that should occur when the agent is working properly.TestCaseConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"testCaseConversationTurns,omitempty"`// TestConfig: Config for the test case.TestConfig *GoogleCloudDialogflowCxV3beta1TestConfig `json:"testConfig,omitempty"`// ForceSendFields is a list of field names (e.g. "CreationTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreationTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1TestCase: Represents a test case.

func (GoogleCloudDialogflowCxV3beta1TestCase)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1TestCaseErroradded inv0.37.0

type GoogleCloudDialogflowCxV3beta1TestCaseError struct {// Status: The status associated with the test case.Status *GoogleRpcStatus `json:"status,omitempty"`// TestCase: The test case.TestCase *GoogleCloudDialogflowCxV3beta1TestCase `json:"testCase,omitempty"`// ForceSendFields is a list of field names (e.g. "Status") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Status") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1TestCaseError: Error info for importing atest.

func (GoogleCloudDialogflowCxV3beta1TestCaseError)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1TestCaseResultadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1TestCaseResult struct {// ConversationTurns: The conversation turns uttered during the test case// replay in chronological order.ConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"conversationTurns,omitempty"`// Environment: Environment where the test was run. If not set, it indicates// the draft environment.Environmentstring `json:"environment,omitempty"`// Name: The resource name for the test case result. Format:// `projects//locations//agents//testCases//results/`.Namestring `json:"name,omitempty"`// TestResult: Whether the test case passed in the agent environment.//// Possible values://   "TEST_RESULT_UNSPECIFIED" - Not specified. Should never be used.//   "PASSED" - The test passed.//   "FAILED" - The test did not pass.TestResultstring `json:"testResult,omitempty"`// TestTime: The time that the test was run.TestTimestring `json:"testTime,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversationTurns") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationTurns") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1TestCaseResult: Represents a result fromrunning a test case in an agent environment.

func (GoogleCloudDialogflowCxV3beta1TestCaseResult)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1TestConfigadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1TestConfig struct {// Flow: Flow name to start the test case with. Format:// `projects//locations//agents//flows/`. Only one of `flow` and `page` should// be set to indicate the starting point of the test case. If neither is set,// the test case will start with start page on the default start flow.Flowstring `json:"flow,omitempty"`// Page: The page to start the test case with. Format:// `projects//locations//agents//flows//pages/`. Only one of `flow` and `page`// should be set to indicate the starting point of the test case. If neither is// set, the test case will start with start page on the default start flow.Pagestring `json:"page,omitempty"`// TrackingParameters: Session parameters to be compared when calculating// differences.TrackingParameters []string `json:"trackingParameters,omitempty"`// ForceSendFields is a list of field names (e.g. "Flow") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Flow") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1TestConfig: Represents configurations for atest case.

func (GoogleCloudDialogflowCxV3beta1TestConfig)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1TestErroradded inv0.37.0

type GoogleCloudDialogflowCxV3beta1TestError struct {// Status: The status associated with the test.Status *GoogleRpcStatus `json:"status,omitempty"`// TestCase: The test case resource name.TestCasestring `json:"testCase,omitempty"`// TestTime: The timestamp when the test was completed.TestTimestring `json:"testTime,omitempty"`// ForceSendFields is a list of field names (e.g. "Status") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Status") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1TestError: Error info for running a test.

func (GoogleCloudDialogflowCxV3beta1TestError)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1TestRunDifferenceadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1TestRunDifference struct {// Description: A human readable description of the diff, showing the actual// output vs expected output.Descriptionstring `json:"description,omitempty"`// Type: The type of diff.//// Possible values://   "DIFF_TYPE_UNSPECIFIED" - Should never be used.//   "INTENT" - The intent.//   "PAGE" - The page.//   "PARAMETERS" - The parameters.//   "UTTERANCE" - The message utterance.//   "FLOW" - The flow.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1TestRunDifference: The description ofdifferences between original and replayed agent output.

func (GoogleCloudDialogflowCxV3beta1TestRunDifference)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1TextInputadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1TextInput struct {// Text: Required. The UTF-8 encoded natural language text to be processed.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "Text") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1TextInput: Represents the natural languagetext to be processed.

func (GoogleCloudDialogflowCxV3beta1TextInput)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1ToolCalladded inv0.185.0

type GoogleCloudDialogflowCxV3beta1ToolCall struct {// Action: Required. The name of the tool's action associated with this call.Actionstring `json:"action,omitempty"`// InputParameters: Optional. The action's input parameters.InputParametersgoogleapi.RawMessage `json:"inputParameters,omitempty"`// Tool: Required. The tool associated with this call. Format:// `projects//locations//agents//tools/`.Toolstring `json:"tool,omitempty"`// ForceSendFields is a list of field names (e.g. "Action") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ToolCall: Represents a call of a specifictool's action with the specified inputs.

func (GoogleCloudDialogflowCxV3beta1ToolCall)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowCxV3beta1ToolCallResultadded inv0.185.0

type GoogleCloudDialogflowCxV3beta1ToolCallResult struct {// Action: Required. The name of the tool's action associated with this call.Actionstring `json:"action,omitempty"`// Error: The tool call's error.Error *GoogleCloudDialogflowCxV3beta1ToolCallResultError `json:"error,omitempty"`// OutputParameters: The tool call's output parameters.OutputParametersgoogleapi.RawMessage `json:"outputParameters,omitempty"`// Tool: Required. The tool associated with this call. Format:// `projects//locations//agents//tools/`.Toolstring `json:"tool,omitempty"`// ForceSendFields is a list of field names (e.g. "Action") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ToolCallResult: The result of calling a tool'saction that has been executed by the client.

func (GoogleCloudDialogflowCxV3beta1ToolCallResult)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowCxV3beta1ToolCallResultErroradded inv0.185.0

type GoogleCloudDialogflowCxV3beta1ToolCallResultError struct {// Message: Optional. The error message of the function.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Message") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Message") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1ToolCallResultError: An error produced by thetool call.

func (GoogleCloudDialogflowCxV3beta1ToolCallResultError)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowCxV3beta1TransitionRouteadded inv0.37.0

type GoogleCloudDialogflowCxV3beta1TransitionRoute struct {// Condition: The condition to evaluate against form parameters or session// parameters. See the conditions reference// (https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least// one of `intent` or `condition` must be specified. When both `intent` and// `condition` are specified, the transition can only happen when both are// fulfilled.Conditionstring `json:"condition,omitempty"`// Description: Optional. The description of the transition route. The maximum// length is 500 characters.Descriptionstring `json:"description,omitempty"`// Intent: The unique identifier of an Intent. Format:// `projects//locations//agents//intents/`. Indicates that the transition can// only happen when the given intent is matched. At least one of `intent` or// `condition` must be specified. When both `intent` and `condition` are// specified, the transition can only happen when both are fulfilled.Intentstring `json:"intent,omitempty"`// Name: Output only. The unique identifier of this transition route.Namestring `json:"name,omitempty"`// TargetFlow: The target flow to transition to. Format:// `projects//locations//agents//flows/`.TargetFlowstring `json:"targetFlow,omitempty"`// TargetPage: The target page to transition to. Format:// `projects//locations//agents//flows//pages/`.TargetPagestring `json:"targetPage,omitempty"`// TriggerFulfillment: The fulfillment to call when the condition is satisfied.// At least one of `trigger_fulfillment` and `target` must be specified. When// both are defined, `trigger_fulfillment` is executed first.TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`// ForceSendFields is a list of field names (e.g. "Condition") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Condition") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1TransitionRoute: A transition route specifiesa intent that can be matched and/or a data condition that can be evaluatedduring a session. When a specified transition is matched, the followingactions are taken in order: * If there is a `trigger_fulfillment` associatedwith the transition, it will be called. * If there is a `target_page`associated with the transition, the session will transition into thespecified page. * If there is a `target_flow` associated with thetransition, the session will transition into the specified flow.

func (GoogleCloudDialogflowCxV3beta1TransitionRoute)MarshalJSONadded inv0.37.0

typeGoogleCloudDialogflowCxV3beta1TurnSignalsadded inv0.107.0

type GoogleCloudDialogflowCxV3beta1TurnSignals struct {// AgentEscalated: Whether agent responded with LiveAgentHandoff fulfillment.AgentEscalatedbool `json:"agentEscalated,omitempty"`// DtmfUsed: Whether user was using DTMF input.DtmfUsedbool `json:"dtmfUsed,omitempty"`// FailureReasons: Failure reasons of the turn.//// Possible values://   "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned.//   "FAILED_INTENT" - Whether NLU failed to recognize user intent.//   "FAILED_WEBHOOK" - Whether webhook failed during the turn.FailureReasons []string `json:"failureReasons,omitempty"`// NoMatch: Whether NLU predicted NO_MATCH.NoMatchbool `json:"noMatch,omitempty"`// NoUserInput: Whether user provided no input.NoUserInputbool `json:"noUserInput,omitempty"`// ReachedEndPage: Whether turn resulted in End Session page.ReachedEndPagebool `json:"reachedEndPage,omitempty"`// SentimentMagnitude: Sentiment magnitude of the user utterance if sentiment// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.SentimentMagnitudefloat64 `json:"sentimentMagnitude,omitempty"`// SentimentScore: Sentiment score of the user utterance if sentiment// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.SentimentScorefloat64 `json:"sentimentScore,omitempty"`// UserEscalated: Whether user was specifically asking for a live agent.UserEscalatedbool `json:"userEscalated,omitempty"`// WebhookStatuses: Human-readable statuses of the webhooks triggered during// this turn.WebhookStatuses []string `json:"webhookStatuses,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentEscalated") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentEscalated") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1TurnSignals: Collection of all signals thatwere extracted for a single turn of the conversation.

func (GoogleCloudDialogflowCxV3beta1TurnSignals)MarshalJSONadded inv0.107.0

func (*GoogleCloudDialogflowCxV3beta1TurnSignals)UnmarshalJSONadded inv0.123.0

typeGoogleCloudDialogflowCxV3beta1Webhookadded inv0.82.0

type GoogleCloudDialogflowCxV3beta1Webhook struct {// Disabled: Indicates whether the webhook is disabled.Disabledbool `json:"disabled,omitempty"`// DisplayName: Required. The human-readable name of the webhook, unique within// the agent.DisplayNamestring `json:"displayName,omitempty"`// GenericWebService: Configuration for a generic web service.GenericWebService *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService `json:"genericWebService,omitempty"`// Name: The unique identifier of the webhook. Required for the// Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name// automatically. Format: `projects//locations//agents//webhooks/`.Namestring `json:"name,omitempty"`// ServiceDirectory: Configuration for a Service Directory// (https://cloud.google.com/service-directory) service.ServiceDirectory *GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig `json:"serviceDirectory,omitempty"`// Timeout: Webhook execution timeout. Execution is considered failed if// Dialogflow doesn't receive a response from webhook at the end of the timeout// period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds.Timeoutstring `json:"timeout,omitempty"`// ForceSendFields is a list of field names (e.g. "Disabled") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Disabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1Webhook: Webhooks host the developer'sbusiness logic. During a session, webhooks allow the developer to use thedata extracted by Dialogflow's natural language processing to generatedynamic responses, validate collected data, or trigger actions on thebackend.

func (GoogleCloudDialogflowCxV3beta1Webhook)MarshalJSONadded inv0.82.0

typeGoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceadded inv0.82.0

type GoogleCloudDialogflowCxV3beta1WebhookGenericWebService struct {// AllowedCaCerts: Optional. Specifies a list of allowed custom CA certificates// (in DER format) for HTTPS verification. This overrides the default SSL trust// store. If this is empty or unspecified, Dialogflow will use Google's default// trust store to verify certificates. N.B. Make sure the HTTPS server// certificates are signed with "subject alt name". For instance a certificate// can be self-signed using the following command, “` openssl x509 -req -days// 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \// -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") “`AllowedCaCerts []string `json:"allowedCaCerts,omitempty"`// HttpMethod: Optional. HTTP method for the flexible webhook calls. Standard// webhook always uses POST.//// Possible values://   "HTTP_METHOD_UNSPECIFIED" - HTTP method not specified.//   "POST" - HTTP POST Method.//   "GET" - HTTP GET Method.//   "HEAD" - HTTP HEAD Method.//   "PUT" - HTTP PUT Method.//   "DELETE" - HTTP DELETE Method.//   "PATCH" - HTTP PATCH Method.//   "OPTIONS" - HTTP OPTIONS Method.HttpMethodstring `json:"httpMethod,omitempty"`// OauthConfig: Optional. The OAuth configuration of the webhook. If specified,// Dialogflow will initiate the OAuth client credential flow to exchange an// access token from the 3rd party platform and put it in the auth header.OauthConfig *GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig `json:"oauthConfig,omitempty"`// ParameterMapping: Optional. Maps the values extracted from specific fields// of the flexible webhook response into session parameters. - Key: session// parameter name - Value: field path in the webhook responseParameterMapping map[string]string `json:"parameterMapping,omitempty"`// Password: The password for HTTP Basic authentication.Passwordstring `json:"password,omitempty"`// RequestBody: Optional. Defines a custom JSON object as request body to send// to flexible webhook.RequestBodystring `json:"requestBody,omitempty"`// RequestHeaders: The HTTP request headers to send together with webhook// requests.RequestHeaders map[string]string `json:"requestHeaders,omitempty"`// SecretVersionForUsernamePassword: Optional. The SecretManager secret version// resource storing the username:password pair for HTTP Basic authentication.// Format: `projects/{project}/secrets/{secret}/versions/{version}`SecretVersionForUsernamePasswordstring `json:"secretVersionForUsernamePassword,omitempty"`// SecretVersionsForRequestHeaders: Optional. The HTTP request headers to send// together with webhook requests. Header values are stored in SecretManager// secret versions. When the same header name is specified in both// `request_headers` and `secret_versions_for_request_headers`, the value in// `secret_versions_for_request_headers` will be used.SecretVersionsForRequestHeaders map[string]GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue `json:"secretVersionsForRequestHeaders,omitempty"`// ServiceAccountAuthConfig: Optional. Configuration for service account// authentication.ServiceAccountAuthConfig *GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfig `json:"serviceAccountAuthConfig,omitempty"`// ServiceAgentAuth: Optional. Indicate the auth token type generated from the// Diglogflow service agent// (https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).// The generated token is sent in the Authorization header.//// Possible values://   "SERVICE_AGENT_AUTH_UNSPECIFIED" - Service agent auth type unspecified.// Default to ID_TOKEN.//   "NONE" - No token used.//   "ID_TOKEN" - Use [ID// token](https://cloud.google.com/docs/authentication/token-types#id)// generated from service agent. This can be used to access Cloud Function and// Cloud Run after you grant Invoker role to// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.//   "ACCESS_TOKEN" - Use [access// token](https://cloud.google.com/docs/authentication/token-types#access)// generated from service agent. This can be used to access other Google Cloud// APIs after you grant required roles to// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.ServiceAgentAuthstring `json:"serviceAgentAuth,omitempty"`// Uri: Required. The webhook URI for receiving POST requests. It must use// https protocol.Uristring `json:"uri,omitempty"`// Username: The user name for HTTP Basic authentication.Usernamestring `json:"username,omitempty"`// WebhookType: Optional. Type of the webhook.//// Possible values://   "WEBHOOK_TYPE_UNSPECIFIED" - Default value. This value is unused.//   "STANDARD" - Represents a standard webhook.//   "FLEXIBLE" - Represents a flexible webhook.WebhookTypestring `json:"webhookType,omitempty"`// ForceSendFields is a list of field names (e.g. "AllowedCaCerts") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AllowedCaCerts") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1WebhookGenericWebService: Representsconfiguration for a generic web service.

func (GoogleCloudDialogflowCxV3beta1WebhookGenericWebService)MarshalJSONadded inv0.82.0

typeGoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfigadded inv0.171.0

type GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig struct {// ClientId: Required. The client ID provided by the 3rd party platform.ClientIdstring `json:"clientId,omitempty"`// ClientSecret: Optional. The client secret provided by the 3rd party// platform.ClientSecretstring `json:"clientSecret,omitempty"`// Scopes: Optional. The OAuth scopes to grant.Scopes []string `json:"scopes,omitempty"`// SecretVersionForClientSecret: Optional. The name of the SecretManager secret// version resource storing the client secret. If this field is set, the// `client_secret` field will be ignored. Format:// `projects/{project}/secrets/{secret}/versions/{version}`SecretVersionForClientSecretstring `json:"secretVersionForClientSecret,omitempty"`// TokenEndpoint: Required. The token endpoint provided by the 3rd party// platform to exchange an access token.TokenEndpointstring `json:"tokenEndpoint,omitempty"`// ForceSendFields is a list of field names (e.g. "ClientId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ClientId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig:Represents configuration of OAuth client credential flow for 3rd party APIauthentication.

func (GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig)MarshalJSONadded inv0.171.0

typeGoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValueadded inv0.229.0

type GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue struct {// SecretVersion: Required. The SecretManager secret version resource storing// the header value. Format:// `projects/{project}/secrets/{secret}/versions/{version}`SecretVersionstring `json:"secretVersion,omitempty"`// ForceSendFields is a list of field names (e.g. "SecretVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "SecretVersion") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue: Represents the value of an HTTP header stored in a SecretManager secretversion.

func (GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue)MarshalJSONadded inv0.229.0

typeGoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfigadded inv0.255.0

type GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfig struct {// ServiceAccount: Required. The email address of the service account used to// authenticate the webhook call. Dialogflow uses this service account to// exchange an access token and the access token is then sent in the// `Authorization` header of the webhook request. The service account must have// the `roles/iam.serviceAccountTokenCreator` role granted to the Dialogflow// service agent// (https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).ServiceAccountstring `json:"serviceAccount,omitempty"`// ForceSendFields is a list of field names (e.g. "ServiceAccount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ServiceAccount") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfig: Configuration for authentication using a service account.

func (GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfig)MarshalJSONadded inv0.255.0

typeGoogleCloudDialogflowCxV3beta1WebhookRequestadded inv0.26.0

type GoogleCloudDialogflowCxV3beta1WebhookRequest struct {// DetectIntentResponseId: Always present. The unique identifier of the// DetectIntentResponse that will be returned to the API caller.DetectIntentResponseIdstring `json:"detectIntentResponseId,omitempty"`// DtmfDigits: If DTMF was provided as input, this field will contain the DTMF// digits.DtmfDigitsstring `json:"dtmfDigits,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"`// LanguageCode: The language code specified in the original request.LanguageCodestring `json:"languageCode,omitempty"`// LanguageInfo: Information about the language of the request.LanguageInfo *GoogleCloudDialogflowCxV3beta1LanguageInfo `json:"languageInfo,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.Payloadgoogleapi.RawMessage `json:"payload,omitempty"`// SentimentAnalysisResult: The sentiment analysis result of the current user// request. The field is filled when sentiment analysis is configured to be// enabled for the request.SentimentAnalysisResult *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`// SessionInfo: Information about session status.SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`// Text: If natural language text was provided as input, this field will// contain a copy of the text.Textstring `json:"text,omitempty"`// Transcript: If natural language speech audio was provided as input, this// field will contain the transcript for the audio.Transcriptstring `json:"transcript,omitempty"`// TriggerEvent: If an event was provided as input, this field will contain the// name of the event.TriggerEventstring `json:"triggerEvent,omitempty"`// TriggerIntent: If an intent was provided as input, this field will contain a// copy of the intent identifier. Format:// `projects//locations//agents//intents/`.TriggerIntentstring `json:"triggerIntent,omitempty"`// ForceSendFields is a list of field names (e.g. "DetectIntentResponseId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1WebhookRequest: The request message for awebhook call. The request is sent as a JSON object and the field names willbe presented in camel cases. You may see undocumented fields in an actualrequest. These fields are used internally by Dialogflow and should beignored.

func (GoogleCloudDialogflowCxV3beta1WebhookRequest)MarshalJSONadded inv0.26.0

typeGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfoadded inv0.26.0

type GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo struct {// Tag: Always present. The value of the Fulfillment.tag field will be// populated in this field by Dialogflow when the associated webhook is called.// The tag is typically used by the webhook service to identify which// fulfillment is being called, but it could be used for other purposes.Tagstring `json:"tag,omitempty"`// ForceSendFields is a list of field names (e.g. "Tag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo: Representsfulfillment information communicated to the webhook.

func (GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo)MarshalJSONadded inv0.26.0

typeGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoadded inv0.26.0

type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo struct {// Confidence: The confidence of the matched intent. Values range from 0.0// (completely uncertain) to 1.0 (completely certain).Confidencefloat64 `json:"confidence,omitempty"`// DisplayName: Always present. The display name of the last matched intent.DisplayNamestring `json:"displayName,omitempty"`// LastMatchedIntent: Always present. The unique identifier of the last matched// intent. Format: `projects//locations//agents//intents/`.LastMatchedIntentstring `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. "Confidence") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Confidence") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo: Represents intentinformation communicated to the webhook.

func (GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo)MarshalJSONadded inv0.26.0

func (*GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo)UnmarshalJSONadded inv0.39.0

typeGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValueadded inv0.26.0

type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue struct {// OriginalValue: Always present. Original text value extracted from user// utterance.OriginalValuestring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue:Represents a value for an intent parameter.

func (GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue)MarshalJSONadded inv0.26.0

typeGoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResultadded inv0.41.0

type GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult struct {// Magnitude: A non-negative number in the [0, +inf) range, which represents// the absolute magnitude of sentiment, regardless of score (positive or// negative).Magnitudefloat64 `json:"magnitude,omitempty"`// Score: Sentiment score between -1.0 (negative sentiment) and 1.0 (positive// sentiment).Scorefloat64 `json:"score,omitempty"`// ForceSendFields is a list of field names (e.g. "Magnitude") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult:Represents the result of sentiment analysis.

func (GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult)MarshalJSONadded inv0.41.0

func (*GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult)UnmarshalJSONadded inv0.41.0

typeGoogleCloudDialogflowCxV3beta1WebhookResponseadded inv0.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.Payloadgoogleapi.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/`.TargetFlowstring `json:"targetFlow,omitempty"`// TargetPage: The target page to transition to. Format:// `projects//locations//agents//flows//pages/`.TargetPagestring `json:"targetPage,omitempty"`// ForceSendFields is a list of field names (e.g. "FulfillmentResponse") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1WebhookResponse: The response message for awebhook call.

func (GoogleCloudDialogflowCxV3beta1WebhookResponse)MarshalJSONadded inv0.26.0

typeGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponseadded inv0.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.MergeBehaviorstring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse: Representsa fulfillment response to the user.

func (GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse)MarshalJSONadded inv0.26.0

typeGoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfigadded inv0.82.0

type GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig struct {// GenericWebService: Generic Service configuration of this webhook.GenericWebService *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService `json:"genericWebService,omitempty"`// Service: Required. The name of Service Directory// (https://cloud.google.com/service-directory) service. Format:// `projects//locations//namespaces//services/`. `Location ID` of the service// directory must be the same as the location of the agent.Servicestring `json:"service,omitempty"`// ForceSendFields is a list of field names (e.g. "GenericWebService") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "GenericWebService") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig: Representsconfiguration for a Service Directory(https://cloud.google.com/service-directory) service.

func (GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig)MarshalJSONadded inv0.82.0

typeGoogleCloudDialogflowV2AgentCoachingInstructionadded inv0.252.0

type GoogleCloudDialogflowV2AgentCoachingInstruction struct {// AgentAction: Optional. The action that human agent should take. For example,// "apologize for the slow shipping". If the users only want to use agent// coaching for intent detection, agent_action can be emptyAgentActionstring `json:"agentAction,omitempty"`// Condition: Optional. The condition of the instruction. For example, "the// customer wants to cancel an order". If the users want the instruction to be// triggered unconditionally, the condition can be empty.Conditionstring `json:"condition,omitempty"`// DisplayDetails: Optional. The detailed description of this instruction.DisplayDetailsstring `json:"displayDetails,omitempty"`// DisplayName: Optional. Display name for the instruction.DisplayNamestring `json:"displayName,omitempty"`// DuplicateCheckResult: Output only. Duplication check for the// AgentCoachingInstruction.DuplicateCheckResult *GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult `json:"duplicateCheckResult,omitempty"`// SystemAction: Optional. The action that system should take. For example,// "call GetOrderTime with order_number={order number provided by the// customer}". If the users don't have plugins or don't want to trigger// plugins, the system_action can be emptySystemActionstring `json:"systemAction,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentAction") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentAction") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2AgentCoachingInstruction: Agent Coaching instructionsthat customer can configure.

func (GoogleCloudDialogflowV2AgentCoachingInstruction)MarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultadded inv0.252.0

type GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult struct {// DuplicateSuggestions: Output only. The duplicate suggestions.DuplicateSuggestions []*GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion `json:"duplicateSuggestions,omitempty"`// ForceSendFields is a list of field names (e.g. "DuplicateSuggestions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DuplicateSuggestions") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult:Duplication check for the suggestion.

func (GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult)MarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestionadded inv0.252.0

type GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion struct {// AnswerRecord: Output only. The answer record id of the past duplicate// suggestion.AnswerRecordstring `json:"answerRecord,omitempty"`// SimilarityScore: Output only. The similarity score of between the past and// current suggestion.SimilarityScorefloat64 `json:"similarityScore,omitempty"`// SuggestionIndex: Output only. The index of the duplicate suggestion in the// past suggestion list.SuggestionIndexint64 `json:"suggestionIndex,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerRecord") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerRecord") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion: The duplicate suggestion details.

func (GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion)MarshalJSONadded inv0.252.0

func (*GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion)UnmarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2AgentCoachingSuggestionadded inv0.252.0

type GoogleCloudDialogflowV2AgentCoachingSuggestion struct {// AgentActionSuggestions: Optional. Suggested actions for the agent to take.AgentActionSuggestions []*GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion `json:"agentActionSuggestions,omitempty"`// ApplicableInstructions: Optional. Instructions applicable based on the// current context.ApplicableInstructions []*GoogleCloudDialogflowV2AgentCoachingInstruction `json:"applicableInstructions,omitempty"`// SampleResponses: Optional. Sample response for the Agent.SampleResponses []*GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse `json:"sampleResponses,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentActionSuggestions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentActionSuggestions") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2AgentCoachingSuggestion: Suggestion for coachingagents.

func (GoogleCloudDialogflowV2AgentCoachingSuggestion)MarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestionadded inv0.252.0

type GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion struct {// AgentAction: Optional. The suggested action for the agent.AgentActionstring `json:"agentAction,omitempty"`// DuplicateCheckResult: Output only. Duplicate check result for the agent// action suggestion.DuplicateCheckResult *GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult `json:"duplicateCheckResult,omitempty"`// Sources: Output only. Sources for the agent action suggestion.Sources *GoogleCloudDialogflowV2AgentCoachingSuggestionSources `json:"sources,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentAction") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentAction") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion: Actionssuggested for the agent. This is based on applicable instructions.

func (GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion)MarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultadded inv0.252.0

type GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult struct {// DuplicateSuggestions: Output only. The duplicate suggestions.DuplicateSuggestions []*GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion `json:"duplicateSuggestions,omitempty"`// ForceSendFields is a list of field names (e.g. "DuplicateSuggestions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DuplicateSuggestions") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult:Duplication check for the suggestion.

func (GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult)MarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestionadded inv0.252.0

type GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion struct {// AnswerRecord: Output only. The answer record id of the past duplicate// suggestion.AnswerRecordstring `json:"answerRecord,omitempty"`// SimilarityScore: Output only. The similarity score of between the past and// current suggestion.SimilarityScorefloat64 `json:"similarityScore,omitempty"`// Sources: Output only. Sources for the suggestion.Sources *GoogleCloudDialogflowV2AgentCoachingSuggestionSources `json:"sources,omitempty"`// SuggestionIndex: Output only. The index of the duplicate suggestion in the// past suggestion list.SuggestionIndexint64 `json:"suggestionIndex,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerRecord") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerRecord") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion: The duplicate suggestion details. Keeping answer_record andsources together as they are identifiers for duplicate suggestions.

func (GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion)MarshalJSONadded inv0.252.0

func (*GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion)UnmarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponseadded inv0.252.0

type GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse struct {// DuplicateCheckResult: Output only. Duplicate check result for the sample// response.DuplicateCheckResult *GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult `json:"duplicateCheckResult,omitempty"`// ResponseText: Optional. Sample response for Agent in text.ResponseTextstring `json:"responseText,omitempty"`// Sources: Output only. Sources for the Sample Response.Sources *GoogleCloudDialogflowV2AgentCoachingSuggestionSources `json:"sources,omitempty"`// ForceSendFields is a list of field names (e.g. "DuplicateCheckResult") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DuplicateCheckResult") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse: Sampleresponse that the agent can use. This could be based on applicableinstructions and ingested data from other systems.

func (GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse)MarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2AgentCoachingSuggestionSourcesadded inv0.252.0

type GoogleCloudDialogflowV2AgentCoachingSuggestionSources struct {// InstructionIndexes: Output only. Source instruction indexes for the// suggestion. This is the index of the applicable_instructions field.InstructionIndexes []int64 `json:"instructionIndexes,omitempty"`// ForceSendFields is a list of field names (e.g. "InstructionIndexes") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InstructionIndexes") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2AgentCoachingSuggestionSources: Sources for thesuggestion.

func (GoogleCloudDialogflowV2AgentCoachingSuggestionSources)MarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2AnnotatedMessagePartadded inv0.15.0

type GoogleCloudDialogflowV2AnnotatedMessagePart struct {// EntityType: The Dialogflow system entity type// (https://cloud.google.com/dialogflow/docs/reference/system-entities) of this// message part. If this is empty, Dialogflow could not annotate the phrase// part with a system entity.EntityTypestring `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.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "EntityType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2AnnotatedMessagePart: Represents a part of a messagepossibly annotated with an entity. The part can be an entity or purely apart of the message between two entities or message start/end.

func (GoogleCloudDialogflowV2AnnotatedMessagePart)MarshalJSONadded inv0.15.0

typeGoogleCloudDialogflowV2ArticleAnsweradded inv0.12.0

type GoogleCloudDialogflowV2ArticleAnswer struct {// AnswerRecord: The name of answer record, in the format of// "projects//locations//answerRecords/"AnswerRecordstring `json:"answerRecord,omitempty"`// Confidence: Article match confidence. The system's confidence score that// this article is a good match for this conversation, as a value from 0.0// (completely uncertain) to 1.0 (completely certain).Confidencefloat64 `json:"confidence,omitempty"`// Metadata: A map that contains metadata about the answer and the document// from which it originates.Metadata map[string]string `json:"metadata,omitempty"`// Snippets: Article snippets.Snippets []string `json:"snippets,omitempty"`// Title: The article title.Titlestring `json:"title,omitempty"`// Uri: The article URI.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerRecord") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerRecord") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2ArticleAnswer: Represents article answer.

func (GoogleCloudDialogflowV2ArticleAnswer)MarshalJSONadded inv0.12.0

func (*GoogleCloudDialogflowV2ArticleAnswer)UnmarshalJSONadded inv0.12.0

func (s *GoogleCloudDialogflowV2ArticleAnswer) UnmarshalJSON(data []byte)error

typeGoogleCloudDialogflowV2ArticleSuggestionModelMetadataadded inv0.71.0

type GoogleCloudDialogflowV2ArticleSuggestionModelMetadata struct {// TrainingModelType: Optional. Type of the article suggestion model. If not// provided, model_type is used.//// Possible values://   "MODEL_TYPE_UNSPECIFIED" - ModelType unspecified.//   "SMART_REPLY_DUAL_ENCODER_MODEL" - ModelType smart reply dual encoder// model.//   "SMART_REPLY_BERT_MODEL" - ModelType smart reply bert model.TrainingModelTypestring `json:"trainingModelType,omitempty"`// ForceSendFields is a list of field names (e.g. "TrainingModelType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "TrainingModelType") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2ArticleSuggestionModelMetadata: Metadata for articlesuggestion models.

func (GoogleCloudDialogflowV2ArticleSuggestionModelMetadata)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2BatchUpdateEntityTypesResponse

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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse: The response messagefor EntityTypes.BatchUpdateEntityTypes.

func (GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse)MarshalJSON

typeGoogleCloudDialogflowV2BatchUpdateIntentsResponse

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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2BatchUpdateIntentsResponse: The response message forIntents.BatchUpdateIntents.

func (GoogleCloudDialogflowV2BatchUpdateIntentsResponse)MarshalJSON

typeGoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadataadded inv0.71.0

type GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata struct {// ConversationProfile: The resource name of the conversation profile. Format:// `projects//locations//conversationProfiles/`ConversationProfilestring `json:"conversationProfile,omitempty"`// CreateTime: Timestamp whe the request was created. The time is measured on// server side.CreateTimestring `json:"createTime,omitempty"`// ParticipantRole: Required. The participant role to remove the suggestion// feature config. Only HUMAN_AGENT or END_USER can be used.//// 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.ParticipantRolestring `json:"participantRole,omitempty"`// SuggestionFeatureType: Required. The type of the suggestion feature to// remove.//// Possible values://   "TYPE_UNSPECIFIED" - Unspecified feature type.//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.//   "FAQ" - Run FAQ model for chat.//   "SMART_REPLY" - Run smart reply model for chat.//   "CONVERSATION_SUMMARIZATION" - Run conversation summarization model for// chat.//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or// text generated query.//   "KNOWLEDGE_ASSIST" - Run knowledge assist with automatic query generation.SuggestionFeatureTypestring `json:"suggestionFeatureType,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversationProfile") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationProfile") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata:Metadata for a ConversationProfiles.ClearSuggestionFeatureConfig operation.

func (GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2Context

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.LifespanCountint64 `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`Namestring `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 then use map, otherwise, depending on the parameter value// type, it could be one of string, number, boolean, null, list or map. *// MapValue value: If parameter's entity type is a composite entity then use// map from composite entity property names to property values, otherwise, use// parameter value.Parametersgoogleapi.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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2Context: Dialogflow contexts are similar to naturallanguage context. If a person says to you "they are orange", you needcontext in order to understand what "they" is referring to. Similarly, forDialogflow to handle an end-user expression like that, it needs to beprovided with context in order to correctly match an intent. Using contexts,you can control the flow of a conversation. You can configure contexts foran intent by setting input and output contexts, which are identified bystring names. When an intent is matched, any configured output contexts forthat intent become active. While any contexts are active, Dialogflow is morelikely to match intents that are configured with input contexts thatcorrespond to the currently active contexts. For more information aboutcontext, see the Contexts guide(https://cloud.google.com/dialogflow/docs/contexts-overview).

func (GoogleCloudDialogflowV2Context)MarshalJSON

func (sGoogleCloudDialogflowV2Context) MarshalJSON() ([]byte,error)

typeGoogleCloudDialogflowV2ConversationEventadded inv0.15.0

type GoogleCloudDialogflowV2ConversationEvent struct {// Conversation: The unique identifier of the conversation this notification// refers to. Format: `projects//conversations/`.Conversationstring `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"`// NewRecognitionResultPayload: Payload of NEW_RECOGNITION_RESULT event.NewRecognitionResultPayload *GoogleCloudDialogflowV2StreamingRecognitionResult `json:"newRecognitionResultPayload,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. The event is fired for every CompleteConversation call, even if the// conversation is already closed.//   "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//   "NEW_RECOGNITION_RESULT" - An existing conversation has received a new// speech recognition result. This is mainly for delivering intermediate// transcripts. The notification is configured in// ConversationProfile.new_recognition_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.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Conversation") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2ConversationEvent: Represents a notification sent toPub/Sub subscribers for conversation lifecycle events.

func (GoogleCloudDialogflowV2ConversationEvent)MarshalJSONadded inv0.15.0

typeGoogleCloudDialogflowV2ConversationModeladded inv0.71.0

type GoogleCloudDialogflowV2ConversationModel struct {// ArticleSuggestionModelMetadata: Metadata for article suggestion models.ArticleSuggestionModelMetadata *GoogleCloudDialogflowV2ArticleSuggestionModelMetadata `json:"articleSuggestionModelMetadata,omitempty"`// CreateTime: Output only. Creation time of this model.CreateTimestring `json:"createTime,omitempty"`// Datasets: Required. Datasets used to create model.Datasets []*GoogleCloudDialogflowV2InputDataset `json:"datasets,omitempty"`// DisplayName: Required. The display name of the model. At most 64 bytes long.DisplayNamestring `json:"displayName,omitempty"`// LanguageCode: Language code for the conversation model. If not specified,// the language is en-US. Language at ConversationModel should be set for all// non en-us languages. This should be a BCP-47// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:// "en-US".LanguageCodestring `json:"languageCode,omitempty"`// Name: ConversationModel resource name. Format:// `projects//conversationModels/`Namestring `json:"name,omitempty"`// SatisfiesPzi: Output only. A read only boolean field reflecting Zone// Isolation status of the model.SatisfiesPzibool `json:"satisfiesPzi,omitempty"`// SatisfiesPzs: Output only. A read only boolean field reflecting Zone// Separation status of the model.SatisfiesPzsbool `json:"satisfiesPzs,omitempty"`// SmartReplyModelMetadata: Metadata for smart reply models.SmartReplyModelMetadata *GoogleCloudDialogflowV2SmartReplyModelMetadata `json:"smartReplyModelMetadata,omitempty"`// State: Output only. State of the model. A model can only serve prediction// requests after it gets deployed.//// Possible values://   "STATE_UNSPECIFIED" - Should not be used, an un-set enum has this value by// default.//   "CREATING" - Model being created.//   "UNDEPLOYED" - Model is not deployed but ready to deploy.//   "DEPLOYING" - Model is deploying.//   "DEPLOYED" - Model is deployed and ready to use.//   "UNDEPLOYING" - Model is undeploying.//   "DELETING" - Model is deleting.//   "FAILED" - Model is in error state. Not ready to deploy and use.//   "PENDING" - Model is being created but the training has not started, The// model may remain in this state until there is enough capacity to start// training.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g.// "ArticleSuggestionModelMetadata") to unconditionally include in API// requests. By default, fields with empty or default values are omitted from// API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ArticleSuggestionModelMetadata")// to include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2ConversationModel: Represents a conversation model.

func (GoogleCloudDialogflowV2ConversationModel)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2CreateConversationDatasetOperationMetadataadded inv0.71.0

type GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata struct {// ConversationDataset: The resource name of the conversation dataset that will// be created. Format: `projects//locations//conversationDatasets/`ConversationDatasetstring `json:"conversationDataset,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversationDataset") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationDataset") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata: Metadatafor CreateConversationDataset.

func (GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata)MarshalJSONadded inv0.96.0

typeGoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadataadded inv0.71.0

type GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata struct {// ConversationModel: The resource name of the conversation model. Format:// `projects//locations//conversationModels/`ConversationModelstring `json:"conversationModel,omitempty"`// ConversationModelEvaluation: The resource name of the conversation model.// Format: `projects//locations//conversationModels//evaluations/`ConversationModelEvaluationstring `json:"conversationModelEvaluation,omitempty"`// CreateTime: Timestamp when the request to create conversation model was// submitted. The time is measured on server side.CreateTimestring `json:"createTime,omitempty"`// State: State of CreateConversationModel operation.//// Possible values://   "STATE_UNSPECIFIED" - Operation status not specified.//   "INITIALIZING" - The operation is being prepared.//   "RUNNING" - The operation is running.//   "CANCELLED" - The operation is cancelled.//   "SUCCEEDED" - The operation has succeeded.//   "FAILED" - The operation has failed.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversationModel") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationModel") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata:Metadata for a ConversationModels.CreateConversationModelEvaluationoperation.

func (GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2CreateConversationModelOperationMetadataadded inv0.71.0

type GoogleCloudDialogflowV2CreateConversationModelOperationMetadata struct {// ConversationModel: The resource name of the conversation model. Format:// `projects//conversationModels/`ConversationModelstring `json:"conversationModel,omitempty"`// CreateTime: Timestamp when the request to create conversation model is// submitted. The time is measured on server side.CreateTimestring `json:"createTime,omitempty"`// DoneTime: The time when the operation finished.DoneTimestring `json:"doneTime,omitempty"`// State: State of CreateConversationModel operation.//// Possible values://   "STATE_UNSPECIFIED" - Invalid.//   "PENDING" - Request is submitted, but training has not started yet. The// model may remain in this state until there is enough capacity to start// training.//   "SUCCEEDED" - The training has succeeded.//   "FAILED" - The training has succeeded.//   "CANCELLED" - The training has been cancelled.//   "CANCELLING" - The training is in cancelling state.//   "TRAINING" - Custom model is training.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversationModel") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationModel") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2CreateConversationModelOperationMetadata: Metadatafor a ConversationModels.CreateConversationModel operation.

func (GoogleCloudDialogflowV2CreateConversationModelOperationMetadata)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadataadded inv0.71.0

type GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata struct {}

GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata: Metadatafor DeleteConversationDataset.

typeGoogleCloudDialogflowV2DeleteConversationModelOperationMetadataadded inv0.71.0

type GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata struct {// ConversationModel: The resource name of the conversation model. Format:// `projects//conversationModels/`ConversationModelstring `json:"conversationModel,omitempty"`// CreateTime: Timestamp when delete conversation model request was created.// The time is measured on server side.CreateTimestring `json:"createTime,omitempty"`// DoneTime: The time when the operation finished.DoneTimestring `json:"doneTime,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversationModel") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationModel") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata: Metadatafor a ConversationModels.DeleteConversationModel operation.

func (GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2DeployConversationModelOperationMetadataadded inv0.71.0

type GoogleCloudDialogflowV2DeployConversationModelOperationMetadata struct {// ConversationModel: The resource name of the conversation model. Format:// `projects//conversationModels/`ConversationModelstring `json:"conversationModel,omitempty"`// CreateTime: Timestamp when request to deploy conversation model was// submitted. The time is measured on server side.CreateTimestring `json:"createTime,omitempty"`// DoneTime: The time when the operation finished.DoneTimestring `json:"doneTime,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversationModel") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationModel") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2DeployConversationModelOperationMetadata: Metadatafor a ConversationModels.DeployConversationModel operation.

func (GoogleCloudDialogflowV2DeployConversationModelOperationMetadata)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2EncryptionSpecadded inv0.149.0

type GoogleCloudDialogflowV2EncryptionSpec struct {// KmsKey: Required. The name of customer-managed encryption key that is used// to secure a resource and its sub-resources. If empty, the resource is// secured by the default Google encryption key. Only the key in the same// location as this resource is allowed to be used for encryption. Format:// `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`KmsKeystring `json:"kmsKey,omitempty"`// Name: Immutable. The resource name of the encryption key specification// resource. Format: projects/{project}/locations/{location}/encryptionSpecNamestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "KmsKey") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "KmsKey") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2EncryptionSpec: A customer-managed encryption keyspecification that can be applied to all created resources (e.g.Conversation).

func (GoogleCloudDialogflowV2EncryptionSpec)MarshalJSONadded inv0.149.0

typeGoogleCloudDialogflowV2EntityType

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.AutoExpansionModestring `json:"autoExpansionMode,omitempty"`// DisplayName: Required. The name of the entity type.DisplayNamestring `json:"displayName,omitempty"`// EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction during// classification.EnableFuzzyExtractionbool `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.Kindstring `json:"kind,omitempty"`// Name: The unique identifier of the entity type. Required for// EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods.// Format: `projects//agent/entityTypes/`.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "AutoExpansionMode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2EntityType: Each intent parameter has a type, calledthe entity type, which dictates exactly how data from an end-user expressionis extracted. Dialogflow provides predefined system entities that can matchmany common types of data. For example, there are system entities formatching dates, times, colors, email addresses, and so on. You can alsocreate your own custom entities for matching custom data. For example, youcould define a vegetable entity that can match the types of vegetablesavailable for purchase with a grocery store agent. For more information, seethe Entity guide(https://cloud.google.com/dialogflow/docs/entities-overview).

func (GoogleCloudDialogflowV2EntityType)MarshalJSON

func (sGoogleCloudDialogflowV2EntityType) MarshalJSON() ([]byte,error)

typeGoogleCloudDialogflowV2EntityTypeEntity

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).Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Synonyms") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2EntityTypeEntity: An **entity entry** for anassociated entity type.

func (GoogleCloudDialogflowV2EntityTypeEntity)MarshalJSON

typeGoogleCloudDialogflowV2EventInput

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. This field is// ignored when used in the context of a WebhookResponse.followup_event_input// field, because the language was already defined in the originating detect// intent request.LanguageCodestring `json:"languageCode,omitempty"`// Name: Required. The unique identifier of the event.Namestring `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 then use map, otherwise, depending on the parameter value// type, it could be one of string, number, boolean, null, list or map. *// MapValue value: If parameter's entity type is a composite entity then use// map from composite entity property names to property values, otherwise, use// parameter value.Parametersgoogleapi.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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2EventInput: Events allow for matching intents byevent name instead of the natural language input. For instance, input “ cantrigger a personalized welcome response. The parameter `name` may be used bythe agent in the response: "Hello #welcome_event.name! What can I do foryou today?".

func (GoogleCloudDialogflowV2EventInput)MarshalJSON

func (sGoogleCloudDialogflowV2EventInput) MarshalJSON() ([]byte,error)

typeGoogleCloudDialogflowV2ExportAgentResponse

type GoogleCloudDialogflowV2ExportAgentResponse struct {// AgentContent: Zip compressed raw byte content for agent.AgentContentstring `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`.AgentUristring `json:"agentUri,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentContent") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2ExportAgentResponse: The response message forAgents.ExportAgent.

func (GoogleCloudDialogflowV2ExportAgentResponse)MarshalJSON

typeGoogleCloudDialogflowV2ExportOperationMetadataadded inv0.71.0

type GoogleCloudDialogflowV2ExportOperationMetadata struct {// ExportedGcsDestination: Cloud Storage file path of the exported data.ExportedGcsDestination *GoogleCloudDialogflowV2GcsDestination `json:"exportedGcsDestination,omitempty"`// ForceSendFields is a list of field names (e.g. "ExportedGcsDestination") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExportedGcsDestination") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2ExportOperationMetadata: Metadata related to theExport Data Operations (e.g. ExportDocument).

func (GoogleCloudDialogflowV2ExportOperationMetadata)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2FaqAnsweradded inv0.12.0

type GoogleCloudDialogflowV2FaqAnswer struct {// Answer: The piece of text from the `source` knowledge base document.Answerstring `json:"answer,omitempty"`// AnswerRecord: The name of answer record, in the format of// "projects//locations//answerRecords/"AnswerRecordstring `json:"answerRecord,omitempty"`// Confidence: The system's confidence score that this Knowledge answer is a// good match for this conversational query, range from 0.0 (completely// uncertain) to 1.0 (completely certain).Confidencefloat64 `json:"confidence,omitempty"`// Metadata: A map that contains metadata about the answer and the document// from which it originates.Metadata map[string]string `json:"metadata,omitempty"`// Question: The corresponding FAQ question.Questionstring `json:"question,omitempty"`// Source: Indicates which Knowledge Document this answer was extracted from.// Format: `projects//locations//agent/knowledgeBases//documents/`.Sourcestring `json:"source,omitempty"`// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2FaqAnswer: Represents answer from "frequently askedquestions".

func (GoogleCloudDialogflowV2FaqAnswer)MarshalJSONadded inv0.12.0

func (sGoogleCloudDialogflowV2FaqAnswer) MarshalJSON() ([]byte,error)

func (*GoogleCloudDialogflowV2FaqAnswer)UnmarshalJSONadded inv0.12.0

func (s *GoogleCloudDialogflowV2FaqAnswer) UnmarshalJSON(data []byte)error

typeGoogleCloudDialogflowV2FreeFormSuggestionadded inv0.226.0

type GoogleCloudDialogflowV2FreeFormSuggestion struct {// Response: Required. Free form suggestion.Responsestring `json:"response,omitempty"`// ForceSendFields is a list of field names (e.g. "Response") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Response") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2FreeFormSuggestion: Suggestion generated using freeform generator.

func (GoogleCloudDialogflowV2FreeFormSuggestion)MarshalJSONadded inv0.226.0

typeGoogleCloudDialogflowV2GcsDestinationadded inv0.71.0

type GoogleCloudDialogflowV2GcsDestination struct {// Uri: The Google Cloud Storage URIs for the output. A URI is of the form:// `gs://bucket/object-prefix-or-name` Whether a prefix or name is used depends// on the use case. The requesting user must have "write-permission" to the// bucket.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2GcsDestination: Google Cloud Storage location for theoutput.

func (GoogleCloudDialogflowV2GcsDestination)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2GenerateSuggestionsResponseadded inv0.226.0

type GoogleCloudDialogflowV2GenerateSuggestionsResponse struct {// GeneratorSuggestionAnswers: The answers generated for the conversation based// on context.GeneratorSuggestionAnswers []*GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer `json:"generatorSuggestionAnswers,omitempty"`// LatestMessage: The name of the latest conversation message used as context// for compiling suggestion. Format:// `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// ForceSendFields is a list of field names (e.g. "GeneratorSuggestionAnswers")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "GeneratorSuggestionAnswers") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2GenerateSuggestionsResponse: The response message forConversations.GenerateSuggestions.

func (GoogleCloudDialogflowV2GenerateSuggestionsResponse)MarshalJSONadded inv0.226.0

typeGoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnsweradded inv0.226.0

type GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer struct {// AnswerRecord: Answer record that uniquely identifies the suggestion. This// can be used to provide suggestion feedback.AnswerRecordstring `json:"answerRecord,omitempty"`// GeneratorSuggestion: Suggestion details.GeneratorSuggestion *GoogleCloudDialogflowV2GeneratorSuggestion `json:"generatorSuggestion,omitempty"`// SourceGenerator: The name of the generator used to generate this suggestion.// Format: `projects//locations//generators/`.SourceGeneratorstring `json:"sourceGenerator,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerRecord") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerRecord") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer:A GeneratorSuggestion answer.

func (GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer)MarshalJSONadded inv0.226.0

typeGoogleCloudDialogflowV2GeneratorSuggestionadded inv0.226.0

type GoogleCloudDialogflowV2GeneratorSuggestion struct {// AgentCoachingSuggestion: Optional. Suggestion to coach the agent.AgentCoachingSuggestion *GoogleCloudDialogflowV2AgentCoachingSuggestion `json:"agentCoachingSuggestion,omitempty"`// FreeFormSuggestion: Optional. Free form suggestion.FreeFormSuggestion *GoogleCloudDialogflowV2FreeFormSuggestion `json:"freeFormSuggestion,omitempty"`// SummarySuggestion: Optional. Suggested summary.SummarySuggestion *GoogleCloudDialogflowV2SummarySuggestion `json:"summarySuggestion,omitempty"`// ToolCallInfo: Optional. List of request and response for tool calls// executed.ToolCallInfo []*GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo `json:"toolCallInfo,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentCoachingSuggestion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentCoachingSuggestion") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2GeneratorSuggestion: Suggestion generated using aGenerator.

func (GoogleCloudDialogflowV2GeneratorSuggestion)MarshalJSONadded inv0.226.0

typeGoogleCloudDialogflowV2GeneratorSuggestionToolCallInfoadded inv0.229.0

type GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo struct {// ToolCall: Required. Request for a tool call.ToolCall *GoogleCloudDialogflowV2ToolCall `json:"toolCall,omitempty"`// ToolCallResult: Required. Response for a tool call.ToolCallResult *GoogleCloudDialogflowV2ToolCallResult `json:"toolCallResult,omitempty"`// ForceSendFields is a list of field names (e.g. "ToolCall") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ToolCall") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo: Request and responsefor a tool call.

func (GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo)MarshalJSONadded inv0.229.0

typeGoogleCloudDialogflowV2HumanAgentAssistantEventadded inv0.12.0

type GoogleCloudDialogflowV2HumanAgentAssistantEvent struct {// Conversation: The conversation this notification refers to. Format:// `projects//conversations/`.Conversationstring `json:"conversation,omitempty"`// Participant: The participant that the suggestion is compiled for. Format:// `projects//conversations//participants/`. It will not be set in legacy// workflow.Participantstring `json:"participant,omitempty"`// SuggestionResults: The suggestion results payload that this notification// refers to.SuggestionResults []*GoogleCloudDialogflowV2SuggestionResult `json:"suggestionResults,omitempty"`// ForceSendFields is a list of field names (e.g. "Conversation") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2HumanAgentAssistantEvent: Represents a notificationsent to Cloud Pub/Sub subscribers for human agent assistant events in aspecific conversation.

func (GoogleCloudDialogflowV2HumanAgentAssistantEvent)MarshalJSONadded inv0.12.0

typeGoogleCloudDialogflowV2ImportConversationDataOperationMetadataadded inv0.71.0

type GoogleCloudDialogflowV2ImportConversationDataOperationMetadata struct {// ConversationDataset: The resource name of the imported conversation dataset.// Format: `projects//locations//conversationDatasets/`ConversationDatasetstring `json:"conversationDataset,omitempty"`// CreateTime: Timestamp when import conversation data request was created. The// time is measured on server side.CreateTimestring `json:"createTime,omitempty"`// PartialFailures: Partial failures are failures that don't fail the whole// long running operation, e.g. single files that couldn't be read.PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversationDataset") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationDataset") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2ImportConversationDataOperationMetadata: Metadata fora ConversationDatasets.ImportConversationData operation.

func (GoogleCloudDialogflowV2ImportConversationDataOperationMetadata)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2ImportConversationDataOperationResponseadded inv0.71.0

type GoogleCloudDialogflowV2ImportConversationDataOperationResponse struct {// ConversationDataset: The resource name of the imported conversation dataset.// Format: `projects//locations//conversationDatasets/`ConversationDatasetstring `json:"conversationDataset,omitempty"`// ImportCount: Number of conversations imported successfully.ImportCountint64 `json:"importCount,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversationDataset") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationDataset") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2ImportConversationDataOperationResponse: Responseused for ConversationDatasets.ImportConversationData long running operation.

func (GoogleCloudDialogflowV2ImportConversationDataOperationResponse)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2ImportDocumentsResponseadded inv0.33.0

type GoogleCloudDialogflowV2ImportDocumentsResponse struct {// Warnings: Includes details about skipped documents or any other warnings.Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`// ForceSendFields is a list of field names (e.g. "Warnings") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Warnings") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2ImportDocumentsResponse: Response message forDocuments.ImportDocuments.

func (GoogleCloudDialogflowV2ImportDocumentsResponse)MarshalJSONadded inv0.33.0

typeGoogleCloudDialogflowV2InitializeEncryptionSpecMetadataadded inv0.149.0

type GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata struct {// Request: Output only. The original request for initialization.Request *GoogleCloudDialogflowV2InitializeEncryptionSpecRequest `json:"request,omitempty"`// ForceSendFields is a list of field names (e.g. "Request") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Request") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata: Metadata forinitializing a location-level encryption specification.

func (GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata)MarshalJSONadded inv0.149.0

typeGoogleCloudDialogflowV2InitializeEncryptionSpecRequestadded inv0.149.0

type GoogleCloudDialogflowV2InitializeEncryptionSpecRequest struct {// EncryptionSpec: Required. The encryption spec used for CMEK encryption. It// is required that the kms key is in the same region as the endpoint. The same// key will be used for all provisioned resources, if encryption is available.// If the kms_key_name is left empty, no encryption will be enforced.EncryptionSpec *GoogleCloudDialogflowV2EncryptionSpec `json:"encryptionSpec,omitempty"`// ForceSendFields is a list of field names (e.g. "EncryptionSpec") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EncryptionSpec") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2InitializeEncryptionSpecRequest: The request toinitialize a location-level encryption specification.

func (GoogleCloudDialogflowV2InitializeEncryptionSpecRequest)MarshalJSONadded inv0.149.0

typeGoogleCloudDialogflowV2InputDatasetadded inv0.71.0

type GoogleCloudDialogflowV2InputDataset struct {// Dataset: Required. ConversationDataset resource name. Format:// `projects//locations//conversationDatasets/`Datasetstring `json:"dataset,omitempty"`// ForceSendFields is a list of field names (e.g. "Dataset") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Dataset") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2InputDataset: InputDataset used to create model or doevaluation. NextID:5

func (GoogleCloudDialogflowV2InputDataset)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2Intent

type GoogleCloudDialogflowV2Intent struct {// Action: Optional. The name of the action associated with the intent. Note:// The action name must not contain whitespaces.Actionstring `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/dialogflow// -webhook-json)//   "GOOGLE_HANGOUTS" - Google Hangouts.DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`// DisplayName: Required. The name of this intent.DisplayNamestring `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.EndInteractionbool `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. 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.IsFallbackbool `json:"isFallback,omitempty"`// LiveAgentHandoff: Optional. Indicates that a live agent should be brought in// to handle the interaction with the user. In most cases, when you set this// flag to true, you would also want to set end_interaction to true as well.// Default is false.LiveAgentHandoffbool `json:"liveAgentHandoff,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.MlDisabledbool `json:"mlDisabled,omitempty"`// Name: Optional. The unique identifier of this intent. Required for// Intents.UpdateIntent and Intents.BatchUpdateIntents methods. Format:// `projects//agent/intents/`.Namestring `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/`.ParentFollowupIntentNamestring `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.Priorityint64 `json:"priority,omitempty"`// ResetContexts: Optional. Indicates whether to delete all contexts in the// current session when this intent is matched.ResetContextsbool `json:"resetContexts,omitempty"`// RootFollowupIntentName: Output only. 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/`.RootFollowupIntentNamestring `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.WebhookStatestring `json:"webhookState,omitempty"`// ForceSendFields is a list of field names (e.g. "Action") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2Intent: An intent categorizes an end-user's intentionfor one conversation turn. For each agent, you define many intents, whereyour combined intents can handle a complete conversation. When an end-userwrites or says something, referred to as an end-user expression or end-userinput, Dialogflow matches the end-user input to the best intent in youragent. Matching an intent is also known as intent classification. For moreinformation, see the intent guide(https://cloud.google.com/dialogflow/docs/intents-overview).

func (GoogleCloudDialogflowV2Intent)MarshalJSON

func (sGoogleCloudDialogflowV2Intent) MarshalJSON() ([]byte,error)

typeGoogleCloudDialogflowV2IntentFollowupIntentInfo

type GoogleCloudDialogflowV2IntentFollowupIntentInfo struct {// FollowupIntentName: The unique identifier of the followup intent. Format:// `projects//agent/intents/`.FollowupIntentNamestring `json:"followupIntentName,omitempty"`// ParentFollowupIntentName: The unique identifier of the followup intent's// parent. Format: `projects//agent/intents/`.ParentFollowupIntentNamestring `json:"parentFollowupIntentName,omitempty"`// ForceSendFields is a list of field names (e.g. "FollowupIntentName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentFollowupIntentInfo: Represents a singlefollowup intent in the chain.

func (GoogleCloudDialogflowV2IntentFollowupIntentInfo)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessage

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.Payloadgoogleapi.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/dialogflow// -webhook-json)//   "GOOGLE_HANGOUTS" - Google Hangouts.Platformstring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessage: A rich response message. Correspondsto the intent `Response` field in the Dialogflow console. For moreinformation, see Rich response messages(https://cloud.google.com/dialogflow/docs/intents-rich-messages).

func (GoogleCloudDialogflowV2IntentMessage)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessageBasicCard

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.FormattedTextstring `json:"formattedText,omitempty"`// Image: Optional. The image for the card.Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`// Subtitle: Optional. The subtitle of the card.Subtitlestring `json:"subtitle,omitempty"`// Title: Optional. The title of the card.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageBasicCard: The basic card message.Useful for displaying information.

func (GoogleCloudDialogflowV2IntentMessageBasicCard)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessageBasicCardButton

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.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "OpenUriAction") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageBasicCardButton: The button object thatappears at the bottom of a card.

func (GoogleCloudDialogflowV2IntentMessageBasicCardButton)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction

type GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction struct {// Uri: Required. The HTTP or HTTPS scheme URI.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction: Opens thegiven URI.

func (GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardadded inv0.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.ImageDisplayOptionsstring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard: Browse Carousel Cardfor Actions on Google.https://developers.google.com/actions/assistant/responses#browsing_carousel

func (GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard)MarshalJSONadded inv0.14.0

typeGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemadded inv0.14.0

type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {// Description: Optional. Description of the carousel item. Maximum of four// lines of text.Descriptionstring `json:"description,omitempty"`// Footer: Optional. Text that appears at the bottom of the Browse Carousel// Card. Maximum of one line of text.Footerstring `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.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem:

Browsing carousel tile

func (GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem)MarshalJSONadded inv0.14.0

typeGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlActionadded inv0.14.0

type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {// Url: Required. URLUrlstring `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 .UrlTypeHintstring `json:"urlTypeHint,omitempty"`// ForceSendFields is a list of field names (e.g. "Url") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction: Actions on Google action to open a given url.

func (GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction)MarshalJSONadded inv0.14.0

typeGoogleCloudDialogflowV2IntentMessageCard

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.ImageUristring `json:"imageUri,omitempty"`// Subtitle: Optional. The subtitle of the card.Subtitlestring `json:"subtitle,omitempty"`// Title: Optional. The title of the card.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageCard: The card response message.

func (GoogleCloudDialogflowV2IntentMessageCard)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessageCardButton

type GoogleCloudDialogflowV2IntentMessageCardButton struct {// Postback: Optional. The text to send back to the Dialogflow API or a URI to// open.Postbackstring `json:"postback,omitempty"`// Text: Optional. The text to show on the button.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "Postback") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageCardButton: Contains information about abutton.

func (GoogleCloudDialogflowV2IntentMessageCardButton)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessageCarouselSelect

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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageCarouselSelect: The card for presentinga carousel of options to select from.

func (GoogleCloudDialogflowV2IntentMessageCarouselSelect)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessageCarouselSelectItem

type GoogleCloudDialogflowV2IntentMessageCarouselSelectItem struct {// Description: Optional. The body text of the card.Descriptionstring `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.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageCarouselSelectItem: An item in thecarousel.

func (GoogleCloudDialogflowV2IntentMessageCarouselSelectItem)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessageColumnPropertiesadded inv0.14.0

type GoogleCloudDialogflowV2IntentMessageColumnProperties struct {// Header: Required. Column heading.Headerstring `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.HorizontalAlignmentstring `json:"horizontalAlignment,omitempty"`// ForceSendFields is a list of field names (e.g. "Header") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageColumnProperties: Column properties forTableCard.

func (GoogleCloudDialogflowV2IntentMessageColumnProperties)MarshalJSONadded inv0.14.0

typeGoogleCloudDialogflowV2IntentMessageImage

type GoogleCloudDialogflowV2IntentMessageImage struct {// AccessibilityText: Optional. A text description of the image to be used for// accessibility, e.g., screen readers.AccessibilityTextstring `json:"accessibilityText,omitempty"`// ImageUri: Optional. The public URI to an image file.ImageUristring `json:"imageUri,omitempty"`// ForceSendFields is a list of field names (e.g. "AccessibilityText") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageImage: The image response message.

func (GoogleCloudDialogflowV2IntentMessageImage)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessageLinkOutSuggestion

type GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion struct {// DestinationName: Required. The name of the app or site this chip is linking// to.DestinationNamestring `json:"destinationName,omitempty"`// Uri: Required. The URI of the app or site to open when the user taps the// suggestion chip.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "DestinationName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion: The suggestion chipmessage that allows the user to jump out to the app or website associatedwith this agent.

func (GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessageListSelect

type GoogleCloudDialogflowV2IntentMessageListSelect struct {// Items: Required. List items.Items []*GoogleCloudDialogflowV2IntentMessageListSelectItem `json:"items,omitempty"`// Subtitle: Optional. Subtitle of the list.Subtitlestring `json:"subtitle,omitempty"`// Title: Optional. The overall title of the list.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Items") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageListSelect: The card for presenting alist of options to select from.

func (GoogleCloudDialogflowV2IntentMessageListSelect)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessageListSelectItem

type GoogleCloudDialogflowV2IntentMessageListSelectItem struct {// Description: Optional. The main text describing the item.Descriptionstring `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.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageListSelectItem: An item in the list.

func (GoogleCloudDialogflowV2IntentMessageListSelectItem)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessageMediaContentadded inv0.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.MediaTypestring `json:"mediaType,omitempty"`// ForceSendFields is a list of field names (e.g. "MediaObjects") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageMediaContent: The media content card forActions on Google.

func (GoogleCloudDialogflowV2IntentMessageMediaContent)MarshalJSONadded inv0.14.0

typeGoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObjectadded inv0.14.0

type GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject struct {// ContentUrl: Required. Url where the media is stored.ContentUrlstring `json:"contentUrl,omitempty"`// Description: Optional. Description of media card.Descriptionstring `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.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "ContentUrl") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject:Response media object for media content card.

func (GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject)MarshalJSONadded inv0.14.0

typeGoogleCloudDialogflowV2IntentMessageQuickReplies

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.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "QuickReplies") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageQuickReplies: The quick replies responsemessage.

func (GoogleCloudDialogflowV2IntentMessageQuickReplies)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessageSelectItemInfo

type GoogleCloudDialogflowV2IntentMessageSelectItemInfo struct {// Key: Required. A unique key that will be sent back to the agent if this// response is given.Keystring `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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageSelectItemInfo: Additional info aboutthe select item for when it is triggered in a dialog.

func (GoogleCloudDialogflowV2IntentMessageSelectItemInfo)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessageSimpleResponse

type GoogleCloudDialogflowV2IntentMessageSimpleResponse struct {// DisplayText: Optional. The text to display.DisplayTextstring `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.Ssmlstring `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.TextToSpeechstring `json:"textToSpeech,omitempty"`// ForceSendFields is a list of field names (e.g. "DisplayText") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageSimpleResponse: The simple responsemessage containing speech or text.

func (GoogleCloudDialogflowV2IntentMessageSimpleResponse)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessageSimpleResponses

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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageSimpleResponses: The collection ofsimple response candidates. This message in`QueryResult.fulfillment_messages` and`WebhookResponse.fulfillment_messages` should contain only one`SimpleResponse`.

func (GoogleCloudDialogflowV2IntentMessageSimpleResponses)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessageSuggestion

type GoogleCloudDialogflowV2IntentMessageSuggestion struct {// Title: Required. The text shown the in the suggestion chip.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Title") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageSuggestion: The suggestion chip messagethat the user can tap to quickly post a reply to the conversation.

func (GoogleCloudDialogflowV2IntentMessageSuggestion)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessageSuggestions

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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageSuggestions: The collection ofsuggestions.

func (GoogleCloudDialogflowV2IntentMessageSuggestions)MarshalJSON

typeGoogleCloudDialogflowV2IntentMessageTableCardadded inv0.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.Subtitlestring `json:"subtitle,omitempty"`// Title: Required. Title of the card.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageTableCard: Table card for Actions onGoogle.

func (GoogleCloudDialogflowV2IntentMessageTableCard)MarshalJSONadded inv0.14.0

typeGoogleCloudDialogflowV2IntentMessageTableCardCelladded inv0.14.0

type GoogleCloudDialogflowV2IntentMessageTableCardCell struct {// Text: Required. Text in this cell.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "Text") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageTableCardCell: Cell of TableCardRow.

func (GoogleCloudDialogflowV2IntentMessageTableCardCell)MarshalJSONadded inv0.14.0

typeGoogleCloudDialogflowV2IntentMessageTableCardRowadded inv0.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.DividerAfterbool `json:"dividerAfter,omitempty"`// ForceSendFields is a list of field names (e.g. "Cells") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageTableCardRow: Row of TableCard.

func (GoogleCloudDialogflowV2IntentMessageTableCardRow)MarshalJSONadded inv0.14.0

typeGoogleCloudDialogflowV2IntentMessageText

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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentMessageText: The text response message.

func (GoogleCloudDialogflowV2IntentMessageText)MarshalJSON

typeGoogleCloudDialogflowV2IntentParameter

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`.DefaultValuestring `json:"defaultValue,omitempty"`// DisplayName: Required. The name of the parameter.DisplayNamestring `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.EntityTypeDisplayNamestring `json:"entityTypeDisplayName,omitempty"`// IsList: Optional. Indicates whether the parameter represents a list of// values.IsListbool `json:"isList,omitempty"`// Mandatory: Optional. Indicates whether the parameter is required. That is,// whether the intent cannot be completed without collecting the parameter// value.Mandatorybool `json:"mandatory,omitempty"`// Name: The unique identifier of this parameter.Namestring `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`.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "DefaultValue") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentParameter: Represents intent parameters.

func (GoogleCloudDialogflowV2IntentParameter)MarshalJSON

typeGoogleCloudDialogflowV2IntentTrainingPhrase

type GoogleCloudDialogflowV2IntentTrainingPhrase struct {// Name: Output only. The unique identifier of this training phrase.Namestring `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.TimesAddedCountint64 `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.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentTrainingPhrase: Represents an example that theagent is trained on.

func (GoogleCloudDialogflowV2IntentTrainingPhrase)MarshalJSON

typeGoogleCloudDialogflowV2IntentTrainingPhrasePart

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.Aliasstring `json:"alias,omitempty"`// EntityType: Optional. The entity type name prefixed with `@`. This field is// required for annotated parts of the training phrase.EntityTypestring `json:"entityType,omitempty"`// Text: Required. The text for this part.Textstring `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.UserDefinedbool `json:"userDefined,omitempty"`// ForceSendFields is a list of field names (e.g. "Alias") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2IntentTrainingPhrasePart: Represents a part of atraining phrase.

func (GoogleCloudDialogflowV2IntentTrainingPhrasePart)MarshalJSON

typeGoogleCloudDialogflowV2KnowledgeAssistAnsweradded inv0.185.0

type GoogleCloudDialogflowV2KnowledgeAssistAnswer struct {// AnswerRecord: The name of the answer record. Format:// `projects//locations//answer Records/`.AnswerRecordstring `json:"answerRecord,omitempty"`// SuggestedQuery: The query suggested based on the context. Suggestion is made// only if it is different from the previous suggestion.SuggestedQuery *GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery `json:"suggestedQuery,omitempty"`// SuggestedQueryAnswer: The answer generated for the suggested query. Whether// or not an answer is generated depends on how confident we are about the// generated query.SuggestedQueryAnswer *GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer `json:"suggestedQueryAnswer,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerRecord") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerRecord") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2KnowledgeAssistAnswer: Represents a Knowledge Assistanswer.

func (GoogleCloudDialogflowV2KnowledgeAssistAnswer)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnsweradded inv0.185.0

type GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer struct {// AnswerText: The piece of text from the `source` that answers this suggested// query.AnswerTextstring `json:"answerText,omitempty"`// FaqSource: Populated if the prediction came from FAQ.FaqSource *GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource `json:"faqSource,omitempty"`// GenerativeSource: Populated if the prediction was Generative.GenerativeSource *GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource `json:"generativeSource,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerText") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerText") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer: Represents ananswer from Knowledge. Currently supports FAQ and Generative answers.

func (GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSourceadded inv0.185.0

type GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource struct {// Question: The corresponding FAQ question.Questionstring `json:"question,omitempty"`// ForceSendFields is a list of field names (e.g. "Question") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Question") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource:Details about source of FAQ answer.

func (GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceadded inv0.185.0

type GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource struct {// Snippets: All snippets used for this Generative Prediction, with their// source URI and data.Snippets []*GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet `json:"snippets,omitempty"`// ForceSendFields is a list of field names (e.g. "Snippets") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Snippets") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource:Details about source of Generative answer.

func (GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippetadded inv0.185.0

type GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet struct {// Metadata: Metadata of the document.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Text: Text taken from that URI.Textstring `json:"text,omitempty"`// Title: Title of the document.Titlestring `json:"title,omitempty"`// Uri: URI the data is sourced from.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "Metadata") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet: Snippet Source for a Generative Prediction.

func (GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQueryadded inv0.185.0

type GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery struct {// QueryText: Suggested query text.QueryTextstring `json:"queryText,omitempty"`// ForceSendFields is a list of field names (e.g. "QueryText") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "QueryText") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery: Represents asuggested query.

func (GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowV2KnowledgeOperationMetadataadded inv0.12.0

type GoogleCloudDialogflowV2KnowledgeOperationMetadata struct {// DoneTime: The time when the operation finished.DoneTimestring `json:"doneTime,omitempty"`// ExportOperationMetadata: Metadata for the Export Data Operation such as the// destination of export.ExportOperationMetadata *GoogleCloudDialogflowV2ExportOperationMetadata `json:"exportOperationMetadata,omitempty"`// KnowledgeBase: The name of the knowledge base interacted with during the// operation.KnowledgeBasestring `json:"knowledgeBase,omitempty"`// State: 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.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "DoneTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DoneTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2KnowledgeOperationMetadata: Metadata ingoogle::longrunning::Operation for Knowledge operations.

func (GoogleCloudDialogflowV2KnowledgeOperationMetadata)MarshalJSONadded inv0.12.0

typeGoogleCloudDialogflowV2Messageadded inv0.15.0

type GoogleCloudDialogflowV2Message struct {// Content: Required. The message content.Contentstring `json:"content,omitempty"`// CreateTime: Output only. The time when the message was created in Contact// Center AI.CreateTimestring `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".LanguageCodestring `json:"languageCode,omitempty"`// MessageAnnotation: Output only. The annotation for the message.MessageAnnotation *GoogleCloudDialogflowV2MessageAnnotation `json:"messageAnnotation,omitempty"`// Name: Optional. The unique identifier of the message. Format:// `projects//locations//conversations//messages/`.Namestring `json:"name,omitempty"`// Participant: Output only. The participant that sends this message.Participantstring `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.ParticipantRolestring `json:"participantRole,omitempty"`// SendTime: Optional. The time when the message was sent. For voice messages,// this is the time when an utterance started.SendTimestring `json:"sendTime,omitempty"`// SentimentAnalysis: Output only. The sentiment analysis result for the// message.SentimentAnalysis *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`// ForceSendFields is a list of field names (e.g. "Content") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2Message: Represents a message posted into aconversation.

func (GoogleCloudDialogflowV2Message)MarshalJSONadded inv0.15.0

func (sGoogleCloudDialogflowV2Message) MarshalJSON() ([]byte,error)

typeGoogleCloudDialogflowV2MessageAnnotationadded inv0.15.0

type GoogleCloudDialogflowV2MessageAnnotation struct {// ContainEntities: Indicates whether the text message contains entities.ContainEntitiesbool `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2MessageAnnotation: Represents the result ofannotation for the message.

func (GoogleCloudDialogflowV2MessageAnnotation)MarshalJSONadded inv0.15.0

typeGoogleCloudDialogflowV2OriginalDetectIntentRequest

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.Payloadgoogleapi.RawMessage `json:"payload,omitempty"`// Source: The source of this request, e.g., `google`, `facebook`, `slack`. It// is set by Dialogflow-owned servers.Sourcestring `json:"source,omitempty"`// Version: Optional. The version of the protocol used for this request. This// field is AoG-specific.Versionstring `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "Payload") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2OriginalDetectIntentRequest: Represents the contentsof the original request that was passed to the `[Streaming]DetectIntent`call.

func (GoogleCloudDialogflowV2OriginalDetectIntentRequest)MarshalJSON

typeGoogleCloudDialogflowV2QueryResult

type GoogleCloudDialogflowV2QueryResult struct {// Action: The action name from the matched intent.Actionstring `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.AllRequiredParamsPresentbool `json:"allRequiredParamsPresent,omitempty"`// CancelsSlotFilling: Indicates whether the conversational query triggers a// cancellation for slot filling. For more information, see the cancel slot// filling documentation// (https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).CancelsSlotFillingbool `json:"cancelsSlotFilling,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 errorsDiagnosticInfogoogleapi.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.FulfillmentTextstring `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.IntentDetectionConfidencefloat64 `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.LanguageCodestring `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 then// use map, otherwise, depending on the parameter value type, it could be one// of string, number, boolean, null, list or map. * MapValue value: If// parameter's entity type is a composite entity then use map from composite// entity property names to property values, otherwise, use parameter value.Parametersgoogleapi.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.QueryTextstring `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.SpeechRecognitionConfidencefloat64 `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.WebhookPayloadgoogleapi.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.WebhookSourcestring `json:"webhookSource,omitempty"`// ForceSendFields is a list of field names (e.g. "Action") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2QueryResult: Represents the result of conversationalquery or event processing.

func (GoogleCloudDialogflowV2QueryResult)MarshalJSON

func (*GoogleCloudDialogflowV2QueryResult)UnmarshalJSON

func (s *GoogleCloudDialogflowV2QueryResult) UnmarshalJSON(data []byte)error

typeGoogleCloudDialogflowV2Sentimentadded inv0.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).Magnitudefloat64 `json:"magnitude,omitempty"`// Score: Sentiment score between -1.0 (negative sentiment) and 1.0 (positive// sentiment).Scorefloat64 `json:"score,omitempty"`// ForceSendFields is a list of field names (e.g. "Magnitude") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2Sentiment: The sentiment, such as positive/negativefeeling or association, for a unit of analysis, such as the query text. See:https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_valuesfor how to interpret the result.

func (GoogleCloudDialogflowV2Sentiment)MarshalJSONadded inv0.3.1

func (sGoogleCloudDialogflowV2Sentiment) MarshalJSON() ([]byte,error)

func (*GoogleCloudDialogflowV2Sentiment)UnmarshalJSONadded inv0.3.1

func (s *GoogleCloudDialogflowV2Sentiment) UnmarshalJSON(data []byte)error

typeGoogleCloudDialogflowV2SentimentAnalysisResultadded inv0.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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2SentimentAnalysisResult: The result of sentimentanalysis. Sentiment analysis inspects user input and identifies theprevailing subjective opinion, especially to determine a user's attitude aspositive, negative, or neutral. For DetectIntent, it needs to be configuredin DetectIntentRequest.query_params. For StreamingDetectIntent, it needs tobe configured in StreamingDetectIntentRequest.query_params. And forParticipants.AnalyzeContent and Participants.StreamingAnalyzeContent, itneeds to be configured in ConversationProfile.human_agent_assistant_config

func (GoogleCloudDialogflowV2SentimentAnalysisResult)MarshalJSONadded inv0.3.1

typeGoogleCloudDialogflowV2SessionEntityTypeadded inv0.11.0

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.EntityOverrideModestring `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.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Entities") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2SessionEntityType: A session represents aconversation between a Dialogflow agent and an end-user. You can createspecial entities, called session entities, during a session. Sessionentities can extend or replace custom entity types and only exist during thesession that they were created for. All session data, including sessionentities, is stored by Dialogflow for 20 minutes. For more information, seethe session entity guide(https://cloud.google.com/dialogflow/docs/entities-session).

func (GoogleCloudDialogflowV2SessionEntityType)MarshalJSONadded inv0.11.0

typeGoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadataadded inv0.71.0

type GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata struct {// ConversationProfile: The resource name of the conversation profile. Format:// `projects//locations//conversationProfiles/`ConversationProfilestring `json:"conversationProfile,omitempty"`// CreateTime: Timestamp whe the request was created. The time is measured on// server side.CreateTimestring `json:"createTime,omitempty"`// ParticipantRole: Required. The participant role to add or update the// suggestion feature config. Only HUMAN_AGENT or END_USER can be used.//// 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.ParticipantRolestring `json:"participantRole,omitempty"`// SuggestionFeatureType: Required. The type of the suggestion feature to add// or update.//// Possible values://   "TYPE_UNSPECIFIED" - Unspecified feature type.//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.//   "FAQ" - Run FAQ model for chat.//   "SMART_REPLY" - Run smart reply model for chat.//   "CONVERSATION_SUMMARIZATION" - Run conversation summarization model for// chat.//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or// text generated query.//   "KNOWLEDGE_ASSIST" - Run knowledge assist with automatic query generation.SuggestionFeatureTypestring `json:"suggestionFeatureType,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversationProfile") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationProfile") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata: Metadatafor a ConversationProfiles.SetSuggestionFeatureConfig operation.

func (GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2SmartReplyAnsweradded inv0.65.0

type GoogleCloudDialogflowV2SmartReplyAnswer struct {// AnswerRecord: The name of answer record, in the format of// "projects//locations//answerRecords/"AnswerRecordstring `json:"answerRecord,omitempty"`// Confidence: Smart reply confidence. The system's confidence score that this// reply is a good match for this conversation, as a value from 0.0 (completely// uncertain) to 1.0 (completely certain).Confidencefloat64 `json:"confidence,omitempty"`// Reply: The content of the reply.Replystring `json:"reply,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerRecord") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerRecord") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2SmartReplyAnswer: Represents a smart reply answer.

func (GoogleCloudDialogflowV2SmartReplyAnswer)MarshalJSONadded inv0.65.0

func (*GoogleCloudDialogflowV2SmartReplyAnswer)UnmarshalJSONadded inv0.65.0

func (s *GoogleCloudDialogflowV2SmartReplyAnswer) UnmarshalJSON(data []byte)error

typeGoogleCloudDialogflowV2SmartReplyModelMetadataadded inv0.71.0

type GoogleCloudDialogflowV2SmartReplyModelMetadata struct {// TrainingModelType: Optional. Type of the smart reply model. If not provided,// model_type is used.//// Possible values://   "MODEL_TYPE_UNSPECIFIED" - ModelType unspecified.//   "SMART_REPLY_DUAL_ENCODER_MODEL" - ModelType smart reply dual encoder// model.//   "SMART_REPLY_BERT_MODEL" - ModelType smart reply bert model.TrainingModelTypestring `json:"trainingModelType,omitempty"`// ForceSendFields is a list of field names (e.g. "TrainingModelType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "TrainingModelType") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2SmartReplyModelMetadata: Metadata for smart replymodels.

func (GoogleCloudDialogflowV2SmartReplyModelMetadata)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2SpeechWordInfoadded inv0.215.0

type GoogleCloudDialogflowV2SpeechWordInfo struct {// Confidence: The Speech confidence between 0.0 and 1.0 for this word. A// higher number indicates an estimated greater likelihood that the recognized// word is correct. The default of 0.0 is a sentinel value indicating that// confidence was not set. This field is not guaranteed to be fully stable over// time for the same audio input. Users should also not rely on it to always be// provided.Confidencefloat64 `json:"confidence,omitempty"`// EndOffset: Time offset relative to the beginning of the audio that// corresponds to the end of the spoken word. This is an experimental feature// and the accuracy of the time offset can vary.EndOffsetstring `json:"endOffset,omitempty"`// StartOffset: Time offset relative to the beginning of the audio that// corresponds to the start of the spoken word. This is an experimental feature// and the accuracy of the time offset can vary.StartOffsetstring `json:"startOffset,omitempty"`// Word: The word this info is for.Wordstring `json:"word,omitempty"`// ForceSendFields is a list of field names (e.g. "Confidence") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Confidence") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2SpeechWordInfo: Information for a word recognized bythe speech recognizer.

func (GoogleCloudDialogflowV2SpeechWordInfo)MarshalJSONadded inv0.215.0

func (*GoogleCloudDialogflowV2SpeechWordInfo)UnmarshalJSONadded inv0.215.0

func (s *GoogleCloudDialogflowV2SpeechWordInfo) UnmarshalJSON(data []byte)error

typeGoogleCloudDialogflowV2StreamingRecognitionResultadded inv0.215.0

type GoogleCloudDialogflowV2StreamingRecognitionResult struct {// Confidence: The Speech confidence between 0.0 and 1.0 for the current// portion of audio. 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 typically only// provided if `is_final` is true and you should not rely on it being accurate// or even set.Confidencefloat64 `json:"confidence,omitempty"`// IsFinal: If `false`, the `StreamingRecognitionResult` represents an interim// result that may change. If `true`, the recognizer will not return any// further hypotheses about this piece of the audio. May only be populated for// `message_type` = `TRANSCRIPT`.IsFinalbool `json:"isFinal,omitempty"`// LanguageCode: Detected language code for the transcript.LanguageCodestring `json:"languageCode,omitempty"`// MessageType: Type of the result message.//// Possible values://   "MESSAGE_TYPE_UNSPECIFIED" - Not specified. Should never be used.//   "TRANSCRIPT" - Message contains a (possibly partial) transcript.//   "END_OF_SINGLE_UTTERANCE" - This event indicates that the server has// detected the end of the user's speech utterance and expects no additional// inputs. Therefore, the server will not process additional audio (although it// may subsequently return additional results). The client should stop sending// additional audio data, half-close the gRPC connection, and wait for any// additional results until the server closes the gRPC connection. This message// is only sent if `single_utterance` was set to `true`, and is not used// otherwise.MessageTypestring `json:"messageType,omitempty"`// SpeechEndOffset: Time offset of the end of this Speech recognition result// relative to the beginning of the audio. Only populated for `message_type` =// `TRANSCRIPT`.SpeechEndOffsetstring `json:"speechEndOffset,omitempty"`// SpeechWordInfo: Word-specific information for the words recognized by Speech// in transcript. Populated if and only if `message_type` = `TRANSCRIPT` and// [InputAudioConfig.enable_word_info] is set.SpeechWordInfo []*GoogleCloudDialogflowV2SpeechWordInfo `json:"speechWordInfo,omitempty"`// Transcript: Transcript text representing the words that the user spoke.// Populated if and only if `message_type` = `TRANSCRIPT`.Transcriptstring `json:"transcript,omitempty"`// ForceSendFields is a list of field names (e.g. "Confidence") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Confidence") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2StreamingRecognitionResult: Contains a speechrecognition result corresponding to a portion of the audio that is currentlybeing processed or an indication that this is the end of the singlerequested utterance. While end-user audio is being processed, Dialogflowsends a series of results. Each result may contain a `transcript` value. Atranscript represents a portion of the utterance. While the recognizer isprocessing audio, transcript values may be interim values or finalizedvalues. Once a transcript is finalized, the `is_final` value is set to trueand processing continues for the next transcript. If`StreamingDetectIntentRequest.query_input.audio_config.single_utterance` wastrue, and the recognizer has completed processing audio, the `message_type`value is set to `END_OF_SINGLE_UTTERANCE and the following (last) resultcontains the last finalized transcript. The complete end-user utterance isdetermined by concatenating the finalized transcript values received for theseries of results. In the following example, single utterance is enabled. Inthe case where single utterance is not enabled, result 7 would not occur.``` Num | transcript | message_type | is_final --- | -----------------------| ----------------------- | -------- 1 | "tube" | TRANSCRIPT | false 2 | "tobe a" | TRANSCRIPT | false 3 | "to be" | TRANSCRIPT | false 4 | "to be ornot to be" | TRANSCRIPT | true 5 | "that's" | TRANSCRIPT | false 6 | "thatis | TRANSCRIPT | false 7 | unset | END_OF_SINGLE_UTTERANCE | unset 8 | "that is the question" | TRANSCRIPT | true ``` Concatenating the finalizedtranscripts with `is_final` set to true, the complete utterance becomes "tobe or not to be that is the question".

func (GoogleCloudDialogflowV2StreamingRecognitionResult)MarshalJSONadded inv0.215.0

func (*GoogleCloudDialogflowV2StreamingRecognitionResult)UnmarshalJSONadded inv0.215.0

typeGoogleCloudDialogflowV2SuggestArticlesResponseadded inv0.12.0

type GoogleCloudDialogflowV2SuggestArticlesResponse struct {// ArticleAnswers: Articles ordered by score in descending order.ArticleAnswers []*GoogleCloudDialogflowV2ArticleAnswer `json:"articleAnswers,omitempty"`// ContextSize: Number of messages prior to and including latest_message to// compile the suggestion. It may be smaller than the// SuggestArticlesRequest.context_size field in the request if there aren't// that many messages in the conversation.ContextSizeint64 `json:"contextSize,omitempty"`// LatestMessage: The name of the latest conversation message used to compile// suggestion for. Format: `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// ForceSendFields is a list of field names (e.g. "ArticleAnswers") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ArticleAnswers") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2SuggestArticlesResponse: The response message forParticipants.SuggestArticles.

func (GoogleCloudDialogflowV2SuggestArticlesResponse)MarshalJSONadded inv0.12.0

typeGoogleCloudDialogflowV2SuggestFaqAnswersResponseadded inv0.12.0

type GoogleCloudDialogflowV2SuggestFaqAnswersResponse struct {// ContextSize: Number of messages prior to and including latest_message to// compile the suggestion. It may be smaller than the// SuggestFaqAnswersRequest.context_size field in the request if there aren't// that many messages in the conversation.ContextSizeint64 `json:"contextSize,omitempty"`// FaqAnswers: Answers extracted from FAQ documents.FaqAnswers []*GoogleCloudDialogflowV2FaqAnswer `json:"faqAnswers,omitempty"`// LatestMessage: The name of the latest conversation message used to compile// suggestion for. Format: `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// ForceSendFields is a list of field names (e.g. "ContextSize") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContextSize") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2SuggestFaqAnswersResponse: The request message forParticipants.SuggestFaqAnswers.

func (GoogleCloudDialogflowV2SuggestFaqAnswersResponse)MarshalJSONadded inv0.12.0

typeGoogleCloudDialogflowV2SuggestKnowledgeAssistResponseadded inv0.185.0

type GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse struct {// ContextSize: Number of messages prior to and including latest_message to// compile the suggestion. It may be smaller than the// SuggestKnowledgeAssistRequest.context_size field in the request if there are// fewer messages in the conversation.ContextSizeint64 `json:"contextSize,omitempty"`// KnowledgeAssistAnswer: Output only. Knowledge Assist suggestion.KnowledgeAssistAnswer *GoogleCloudDialogflowV2KnowledgeAssistAnswer `json:"knowledgeAssistAnswer,omitempty"`// LatestMessage: The name of the latest conversation message used to compile// suggestion for. Format: `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// ForceSendFields is a list of field names (e.g. "ContextSize") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContextSize") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse: The response messagefor Participants.SuggestKnowledgeAssist.

func (GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowV2SuggestSmartRepliesResponseadded inv0.65.0

type GoogleCloudDialogflowV2SuggestSmartRepliesResponse struct {// ContextSize: Number of messages prior to and including latest_message to// compile the suggestion. It may be smaller than the// SuggestSmartRepliesRequest.context_size field in the request if there aren't// that many messages in the conversation.ContextSizeint64 `json:"contextSize,omitempty"`// LatestMessage: The name of the latest conversation message used to compile// suggestion for. Format: `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// SmartReplyAnswers: Output only. Multiple reply options provided by smart// reply service. The order is based on the rank of the model prediction. The// maximum number of the returned replies is set in SmartReplyConfig.SmartReplyAnswers []*GoogleCloudDialogflowV2SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`// ForceSendFields is a list of field names (e.g. "ContextSize") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContextSize") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2SuggestSmartRepliesResponse: The response message forParticipants.SuggestSmartReplies.

func (GoogleCloudDialogflowV2SuggestSmartRepliesResponse)MarshalJSONadded inv0.65.0

typeGoogleCloudDialogflowV2SuggestionResultadded inv0.12.0

type GoogleCloudDialogflowV2SuggestionResult struct {// Error: Error status if the request failed.Error *GoogleRpcStatus `json:"error,omitempty"`// GenerateSuggestionsResponse: Suggestions generated using generators// triggered by customer or agent messages.GenerateSuggestionsResponse *GoogleCloudDialogflowV2GenerateSuggestionsResponse `json:"generateSuggestionsResponse,omitempty"`// SuggestArticlesResponse: SuggestArticlesResponse if request is for// ARTICLE_SUGGESTION.SuggestArticlesResponse *GoogleCloudDialogflowV2SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`// SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is for// FAQ_ANSWER.SuggestFaqAnswersResponse *GoogleCloudDialogflowV2SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`// SuggestKnowledgeAssistResponse: SuggestKnowledgeAssistResponse if request is// for KNOWLEDGE_ASSIST.SuggestKnowledgeAssistResponse *GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse `json:"suggestKnowledgeAssistResponse,omitempty"`// SuggestSmartRepliesResponse: SuggestSmartRepliesResponse if request is for// SMART_REPLY.SuggestSmartRepliesResponse *GoogleCloudDialogflowV2SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`// ForceSendFields is a list of field names (e.g. "Error") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Error") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2SuggestionResult: One response of different type ofsuggestion response which is used in the response ofParticipants.AnalyzeContent and Participants.AnalyzeContent, as well asHumanAgentAssistantEvent.

func (GoogleCloudDialogflowV2SuggestionResult)MarshalJSONadded inv0.12.0

typeGoogleCloudDialogflowV2SummarySuggestionadded inv0.226.0

type GoogleCloudDialogflowV2SummarySuggestion struct {// SummarySections: Required. All the parts of generated summary.SummarySections []*GoogleCloudDialogflowV2SummarySuggestionSummarySection `json:"summarySections,omitempty"`// ForceSendFields is a list of field names (e.g. "SummarySections") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "SummarySections") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2SummarySuggestion: Suggested summary of theconversation.

func (GoogleCloudDialogflowV2SummarySuggestion)MarshalJSONadded inv0.226.0

typeGoogleCloudDialogflowV2SummarySuggestionSummarySectionadded inv0.226.0

type GoogleCloudDialogflowV2SummarySuggestionSummarySection struct {// Section: Required. Name of the section.Sectionstring `json:"section,omitempty"`// Summary: Required. Summary text for the section.Summarystring `json:"summary,omitempty"`// ForceSendFields is a list of field names (e.g. "Section") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Section") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2SummarySuggestionSummarySection: A component of thegenerated summary.

func (GoogleCloudDialogflowV2SummarySuggestionSummarySection)MarshalJSONadded inv0.226.0

typeGoogleCloudDialogflowV2ToolCalladded inv0.229.0

type GoogleCloudDialogflowV2ToolCall struct {// Action: Optional. The name of the tool's action associated with this call.Actionstring `json:"action,omitempty"`// AnswerRecord: Optional. The answer record associated with this tool call.AnswerRecordstring `json:"answerRecord,omitempty"`// CreateTime: Output only. Create time of the tool call.CreateTimestring `json:"createTime,omitempty"`// InputParameters: Optional. The action's input parameters.InputParametersgoogleapi.RawMessage `json:"inputParameters,omitempty"`// State: Output only. State of the tool call.//// Possible values://   "STATE_UNSPECIFIED" - Default value.//   "TRIGGERED" - The tool call has been triggered.//   "NEEDS_CONFIRMATION" - The tool call requires confirmation from a human.Statestring `json:"state,omitempty"`// Tool: Optional. The tool associated with this call. Format:// `projects//locations//tools/`.Toolstring `json:"tool,omitempty"`// ToolDisplayDetails: Optional. A human readable description of the tool.ToolDisplayDetailsstring `json:"toolDisplayDetails,omitempty"`// ToolDisplayName: Optional. A human readable short name of the tool, to be// shown on the UI.ToolDisplayNamestring `json:"toolDisplayName,omitempty"`// ForceSendFields is a list of field names (e.g. "Action") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2ToolCall: Represents a call of a specific tool'saction with the specified inputs.

func (GoogleCloudDialogflowV2ToolCall)MarshalJSONadded inv0.229.0

func (sGoogleCloudDialogflowV2ToolCall) MarshalJSON() ([]byte,error)

typeGoogleCloudDialogflowV2ToolCallResultadded inv0.229.0

type GoogleCloudDialogflowV2ToolCallResult struct {// Action: Optional. The name of the tool's action associated with this call.Actionstring `json:"action,omitempty"`// AnswerRecord: Optional. The answer record associated with this tool call// result.AnswerRecordstring `json:"answerRecord,omitempty"`// Content: Only populated if the response content is utf-8 encoded.Contentstring `json:"content,omitempty"`// CreateTime: Output only. Create time of the tool call result.CreateTimestring `json:"createTime,omitempty"`// Error: The tool call's error.Error *GoogleCloudDialogflowV2ToolCallResultError `json:"error,omitempty"`// RawContent: Only populated if the response content is not utf-8 encoded. (by// definition byte fields are base64 encoded).RawContentstring `json:"rawContent,omitempty"`// Tool: Optional. The tool associated with this call. Format:// `projects//locations//tools/`.Toolstring `json:"tool,omitempty"`// ForceSendFields is a list of field names (e.g. "Action") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2ToolCallResult: The result of calling a tool'saction.

func (GoogleCloudDialogflowV2ToolCallResult)MarshalJSONadded inv0.229.0

typeGoogleCloudDialogflowV2ToolCallResultErroradded inv0.229.0

type GoogleCloudDialogflowV2ToolCallResultError struct {// Message: Optional. The error message of the function.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Message") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Message") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2ToolCallResultError: An error produced by the toolcall.

func (GoogleCloudDialogflowV2ToolCallResultError)MarshalJSONadded inv0.229.0

typeGoogleCloudDialogflowV2UndeployConversationModelOperationMetadataadded inv0.71.0

type GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata struct {// ConversationModel: The resource name of the conversation model. Format:// `projects//conversationModels/`ConversationModelstring `json:"conversationModel,omitempty"`// CreateTime: Timestamp when the request to undeploy conversation model was// submitted. The time is measured on server side.CreateTimestring `json:"createTime,omitempty"`// DoneTime: The time when the operation finished.DoneTimestring `json:"doneTime,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversationModel") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationModel") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata: Metadatafor a ConversationModels.UndeployConversationModel operation.

func (GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2WebhookRequest

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`.ResponseIdstring `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/`.Sessionstring `json:"session,omitempty"`// ForceSendFields is a list of field names (e.g.// "OriginalDetectIntentRequest") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2WebhookRequest: The request message for a webhookcall.

func (GoogleCloudDialogflowV2WebhookRequest)MarshalJSON

typeGoogleCloudDialogflowV2WebhookResponse

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.FulfillmentTextstring `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/dialogflow-webhook-json)Payloadgoogleapi.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.Sourcestring `json:"source,omitempty"`// ForceSendFields is a list of field names (e.g. "FollowupEventInput") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2WebhookResponse: The response message for a webhookcall. This response is validated by the Dialogflow server. If validationfails, 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` forempty 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

typeGoogleCloudDialogflowV2beta1Agent

type GoogleCloudDialogflowV2beta1Agent 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.ApiVersionstring `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.AvatarUristring `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.ClassificationThresholdfloat64 `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.DefaultLanguageCodestring `json:"defaultLanguageCode,omitempty"`// Description: Optional. The description of this agent. The maximum length is// 500 characters. If exceeded, the request is rejected.Descriptionstring `json:"description,omitempty"`// DisplayName: Required. The name of this agent.DisplayNamestring `json:"displayName,omitempty"`// EnableLogging: Optional. Determines whether this agent should log// conversation queries.EnableLoggingbool `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.MatchModestring `json:"matchMode,omitempty"`// Parent: Required. The project of this agent. Format: `projects/` or// `projects//locations/`Parentstring `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" - Trial Edition, previously known as Standard Edition.//   "TIER_ENTERPRISE" - Essentials Edition, previously known as Enterprise// Essential Edition.//   "TIER_ENTERPRISE_PLUS" - Essentials Edition (same as TIER_ENTERPRISE),// previously known as Enterprise Plus Edition.Tierstring `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.TimeZonestring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1Agent: A Dialogflow agent is a virtual agentthat handles conversations with your end-users. It is a natural languageunderstanding module that understands the nuances of human language.Dialogflow translates end-user text or audio during a conversation tostructured data that your apps and services can understand. You design andbuild a Dialogflow agent to handle the types of conversations required foryour system. For more information about agents, see the Agent guide(https://cloud.google.com/dialogflow/docs/agents-overview).

func (GoogleCloudDialogflowV2beta1Agent)MarshalJSON

func (sGoogleCloudDialogflowV2beta1Agent) MarshalJSON() ([]byte,error)

func (*GoogleCloudDialogflowV2beta1Agent)UnmarshalJSON

func (s *GoogleCloudDialogflowV2beta1Agent) UnmarshalJSON(data []byte)error

typeGoogleCloudDialogflowV2beta1AgentAssistantFeedbackadded inv0.42.0

type GoogleCloudDialogflowV2beta1AgentAssistantFeedback struct {// AnswerRelevance: Optional. Whether or not the suggested answer is relevant.// For example: * Query: "Can I change my mailing address?" * Suggested// document says: "Items must be returned/exchanged within 60 days of the// purchase date." * answer_relevance: AnswerRelevance.IRRELEVANT//// Possible values://   "ANSWER_RELEVANCE_UNSPECIFIED" - Answer relevance unspecified.//   "IRRELEVANT" - Answer is irrelevant to query.//   "RELEVANT" - Answer is relevant to query.AnswerRelevancestring `json:"answerRelevance,omitempty"`// DocumentCorrectness: Optional. Whether or not the information in the// document is correct. For example: * Query: "Can I return the package in 2// days once received?" * Suggested document says: "Items must be// returned/exchanged within 60 days of the purchase date." * Ground truth: "No// return or exchange is allowed." * document_correctness: INCORRECT//// Possible values://   "DOCUMENT_CORRECTNESS_UNSPECIFIED" - Document correctness unspecified.//   "INCORRECT" - Information in document is incorrect.//   "CORRECT" - Information in document is correct.DocumentCorrectnessstring `json:"documentCorrectness,omitempty"`// DocumentEfficiency: Optional. Whether or not the suggested document is// efficient. For example, if the document is poorly written, hard to// understand, hard to use or too long to find useful information,// document_efficiency is DocumentEfficiency.INEFFICIENT.//// Possible values://   "DOCUMENT_EFFICIENCY_UNSPECIFIED" - Document efficiency unspecified.//   "INEFFICIENT" - Document is inefficient.//   "EFFICIENT" - Document is efficient.DocumentEfficiencystring `json:"documentEfficiency,omitempty"`// KnowledgeAssistFeedback: Optional. Feedback for knowledge assist.KnowledgeAssistFeedback *GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeAssistFeedback `json:"knowledgeAssistFeedback,omitempty"`// KnowledgeSearchFeedback: Optional. Feedback for knowledge search.KnowledgeSearchFeedback *GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback `json:"knowledgeSearchFeedback,omitempty"`// SummarizationFeedback: Feedback for conversation summarization.SummarizationFeedback *GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback `json:"summarizationFeedback,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerRelevance") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerRelevance") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AgentAssistantFeedback: Detail feedback of AgentAssistant result.

func (GoogleCloudDialogflowV2beta1AgentAssistantFeedback)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeAssistFeedbackadded inv0.185.0

type GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeAssistFeedback struct {// AnswerCopied: Whether the suggested answer was copied by the human agent. If// the value is set to be true, AnswerFeedback.clicked will be updated to be// true.AnswerCopiedbool `json:"answerCopied,omitempty"`// ClickedUris: The URIs clicked by the human agent. The value is appended for// each UpdateAnswerRecordRequest. If the value is not empty,// AnswerFeedback.clicked will be updated to be true.ClickedUris []string `json:"clickedUris,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerCopied") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerCopied") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeAssistFeedback:Feedback for knowledge assist.

func (GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeAssistFeedback)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedbackadded inv0.139.0

type GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback struct {// AnswerCopied: Whether the answer was copied by the human agent or not. If// the value is set to be true, AnswerFeedback.clicked will be updated to be// true.AnswerCopiedbool `json:"answerCopied,omitempty"`// ClickedUris: The URIs clicked by the human agent. The value is appended for// each UpdateAnswerRecordRequest. If the value is not empty,// AnswerFeedback.clicked will be updated to be true.ClickedUris []string `json:"clickedUris,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerCopied") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerCopied") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback:Feedback for knowledge search.

func (GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback)MarshalJSONadded inv0.139.0

typeGoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedbackadded inv0.42.0

type GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback struct {// StartTimestamp: Timestamp when composing of the summary starts.StartTimestampstring `json:"startTimestamp,omitempty"`// SubmitTimestamp: Timestamp when the summary was submitted.SubmitTimestampstring `json:"submitTimestamp,omitempty"`// SummaryText: Text of actual submitted summary.SummaryTextstring `json:"summaryText,omitempty"`// TextSections: Optional. Actual text sections of submitted summary.TextSections map[string]string `json:"textSections,omitempty"`// ForceSendFields is a list of field names (e.g. "StartTimestamp") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "StartTimestamp") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback:Feedback for conversation summarization.

func (GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1AgentAssistantRecordadded inv0.42.0

type GoogleCloudDialogflowV2beta1AgentAssistantRecord struct {// ArticleSuggestionAnswer: Output only. The article suggestion answer.ArticleSuggestionAnswer *GoogleCloudDialogflowV2beta1ArticleAnswer `json:"articleSuggestionAnswer,omitempty"`// DialogflowAssistAnswer: Output only. The Dialogflow assist answer.DialogflowAssistAnswer *GoogleCloudDialogflowV2beta1DialogflowAssistAnswer `json:"dialogflowAssistAnswer,omitempty"`// FaqAnswer: Output only. The FAQ answer.FaqAnswer *GoogleCloudDialogflowV2beta1FaqAnswer `json:"faqAnswer,omitempty"`// GeneratorSuggestion: Output only. The generator suggestion.GeneratorSuggestion *GoogleCloudDialogflowV2beta1GeneratorSuggestion `json:"generatorSuggestion,omitempty"`// ForceSendFields is a list of field names (e.g. "ArticleSuggestionAnswer") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ArticleSuggestionAnswer") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AgentAssistantRecord: Represents a record of ahuman agent assistant answer.

func (GoogleCloudDialogflowV2beta1AgentAssistantRecord)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1AgentCoachingContextadded inv0.252.0

type GoogleCloudDialogflowV2beta1AgentCoachingContext struct {// Instructions: Optional. Customized instructions for agent coaching.Instructions []*GoogleCloudDialogflowV2beta1AgentCoachingInstruction `json:"instructions,omitempty"`// OutputLanguageCode: Optional. Output language code.OutputLanguageCodestring `json:"outputLanguageCode,omitempty"`// OverarchingGuidance: Optional. The overarching guidance for the agent// coaching. This should be set only for v1.5 and later versions.OverarchingGuidancestring `json:"overarchingGuidance,omitempty"`// Version: Optional. Version of the feature. If not set, default to latest// version. Current candidates are ["2.5"].Versionstring `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "Instructions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Instructions") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AgentCoachingContext: Agent Coaching contextthat customer can configure.

func (GoogleCloudDialogflowV2beta1AgentCoachingContext)MarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2beta1AgentCoachingInstructionadded inv0.252.0

type GoogleCloudDialogflowV2beta1AgentCoachingInstruction struct {// AgentAction: Optional. The action that human agent should take. For example,// "apologize for the slow shipping". If the users only want to use agent// coaching for intent detection, agent_action can be emptyAgentActionstring `json:"agentAction,omitempty"`// Condition: Optional. The condition of the instruction. For example, "the// customer wants to cancel an order". If the users want the instruction to be// triggered unconditionally, the condition can be empty.Conditionstring `json:"condition,omitempty"`// DisplayDetails: Optional. The detailed description of this instruction.DisplayDetailsstring `json:"displayDetails,omitempty"`// DisplayName: Optional. Display name for the instruction.DisplayNamestring `json:"displayName,omitempty"`// DuplicateCheckResult: Output only. Duplication check for the// AgentCoachingInstruction.DuplicateCheckResult *GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult `json:"duplicateCheckResult,omitempty"`// SystemAction: Optional. The action that system should take. For example,// "call GetOrderTime with order_number={order number provided by the// customer}". If the users don't have plugins or don't want to trigger// plugins, the system_action can be emptySystemActionstring `json:"systemAction,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentAction") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentAction") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AgentCoachingInstruction: Agent Coachinginstructions that customer can configure.

func (GoogleCloudDialogflowV2beta1AgentCoachingInstruction)MarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultadded inv0.252.0

type GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult struct {// DuplicateSuggestions: Output only. The duplicate suggestions.DuplicateSuggestions []*GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion `json:"duplicateSuggestions,omitempty"`// ForceSendFields is a list of field names (e.g. "DuplicateSuggestions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DuplicateSuggestions") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult:Duplication check for the suggestion.

func (GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult)MarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestionadded inv0.252.0

type GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion struct {// AnswerRecord: Output only. The answer record id of the past duplicate// suggestion.AnswerRecordstring `json:"answerRecord,omitempty"`// SimilarityScore: Output only. The similarity score of between the past and// current suggestion.SimilarityScorefloat64 `json:"similarityScore,omitempty"`// SuggestionIndex: Output only. The index of the duplicate suggestion in the// past suggestion list.SuggestionIndexint64 `json:"suggestionIndex,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerRecord") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerRecord") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion: The duplicate suggestion details.

func (GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion)MarshalJSONadded inv0.252.0

func (*GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion)UnmarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2beta1AgentCoachingSuggestionadded inv0.252.0

type GoogleCloudDialogflowV2beta1AgentCoachingSuggestion struct {// AgentActionSuggestions: Optional. Suggested actions for the agent to take.AgentActionSuggestions []*GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion `json:"agentActionSuggestions,omitempty"`// ApplicableInstructions: Optional. Instructions applicable based on the// current context.ApplicableInstructions []*GoogleCloudDialogflowV2beta1AgentCoachingInstruction `json:"applicableInstructions,omitempty"`// SampleResponses: Optional. Sample response for the Agent.SampleResponses []*GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse `json:"sampleResponses,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentActionSuggestions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentActionSuggestions") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AgentCoachingSuggestion: Suggestion for coachingagents.

func (GoogleCloudDialogflowV2beta1AgentCoachingSuggestion)MarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestionadded inv0.252.0

type GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion struct {// AgentAction: Optional. The suggested action for the agent.AgentActionstring `json:"agentAction,omitempty"`// DuplicateCheckResult: Output only. Duplicate check result for the agent// action suggestion.DuplicateCheckResult *GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult `json:"duplicateCheckResult,omitempty"`// Sources: Output only. Sources for the agent action suggestion.Sources *GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources `json:"sources,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentAction") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentAction") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion:Actions suggested for the agent. This is based on applicable instructions.

func (GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion)MarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultadded inv0.252.0

type GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult struct {// DuplicateSuggestions: Output only. The duplicate suggestions.DuplicateSuggestions []*GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion `json:"duplicateSuggestions,omitempty"`// ForceSendFields is a list of field names (e.g. "DuplicateSuggestions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DuplicateSuggestions") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult:Duplication check for the suggestion.

func (GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult)MarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestionadded inv0.252.0

type GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion struct {// AnswerRecord: Output only. The answer record id of the past duplicate// suggestion.AnswerRecordstring `json:"answerRecord,omitempty"`// SimilarityScore: Output only. The similarity score of between the past and// current suggestion.SimilarityScorefloat64 `json:"similarityScore,omitempty"`// Sources: Output only. Sources for the suggestion.Sources *GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources `json:"sources,omitempty"`// SuggestionIndex: Output only. The index of the duplicate suggestion in the// past suggestion list.SuggestionIndexint64 `json:"suggestionIndex,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerRecord") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerRecord") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion: The duplicate suggestion details. Keeping answer_record andsources together as they are identifiers for duplicate suggestions.

func (GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion)MarshalJSONadded inv0.252.0

func (*GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion)UnmarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponseadded inv0.252.0

type GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse struct {// DuplicateCheckResult: Output only. Duplicate check result for the sample// response.DuplicateCheckResult *GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult `json:"duplicateCheckResult,omitempty"`// ResponseText: Optional. Sample response for Agent in text.ResponseTextstring `json:"responseText,omitempty"`// Sources: Output only. Sources for the Sample Response.Sources *GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources `json:"sources,omitempty"`// ForceSendFields is a list of field names (e.g. "DuplicateCheckResult") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DuplicateCheckResult") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse: Sampleresponse that the agent can use. This could be based on applicableinstructions and ingested data from other systems.

func (GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse)MarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2beta1AgentCoachingSuggestionSourcesadded inv0.252.0

type GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources struct {// InstructionIndexes: Output only. Source instruction indexes for the// suggestion. This is the index of the applicable_instructions field.InstructionIndexes []int64 `json:"instructionIndexes,omitempty"`// ForceSendFields is a list of field names (e.g. "InstructionIndexes") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InstructionIndexes") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources: Sources for thesuggestion.

func (GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources)MarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2beta1AnalyzeContentRequestadded inv0.42.0

type GoogleCloudDialogflowV2beta1AnalyzeContentRequest struct {// AssistQueryParams: Parameters for a human assist query.AssistQueryParams *GoogleCloudDialogflowV2beta1AssistQueryParameters `json:"assistQueryParams,omitempty"`// AudioInput: The natural language speech audio to be processed.AudioInput *GoogleCloudDialogflowV2beta1AudioInput `json:"audioInput,omitempty"`// CxCurrentPage: The unique identifier of the Dialogflow CX page to override// the `current_page` in the session. Format:// `projects//locations//agents//flows//pages/`. If `cx_current_page` is// specified, the previous state of the session will be ignored by Dialogflow// CX, including the previous page and the previous session parameters. In most// cases, `cx_current_page` and `cx_parameters` should be configured together// to direct a session to a specific state. Note: this field should only be// used if you are connecting to a Dialogflow CX agent.CxCurrentPagestring `json:"cxCurrentPage,omitempty"`// CxParameters: Additional parameters to be put into Dialogflow CX session// parameters. To remove a parameter from the session, clients should// explicitly set the parameter value to null. Note: this field should only be// used if you are connecting to a Dialogflow CX agent.CxParametersgoogleapi.RawMessage `json:"cxParameters,omitempty"`// EventInput: An input event to send to Dialogflow.EventInput *GoogleCloudDialogflowV2beta1EventInput `json:"eventInput,omitempty"`// IntentInput: The intent to be triggered on V3 agent.IntentInput *GoogleCloudDialogflowV2beta1IntentInput `json:"intentInput,omitempty"`// MessageSendTime: Optional. The send time of the message from end user or// human agent's perspective. It is used for identifying the same message under// one participant. For BatchCreateMessages API only: Given two messages under// the same participant: * If send time are different regardless of whether the// content of the messages are exactly the same, the conversation will regard// them as two distinct messages sent by the participant. * If send time is the// same regardless of whether the content of the messages are exactly the same,// the conversation will regard them as same message, and ignore the message// received later. If the value is not provided, a new request will always be// regarded as a new message without any de-duplication.MessageSendTimestring `json:"messageSendTime,omitempty"`// QueryParams: Parameters for a Dialogflow virtual-agent query.QueryParams *GoogleCloudDialogflowV2beta1QueryParameters `json:"queryParams,omitempty"`// ReplyAudioConfig: Speech synthesis configuration. The speech synthesis// settings for a virtual agent that may be configured for the associated// conversation profile are not used when calling AnalyzeContent. If this// configuration is not supplied, speech synthesis is disabled.ReplyAudioConfig *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"replyAudioConfig,omitempty"`// RequestId: A unique identifier for this request. Restricted to 36 ASCII// characters. A random UUID is recommended. This request is only idempotent if// a `request_id` is provided.RequestIdstring `json:"requestId,omitempty"`// SuggestionInput: An input representing the selection of a suggestion.SuggestionInput *GoogleCloudDialogflowV2beta1SuggestionInput `json:"suggestionInput,omitempty"`// TextInput: The natural language text to be processed.TextInput *GoogleCloudDialogflowV2beta1TextInput `json:"textInput,omitempty"`// ForceSendFields is a list of field names (e.g. "AssistQueryParams") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AssistQueryParams") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AnalyzeContentRequest: The request message forParticipants.AnalyzeContent.

func (GoogleCloudDialogflowV2beta1AnalyzeContentRequest)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1AnalyzeContentResponseadded inv0.42.0

type GoogleCloudDialogflowV2beta1AnalyzeContentResponse struct {// AutomatedAgentReply: Optional. Only set if a Dialogflow automated agent has// responded. Note that:// AutomatedAgentReply.detect_intent_response.output_audio and// AutomatedAgentReply.detect_intent_response.output_audio_config are always// empty, use reply_audio instead.AutomatedAgentReply *GoogleCloudDialogflowV2beta1AutomatedAgentReply `json:"automatedAgentReply,omitempty"`// DtmfParameters: Indicates the parameters of DTMF.DtmfParameters *GoogleCloudDialogflowV2beta1DtmfParameters `json:"dtmfParameters,omitempty"`// EndUserSuggestionResults: The suggestions for end user. The order is the// same as HumanAgentAssistantConfig.SuggestionConfig.feature_configs of// HumanAgentAssistantConfig.end_user_suggestion_config. Same as// human_agent_suggestion_results, any failure of Agent Assist features will// not lead to the overall failure of an AnalyzeContent API call. Instead, the// features will fail silently with the error field set in the corresponding// SuggestionResult.EndUserSuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"endUserSuggestionResults,omitempty"`// HumanAgentSuggestionResults: The suggestions for most recent human agent.// The order is the same as// HumanAgentAssistantConfig.SuggestionConfig.feature_configs of// HumanAgentAssistantConfig.human_agent_suggestion_config. Note that any// failure of Agent Assist features will not lead to the overall failure of an// AnalyzeContent API call. Instead, the features will fail silently with the// error field set in the corresponding SuggestionResult.HumanAgentSuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"humanAgentSuggestionResults,omitempty"`// Message: Output only. Message analyzed by CCAI.Message *GoogleCloudDialogflowV2beta1Message `json:"message,omitempty"`// ReplyAudio: Optional. The audio data bytes encoded as specified in the// request. This field is set if: - `reply_audio_config` was specified in the// request, or - The automated agent responded with audio to play to the user.// In such case, `reply_audio.config` contains settings used to synthesize the// speech. 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.ReplyAudio *GoogleCloudDialogflowV2beta1OutputAudio `json:"replyAudio,omitempty"`// ReplyText: Output only. The output text content. This field is set if the// automated agent responded with text to show to the user.ReplyTextstring `json:"replyText,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AutomatedAgentReply") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AutomatedAgentReply") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AnalyzeContentResponse: The response message forParticipants.AnalyzeContent.

func (GoogleCloudDialogflowV2beta1AnalyzeContentResponse)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1AnnotatedMessagePartadded inv0.42.0

type GoogleCloudDialogflowV2beta1AnnotatedMessagePart struct {// EntityType: Optional. The Dialogflow system entity type// (https://cloud.google.com/dialogflow/docs/reference/system-entities) of this// message part. If this is empty, Dialogflow could not annotate the phrase// part with a system entity.EntityTypestring `json:"entityType,omitempty"`// FormattedValue: Optional. 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: Required. A part of a message possibly annotated with an entity.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "EntityType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AnnotatedMessagePart: Represents a part of amessage possibly annotated with an entity. The part can be an entity orpurely a part of the message between two entities or message start/end.

func (GoogleCloudDialogflowV2beta1AnnotatedMessagePart)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1AnswerFeedbackadded inv0.42.0

type GoogleCloudDialogflowV2beta1AnswerFeedback struct {// AgentAssistantDetailFeedback: Optional. Detail feedback of agent assistant// suggestions.AgentAssistantDetailFeedback *GoogleCloudDialogflowV2beta1AgentAssistantFeedback `json:"agentAssistantDetailFeedback,omitempty"`// ClickTime: Time when the answer/item was clicked.ClickTimestring `json:"clickTime,omitempty"`// Clicked: Indicates whether the answer/item was clicked by the human agent or// not. Default to false. For knowledge search, the answer record is considered// to be clicked if the answer was copied or any URI was clicked.Clickedbool `json:"clicked,omitempty"`// CorrectnessLevel: The correctness level of the specific answer.//// Possible values://   "CORRECTNESS_LEVEL_UNSPECIFIED" - Correctness level unspecified.//   "NOT_CORRECT" - Answer is totally wrong.//   "PARTIALLY_CORRECT" - Answer is partially correct.//   "FULLY_CORRECT" - Answer is fully correct.CorrectnessLevelstring `json:"correctnessLevel,omitempty"`// DisplayTime: Time when the answer/item was displayed.DisplayTimestring `json:"displayTime,omitempty"`// Displayed: Indicates whether the answer/item was displayed to the human// agent in the agent desktop UI. Default to false.Displayedbool `json:"displayed,omitempty"`// ForceSendFields is a list of field names (e.g.// "AgentAssistantDetailFeedback") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentAssistantDetailFeedback") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AnswerFeedback: Represents feedback the customerhas about the quality & correctness of a certain answer in a conversation.

func (GoogleCloudDialogflowV2beta1AnswerFeedback)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1AnswerRecordadded inv0.42.0

type GoogleCloudDialogflowV2beta1AnswerRecord struct {// AgentAssistantRecord: Output only. The record for human agent assistant.AgentAssistantRecord *GoogleCloudDialogflowV2beta1AgentAssistantRecord `json:"agentAssistantRecord,omitempty"`// AnswerFeedback: Optional. The AnswerFeedback for this record. You can set// this with AnswerRecords.UpdateAnswerRecord in order to give us feedback// about this answer.AnswerFeedback *GoogleCloudDialogflowV2beta1AnswerFeedback `json:"answerFeedback,omitempty"`// Name: The unique identifier of this answer record. Required for// AnswerRecords.UpdateAnswerRecord method. Format:// `projects//locations//answerRecords/`.Namestring `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. "AgentAssistantRecord") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentAssistantRecord") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AnswerRecord: Answer records are records tomanage answer history and feedbacks for Dialogflow. Currently, answer recordincludes: - human agent assistant article suggestion - human agent assistantfaq article It doesn't include: - `DetectIntent` intent matching -`DetectIntent` knowledge Answer records are not related to the conversationhistory in the Dialogflow Console. A Record is generated even when theend-user disables conversation history in the console. Records are createdwhen there's a human agent assistant suggestion generated. A typicalworkflow for customers provide feedback to an answer is: 1. For human agentassistant, customers get suggestion via ListSuggestions API. Together withthe answers, AnswerRecord.name are returned to the customers. 2. Thecustomer uses the AnswerRecord.name to call the UpdateAnswerRecord method tosend feedback about a specific answer that they believe is wrong.

func (GoogleCloudDialogflowV2beta1AnswerRecord)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1ArticleAnsweradded inv0.42.0

type GoogleCloudDialogflowV2beta1ArticleAnswer struct {// AnswerRecord: The name of answer record, in the format of// "projects//locations//answerRecords/"AnswerRecordstring `json:"answerRecord,omitempty"`// Metadata: A map that contains metadata about the answer and the document// from which it originates.Metadata map[string]string `json:"metadata,omitempty"`// Snippets: Output only. Article snippets.Snippets []string `json:"snippets,omitempty"`// Title: The article title.Titlestring `json:"title,omitempty"`// Uri: The article URI.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerRecord") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerRecord") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ArticleAnswer: Represents article answer.

func (GoogleCloudDialogflowV2beta1ArticleAnswer)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1AssistQueryParametersadded inv0.61.0

type GoogleCloudDialogflowV2beta1AssistQueryParameters struct {// DocumentsMetadataFilters: Key-value filters on the metadata of documents// returned by article suggestion. If specified, article suggestion only// returns suggested documents that match all filters in their// Document.metadata. Multiple values for a metadata key should be concatenated// by comma. For example, filters to match all documents that have 'US' or 'CA'// in their market metadata values and 'agent' in their user metadata values// will be “` documents_metadata_filters { key: "market" value: "US,CA" }// documents_metadata_filters { key: "user" value: "agent" } “`DocumentsMetadataFilters map[string]string `json:"documentsMetadataFilters,omitempty"`// ForceSendFields is a list of field names (e.g. "DocumentsMetadataFilters")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DocumentsMetadataFilters") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AssistQueryParameters: Represents the parametersof human assist query.

func (GoogleCloudDialogflowV2beta1AssistQueryParameters)MarshalJSONadded inv0.61.0

typeGoogleCloudDialogflowV2beta1AudioInputadded inv0.42.0

type GoogleCloudDialogflowV2beta1AudioInput struct {// Audio: Required. The natural language speech audio to be processed. A single// request can contain up to 2 minutes of speech audio data. The transcribed// text cannot contain more than 256 bytes for virtual agent interactions.Audiostring `json:"audio,omitempty"`// Config: Required. Instructs the speech recognizer how to process the speech// audio.Config *GoogleCloudDialogflowV2beta1InputAudioConfig `json:"config,omitempty"`// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Audio") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AudioInput: Represents the natural languagespeech audio to be processed.

func (GoogleCloudDialogflowV2beta1AudioInput)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1AutomatedAgentConfigadded inv0.42.0

type GoogleCloudDialogflowV2beta1AutomatedAgentConfig struct {// Agent: Required. ID of the Dialogflow agent environment to use. This project// needs to either be the same project as the conversation or you need to grant// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API// Service Agent` role in this project. - For ES agents, use format:// `projects//locations//agent/environments/`. If environment is not specified,// the default `draft` environment is used. Refer to DetectIntentRequest// (/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2beta1#google.cloud.// dialogflow.v2beta1.DetectIntentRequest) for more details. - For CX agents,// use format `projects//locations//agents//environments/`. If environment is// not specified, the default `draft` environment is used.Agentstring `json:"agent,omitempty"`// SessionTtl: Optional. Configure lifetime of the Dialogflow session. By// default, a Dialogflow CX session remains active and its data is stored for// 30 minutes after the last request is sent for the session. This value should// be no longer than 1 day.SessionTtlstring `json:"sessionTtl,omitempty"`// ForceSendFields is a list of field names (e.g. "Agent") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Agent") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AutomatedAgentConfig: Defines the AutomatedAgent to connect to a conversation.

func (GoogleCloudDialogflowV2beta1AutomatedAgentConfig)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1AutomatedAgentReplyadded inv0.42.0

type GoogleCloudDialogflowV2beta1AutomatedAgentReply struct {// AllowCancellation: Indicates whether the partial automated agent reply is// interruptible when a later reply message arrives. e.g. if the agent// specified some music as partial response, it can be cancelled.AllowCancellationbool `json:"allowCancellation,omitempty"`// AutomatedAgentReplyType: AutomatedAgentReply type.//// Possible values://   "AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED" - Not specified. This should// never happen.//   "PARTIAL" - Partial reply. e.g. Aggregated responses in a `Fulfillment`// that enables `return_partial_response` can be returned as partial reply.// WARNING: partial reply is not eligible for barge-in.//   "FINAL" - Final reply.AutomatedAgentReplyTypestring `json:"automatedAgentReplyType,omitempty"`// CallCompanionAuthCode: The auth code for accessing Call Companion UI.CallCompanionAuthCodestring `json:"callCompanionAuthCode,omitempty"`// CxCurrentPage: The unique identifier of the current Dialogflow CX// conversation page. Format: `projects//locations//agents//flows//pages/`.CxCurrentPagestring `json:"cxCurrentPage,omitempty"`// CxSessionParameters: The collection of current Dialogflow CX agent session// parameters at the time of this response. Deprecated: Use `parameters`// instead.CxSessionParametersgoogleapi.RawMessage `json:"cxSessionParameters,omitempty"`// DetectIntentResponse: Response of the Dialogflow Sessions.DetectIntent call.DetectIntentResponse *GoogleCloudDialogflowV2beta1DetectIntentResponse `json:"detectIntentResponse,omitempty"`// Event: Event name if an event is triggered for the query.Eventstring `json:"event,omitempty"`// Intent: Name of the intent if an intent is matched for the query. For a V2// query, the value format is `projects//locations/ /agent/intents/`. For a V3// query, the value format is `projects//locations/ /agents//intents/`.Intentstring `json:"intent,omitempty"`// MatchConfidence: The confidence of the match. 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.MatchConfidencefloat64 `json:"matchConfidence,omitempty"`// Parameters: The collection of current parameters at the time of this// response.Parametersgoogleapi.RawMessage `json:"parameters,omitempty"`// ResponseMessages: Response messages from the automated agent.ResponseMessages []*GoogleCloudDialogflowV2beta1ResponseMessage `json:"responseMessages,omitempty"`// ForceSendFields is a list of field names (e.g. "AllowCancellation") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AllowCancellation") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1AutomatedAgentReply: Represents a response froman automated agent.

func (GoogleCloudDialogflowV2beta1AutomatedAgentReply)MarshalJSONadded inv0.42.0

func (*GoogleCloudDialogflowV2beta1AutomatedAgentReply)UnmarshalJSONadded inv0.48.0

typeGoogleCloudDialogflowV2beta1BargeInConfigadded inv0.110.0

type GoogleCloudDialogflowV2beta1BargeInConfig struct {// NoBargeInDuration: Duration that is not eligible for barge-in at the// beginning of the input audio.NoBargeInDurationstring `json:"noBargeInDuration,omitempty"`// TotalDuration: Total duration for the playback at the beginning of the input// audio.TotalDurationstring `json:"totalDuration,omitempty"`// ForceSendFields is a list of field names (e.g. "NoBargeInDuration") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NoBargeInDuration") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1BargeInConfig: Configuration of the barge-inbehavior. Barge-in instructs the API to return a detected utterance at aproper time while the client is playing back the response audio from aprevious request. When the client sees the utterance, it should stop theplayback and immediately get ready for receiving the responses for thecurrent request. The barge-in handling requires the client to startstreaming audio input as soon as it starts playing back the audio from theprevious response. The playback is modeled into two phases: * No barge-inphase: which goes first and during which speech detection should not becarried out. * Barge-in phase: which follows the no barge-in phase andduring which the API starts speech detection and may inform the client thatan utterance has been detected. Note that no-speech event is not expected inthis phase. The client provides this configuration in terms of the durationsof those two phases. The durations are measured in terms of the audio lengthfrom the start of the input audio. The flow goes like below: ``` --> Timewithout speech detection | utterance only | utterance or no-speech event | |+-------------+ | +------------+ | +---------------+ ----------+ no barge-in+-|-+ barge-in +-|-+ normal period +----------- +-------------+ |+------------+ | +---------------+ ``` No-speech event is a response withEND_OF_UTTERANCE without any transcript following up.

func (GoogleCloudDialogflowV2beta1BargeInConfig)MarshalJSONadded inv0.110.0

typeGoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest

type GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest struct {// Entities: Required. The entities to create.Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `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#intent-entity).LanguageCodestring `json:"languageCode,omitempty"`// ForceSendFields is a list of field names (e.g. "Entities") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest: The request messagefor EntityTypes.BatchCreateEntities.

func (GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest)MarshalJSON

typeGoogleCloudDialogflowV2beta1BatchCreateMessagesRequestadded inv0.42.0

type GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest struct {// Requests: Required. A maximum of 300 messages can be created in a batch.// CreateMessageRequest.message.send_time is required. All created messages// will have identical Message.create_time.Requests []*GoogleCloudDialogflowV2beta1CreateMessageRequest `json:"requests,omitempty"`// ForceSendFields is a list of field names (e.g. "Requests") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Requests") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest: The request messagefor Conversations.BatchCreateMessagesRequest.

func (GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1BatchCreateMessagesResponseadded inv0.42.0

type GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse struct {// Messages: Messages created.Messages []*GoogleCloudDialogflowV2beta1Message `json:"messages,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Messages") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Messages") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse: The request messagefor Conversations.BatchCreateMessagesResponse.

func (GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest

type GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest 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#intent-entity).LanguageCodestring `json:"languageCode,omitempty"`// ForceSendFields is a list of field names (e.g. "EntityValues") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest: The request messagefor EntityTypes.BatchDeleteEntities.

func (GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest)MarshalJSON

typeGoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest

type GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest 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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest: The requestmessage for EntityTypes.BatchDeleteEntityTypes.

func (GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest)MarshalJSON

typeGoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest

type GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest struct {// Intents: Required. The collection of intents to delete. Only intent `name`// must be filled in.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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest: The request messagefor Intents.BatchDeleteIntents.

func (GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest)MarshalJSON

typeGoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest

type GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest struct {// Entities: Required. The entities to update or create.Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `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#intent-entity).LanguageCodestring `json:"languageCode,omitempty"`// UpdateMask: Optional. The mask to control which fields get updated.UpdateMaskstring `json:"updateMask,omitempty"`// ForceSendFields is a list of field names (e.g. "Entities") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest: The request messagefor EntityTypes.BatchUpdateEntities.

func (GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest)MarshalJSON

typeGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest

type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest struct {// EntityTypeBatchInline: The collection of entity types to update or create.EntityTypeBatchInline *GoogleCloudDialogflowV2beta1EntityTypeBatch `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://".EntityTypeBatchUristring `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#intent-entity).LanguageCodestring `json:"languageCode,omitempty"`// UpdateMask: Optional. The mask to control which fields get updated.UpdateMaskstring `json:"updateMask,omitempty"`// ForceSendFields is a list of field names (e.g. "EntityTypeBatchInline") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest: The requestmessage for EntityTypes.BatchUpdateEntityTypes.

func (GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest)MarshalJSON

typeGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse

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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse: The responsemessage for EntityTypes.BatchUpdateEntityTypes.

func (GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse)MarshalJSON

typeGoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest

type GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest struct {// IntentBatchInline: The collection of intents to update or create.IntentBatchInline *GoogleCloudDialogflowV2beta1IntentBatch `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://".IntentBatchUristring `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.IntentViewstring `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#intent-entity).LanguageCodestring `json:"languageCode,omitempty"`// UpdateMask: Optional. The mask to control which fields get updated.UpdateMaskstring `json:"updateMask,omitempty"`// ForceSendFields is a list of field names (e.g. "IntentBatchInline") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest: The request messagefor Intents.BatchUpdateIntents.

func (GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest)MarshalJSON

typeGoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse

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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse: The response messagefor Intents.BatchUpdateIntents.

func (GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse)MarshalJSON

typeGoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadataadded inv0.71.0

type GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata struct {// ConversationProfile: The resource name of the conversation profile. Format:// `projects//locations//conversationProfiles/`ConversationProfilestring `json:"conversationProfile,omitempty"`// CreateTime: Timestamp whe the request was created. The time is measured on// server side.CreateTimestring `json:"createTime,omitempty"`// ParticipantRole: Required. The participant role to remove the suggestion// feature config. Only HUMAN_AGENT or END_USER can be used.//// 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.ParticipantRolestring `json:"participantRole,omitempty"`// SuggestionFeatureType: Required. The type of the suggestion feature to// remove.//// Possible values://   "TYPE_UNSPECIFIED" - Unspecified feature type.//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.//   "FAQ" - Run FAQ model.//   "SMART_REPLY" - Run smart reply model for chat.//   "DIALOGFLOW_ASSIST" - Run Dialogflow assist model for chat, which will// return automated agent response as suggestion.//   "CONVERSATION_SUMMARIZATION" - Run conversation summarization model for// chat.//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or// text generated query.//   "KNOWLEDGE_ASSIST" - Run knowledge assist with automatic query generation.SuggestionFeatureTypestring `json:"suggestionFeatureType,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversationProfile") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationProfile") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata:Metadata for a ConversationProfile.ClearSuggestionFeatureConfig operation.

func (GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequestadded inv0.71.0

type GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest struct {// ParticipantRole: Required. The participant role to remove the suggestion// feature config. Only HUMAN_AGENT or END_USER can be used.//// 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.ParticipantRolestring `json:"participantRole,omitempty"`// SuggestionFeatureType: Required. The type of the suggestion feature to// remove.//// Possible values://   "TYPE_UNSPECIFIED" - Unspecified feature type.//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.//   "FAQ" - Run FAQ model.//   "SMART_REPLY" - Run smart reply model for chat.//   "DIALOGFLOW_ASSIST" - Run Dialogflow assist model for chat, which will// return automated agent response as suggestion.//   "CONVERSATION_SUMMARIZATION" - Run conversation summarization model for// chat.//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or// text generated query.//   "KNOWLEDGE_ASSIST" - Run knowledge assist with automatic query generation.SuggestionFeatureTypestring `json:"suggestionFeatureType,omitempty"`// ForceSendFields is a list of field names (e.g. "ParticipantRole") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ParticipantRole") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest: The requestmessage for ConversationProfiles.ClearFeature.

func (GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2beta1CompileSuggestionRequestadded inv0.42.0

type GoogleCloudDialogflowV2beta1CompileSuggestionRequest struct {// ContextSize: Optional. Max number of messages prior to and including// [latest_message] to use as context when compiling the suggestion. If zero or// less than zero, 20 is used.ContextSizeint64 `json:"contextSize,omitempty"`// LatestMessage: Optional. The name of the latest conversation message to// compile suggestion for. If empty, it will be the latest message of the// conversation. Format: `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// ForceSendFields is a list of field names (e.g. "ContextSize") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContextSize") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1CompileSuggestionRequest: The request messagefor Participants.CompileSuggestion.

func (GoogleCloudDialogflowV2beta1CompileSuggestionRequest)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1CompileSuggestionResponseadded inv0.42.0

type GoogleCloudDialogflowV2beta1CompileSuggestionResponse struct {// ContextSize: Number of messages prior to and including latest_message to// compile the suggestion. It may be smaller than the// CompileSuggestionRequest.context_size field in the request if there aren't// that many messages in the conversation.ContextSizeint64 `json:"contextSize,omitempty"`// LatestMessage: The name of the latest conversation message used to compile// suggestion for. Format: `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// Suggestion: The compiled suggestion.Suggestion *GoogleCloudDialogflowV2beta1Suggestion `json:"suggestion,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ContextSize") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContextSize") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1CompileSuggestionResponse: The response messagefor Participants.CompileSuggestion.

func (GoogleCloudDialogflowV2beta1CompileSuggestionResponse)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1CompleteConversationRequestadded inv0.42.0

type GoogleCloudDialogflowV2beta1CompleteConversationRequest struct {}

GoogleCloudDialogflowV2beta1CompleteConversationRequest: The request messagefor Conversations.CompleteConversation.

typeGoogleCloudDialogflowV2beta1Connectionadded inv0.205.0

type GoogleCloudDialogflowV2beta1Connection struct {// ConnectionId: Output only. The unique identifier of the SIP Trunk// connection.ConnectionIdstring `json:"connectionId,omitempty"`// ErrorDetails: Output only. The error details for the connection. Only// populated when authentication errors occur.ErrorDetails *GoogleCloudDialogflowV2beta1ConnectionErrorDetails `json:"errorDetails,omitempty"`// State: Output only. State of the connection.//// Possible values://   "STATE_UNSPECIFIED" - SIP Trunk connection state is Not specified.//   "CONNECTED" - SIP Trunk connection is connected.//   "DISCONNECTED" - SIP Trunk connection is disconnected.//   "AUTHENTICATION_FAILED" - SIP Trunk connection has authentication error.//   "KEEPALIVE" - SIP Trunk connection is keepalive.Statestring `json:"state,omitempty"`// UpdateTime: Output only. When the connection status changed.UpdateTimestring `json:"updateTime,omitempty"`// ForceSendFields is a list of field names (e.g. "ConnectionId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConnectionId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1Connection: Represents a connection for SIPTrunk.

func (GoogleCloudDialogflowV2beta1Connection)MarshalJSONadded inv0.205.0

typeGoogleCloudDialogflowV2beta1ConnectionErrorDetailsadded inv0.205.0

type GoogleCloudDialogflowV2beta1ConnectionErrorDetails struct {// CertificateState: Output only. The status of the certificate authentication.//// Possible values://   "CERTIFICATE_STATE_UNSPECIFIED" - Certificate state is not specified.//   "CERTIFICATE_VALID" - Certificate is valid.//   "CERTIFICATE_INVALID" - Catch all for any error not specified.//   "CERTIFICATE_EXPIRED" - Certificate leaf node has expired.//   "CERTIFICATE_HOSTNAME_NOT_FOUND" - There is no hostname defined to// authenticate in SipTrunkingServer.//   "CERTIFICATE_UNAUTHENTICATED" - No path found from the leaf certificate to// any root.//   "CERTIFICATE_TRUST_STORE_NOT_FOUND" - Trust store does not exist.//   "CERTIFICATE_HOSTNAME_INVALID_FORMAT" - Hostname has invalid format.//   "CERTIFICATE_QUOTA_EXCEEDED" - Certificate has exhausted its quota.CertificateStatestring `json:"certificateState,omitempty"`// ErrorMessage: The error message provided from SIP trunking auth serviceErrorMessagestring `json:"errorMessage,omitempty"`// ForceSendFields is a list of field names (e.g. "CertificateState") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CertificateState") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ConnectionErrorDetails: The error details of SipTrunk connection authentication.

func (GoogleCloudDialogflowV2beta1ConnectionErrorDetails)MarshalJSONadded inv0.205.0

typeGoogleCloudDialogflowV2beta1Context

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.LifespanCountint64 `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`Namestring `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 then use map, otherwise, depending on the parameter value// type, it could be one of string, number, boolean, null, list or map. *// MapValue value: If parameter's entity type is a composite entity then use// map from composite entity property names to property values, otherwise, use// parameter value.Parametersgoogleapi.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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1Context: Dialogflow contexts are similar tonatural language context. If a person says to you "they are orange", youneed context in order to understand what "they" is referring to. Similarly,for Dialogflow to handle an end-user expression like that, it needs to beprovided with context in order to correctly match an intent. Using contexts,you can control the flow of a conversation. You can configure contexts foran intent by setting input and output contexts, which are identified bystring names. When an intent is matched, any configured output contexts forthat intent become active. While any contexts are active, Dialogflow is morelikely to match intents that are configured with input contexts thatcorrespond to the currently active contexts. For more information aboutcontext, see the Contexts guide(https://cloud.google.com/dialogflow/docs/contexts-overview).

func (GoogleCloudDialogflowV2beta1Context)MarshalJSON

typeGoogleCloudDialogflowV2beta1Conversationadded inv0.42.0

type GoogleCloudDialogflowV2beta1Conversation struct {// ConversationProfile: Required. The Conversation Profile to be used to// configure this Conversation. This field cannot be updated. Format:// `projects//locations//conversationProfiles/`.ConversationProfilestring `json:"conversationProfile,omitempty"`// ConversationStage: Optional. The stage of a conversation. It indicates// whether the virtual agent or a human agent is handling the conversation. If// the conversation is created with the conversation profile that has// Dialogflow config set, defaults to ConversationStage.VIRTUAL_AGENT_STAGE;// Otherwise, defaults to ConversationStage.HUMAN_ASSIST_STAGE. If the// conversation is created with the conversation profile that has Dialogflow// config set but explicitly sets conversation_stage to// ConversationStage.HUMAN_ASSIST_STAGE, it skips// ConversationStage.VIRTUAL_AGENT_STAGE stage and directly goes to// ConversationStage.HUMAN_ASSIST_STAGE.//// Possible values://   "CONVERSATION_STAGE_UNSPECIFIED" - Unknown. Should never be used after a// conversation is successfully created.//   "VIRTUAL_AGENT_STAGE" - The conversation should return virtual agent// responses into the conversation.//   "HUMAN_ASSIST_STAGE" - The conversation should not provide responses, just// listen and provide suggestions.ConversationStagestring `json:"conversationStage,omitempty"`// EndTime: Output only. The time the conversation was finished.EndTimestring `json:"endTime,omitempty"`// IngestedContextReferences: Output only. The context reference updates// provided by external systems.IngestedContextReferences map[string]GoogleCloudDialogflowV2beta1ConversationContextReference `json:"ingestedContextReferences,omitempty"`// LifecycleState: Output only. The current state of the Conversation.//// Possible values://   "LIFECYCLE_STATE_UNSPECIFIED" - Unknown.//   "IN_PROGRESS" - Conversation is currently open for media analysis.//   "COMPLETED" - Conversation has been completed.LifecycleStatestring `json:"lifecycleState,omitempty"`// Name: Output only. Identifier. The unique identifier of this conversation.// Format: `projects//locations//conversations/`.Namestring `json:"name,omitempty"`// PhoneNumber: Output only. Required if the conversation is to be connected// over telephony.PhoneNumber *GoogleCloudDialogflowV2beta1ConversationPhoneNumber `json:"phoneNumber,omitempty"`// StartTime: Output only. The time the conversation was started.StartTimestring `json:"startTime,omitempty"`// TelephonyConnectionInfo: Output only. The telephony connection information.TelephonyConnectionInfo *GoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfo `json:"telephonyConnectionInfo,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ConversationProfile") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationProfile") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1Conversation: Represents a conversation. Aconversation is an interaction between an agent, including live agents andDialogflow agents, and a support customer. Conversations can include phonecalls and text-based chat sessions.

func (GoogleCloudDialogflowV2beta1Conversation)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1ConversationContextadded inv0.183.0

type GoogleCloudDialogflowV2beta1ConversationContext struct {// MessageEntries: Optional. List of message transcripts in the conversation.MessageEntries []*GoogleCloudDialogflowV2beta1MessageEntry `json:"messageEntries,omitempty"`// ForceSendFields is a list of field names (e.g. "MessageEntries") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MessageEntries") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ConversationContext: Context of theconversation, including transcripts.

func (GoogleCloudDialogflowV2beta1ConversationContext)MarshalJSONadded inv0.183.0

typeGoogleCloudDialogflowV2beta1ConversationContextReferenceadded inv0.226.0

type GoogleCloudDialogflowV2beta1ConversationContextReference struct {// ContextContents: Required. The list of content updates for a context// reference.ContextContents []*GoogleCloudDialogflowV2beta1ConversationContextReferenceContextContent `json:"contextContents,omitempty"`// CreateTime: Output only. The time the context reference was first created.CreateTimestring `json:"createTime,omitempty"`// LanguageCode: Optional. The language of the information ingested, defaults// to "en-US" if not set.LanguageCodestring `json:"languageCode,omitempty"`// UpdateMode: Required. The mode in which context reference contents are// updated.//// Possible values://   "UPDATE_MODE_UNSPECIFIED" - Unspecified update mode.//   "APPEND" - Context content updates are applied in append mode.//   "OVERWRITE" - Context content updates are applied in overwrite mode.UpdateModestring `json:"updateMode,omitempty"`// ForceSendFields is a list of field names (e.g. "ContextContents") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContextContents") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ConversationContextReference: Represents a pieceof ingested context information.

func (GoogleCloudDialogflowV2beta1ConversationContextReference)MarshalJSONadded inv0.226.0

typeGoogleCloudDialogflowV2beta1ConversationContextReferenceContextContentadded inv0.226.0

type GoogleCloudDialogflowV2beta1ConversationContextReferenceContextContent struct {// AnswerRecord: If the context content was generated from a tool call, specify// the answer record associated with the tool call. Format:// `projects//locations//answerRecords/`.AnswerRecordstring `json:"answerRecord,omitempty"`// Content: Required. The information ingested in a single request.Contentstring `json:"content,omitempty"`// ContentFormat: Required. The format of the ingested string.//// Possible values://   "CONTENT_FORMAT_UNSPECIFIED" - Unspecified content format.//   "JSON" - Content was provided in JSON format.//   "PLAIN_TEXT" - Content was provided as plain text.ContentFormatstring `json:"contentFormat,omitempty"`// IngestionTime: Output only. The time when this information was incorporated// into the relevant context reference.IngestionTimestring `json:"ingestionTime,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerRecord") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerRecord") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ConversationContextReferenceContextContent:Contents ingested.

func (GoogleCloudDialogflowV2beta1ConversationContextReferenceContextContent)MarshalJSONadded inv0.226.0

typeGoogleCloudDialogflowV2beta1ConversationEventadded inv0.42.0

type GoogleCloudDialogflowV2beta1ConversationEvent struct {// Conversation: Required. The unique identifier of the conversation this// notification refers to. Format: `projects//conversations/`.Conversationstring `json:"conversation,omitempty"`// ErrorStatus: Optional. 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 *GoogleCloudDialogflowV2beta1Message `json:"newMessagePayload,omitempty"`// NewRecognitionResultPayload: Payload of NEW_RECOGNITION_RESULT event.NewRecognitionResultPayload *GoogleCloudDialogflowV2beta1StreamingRecognitionResult `json:"newRecognitionResultPayload,omitempty"`// Type: Required. 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. The event is fired for every CompleteConversation call, even if the// conversation is already closed.//   "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//   "NEW_RECOGNITION_RESULT" - An existing conversation has received a new// speech recognition result. This is mainly for delivering intermediate// transcripts. The notification is configured in// ConversationProfile.new_recognition_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.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Conversation") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ConversationEvent: Represents a notificationsent to Pub/Sub subscribers for conversation lifecycle events.

func (GoogleCloudDialogflowV2beta1ConversationEvent)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1ConversationPhoneNumberadded inv0.42.0

type GoogleCloudDialogflowV2beta1ConversationPhoneNumber struct {// CountryCode: Output only. Desired country code for the phone number.CountryCodeint64 `json:"countryCode,omitempty"`// PhoneNumber: Output only. The phone number to connect to this conversation.PhoneNumberstring `json:"phoneNumber,omitempty"`// ForceSendFields is a list of field names (e.g. "CountryCode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CountryCode") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ConversationPhoneNumber: Represents a phonenumber for telephony integration. It allows for connecting a particularconversation over telephony.

func (GoogleCloudDialogflowV2beta1ConversationPhoneNumber)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1ConversationProfileadded inv0.42.0

type GoogleCloudDialogflowV2beta1ConversationProfile struct {// AutomatedAgentConfig: Configuration for an automated agent to use with this// profile.AutomatedAgentConfig *GoogleCloudDialogflowV2beta1AutomatedAgentConfig `json:"automatedAgentConfig,omitempty"`// CreateTime: Output only. Create time of the conversation profile.CreateTimestring `json:"createTime,omitempty"`// DisplayName: Required. Human readable name for this profile. Max length 1024// bytes.DisplayNamestring `json:"displayName,omitempty"`// HumanAgentAssistantConfig: Configuration for agent assistance to use with// this profile.HumanAgentAssistantConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig `json:"humanAgentAssistantConfig,omitempty"`// HumanAgentHandoffConfig: Configuration for connecting to a live agent.// Currently, this feature is not general available, please contact Google to// get access.HumanAgentHandoffConfig *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig `json:"humanAgentHandoffConfig,omitempty"`// LanguageCode: Language code for the conversation profile. If not specified,// the language is en-US. Language at ConversationProfile should be set for all// non en-us languages. This should be a BCP-47// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example:// "en-US".LanguageCodestring `json:"languageCode,omitempty"`// LoggingConfig: Configuration for logging conversation lifecycle events.LoggingConfig *GoogleCloudDialogflowV2beta1LoggingConfig `json:"loggingConfig,omitempty"`// Name: The unique identifier of this conversation profile. Format:// `projects//locations//conversationProfiles/`.Namestring `json:"name,omitempty"`// NewMessageEventNotificationConfig: Configuration for publishing new message// events. Event will be sent in format of ConversationEventNewMessageEventNotificationConfig *GoogleCloudDialogflowV2beta1NotificationConfig `json:"newMessageEventNotificationConfig,omitempty"`// NewRecognitionResultNotificationConfig: Optional. Configuration for// publishing transcription intermediate results. Event will be sent in format// of ConversationEvent. If configured, the following information will be// populated as ConversationEvent Pub/Sub message attributes: -// "participant_id" - "participant_role" - "message_id"NewRecognitionResultNotificationConfig *GoogleCloudDialogflowV2beta1NotificationConfig `json:"newRecognitionResultNotificationConfig,omitempty"`// NotificationConfig: Configuration for publishing conversation lifecycle// events.NotificationConfig *GoogleCloudDialogflowV2beta1NotificationConfig `json:"notificationConfig,omitempty"`// SecuritySettings: Name of the CX SecuritySettings reference for the agent.// Format: `projects//locations//securitySettings/`.SecuritySettingsstring `json:"securitySettings,omitempty"`// SttConfig: Settings for speech transcription.SttConfig *GoogleCloudDialogflowV2beta1SpeechToTextConfig `json:"sttConfig,omitempty"`// TimeZone: The time zone of this conversational profile from the time zone// database (https://www.iana.org/time-zones), e.g., America/New_York,// Europe/Paris. Defaults to America/New_York.TimeZonestring `json:"timeZone,omitempty"`// TtsConfig: Configuration for Text-to-Speech synthesization. Used by Phone// Gateway to specify synthesization options. If agent defines synthesization// options as well, agent settings overrides the option here.TtsConfig *GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig `json:"ttsConfig,omitempty"`// UpdateTime: Output only. Update time of the conversation profile.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AutomatedAgentConfig") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AutomatedAgentConfig") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ConversationProfile: Defines the services toconnect to incoming Dialogflow conversations.

func (GoogleCloudDialogflowV2beta1ConversationProfile)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfoadded inv0.217.0

type GoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfo struct {// DialedNumber: Output only. The number dialed to connect this call in E.164// format.DialedNumberstring `json:"dialedNumber,omitempty"`// ExtraMimeContents: Output only. The mime content from the initial SIP// INVITE.ExtraMimeContents []*GoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfoMimeContent `json:"extraMimeContents,omitempty"`// Sdp: Optional. SDP of the call. It's initially the SDP answer to the// incoming call, but maybe later updated for the purpose of making the link// active, etc.Sdpstring `json:"sdp,omitempty"`// SipHeaders: Output only. The SIP headers from the initial SIP INVITE.SipHeaders []*GoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfoSipHeader `json:"sipHeaders,omitempty"`// ForceSendFields is a list of field names (e.g. "DialedNumber") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DialedNumber") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfo: Theinformation about phone calls connected via phone gateway to theconversation.

func (GoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfo)MarshalJSONadded inv0.217.0

typeGoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfoMimeContentadded inv0.217.0

type GoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfoMimeContent struct {// Content: Optional. The content payload.Contentstring `json:"content,omitempty"`// MimeType: Optional. The mime type of the content.MimeTypestring `json:"mimeType,omitempty"`// ForceSendFields is a list of field names (e.g. "Content") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfoMimeContent:The mime content from the initial SIP INVITE.

func (GoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfoMimeContent)MarshalJSONadded inv0.217.0

typeGoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfoSipHeaderadded inv0.217.0

type GoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfoSipHeader struct {// Name: Optional. The name of the header.Namestring `json:"name,omitempty"`// Value: Optional. The value of the header.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfoSipHeader:The SIP headers from the initial SIP INVITE.

func (GoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfoSipHeader)MarshalJSONadded inv0.217.0

typeGoogleCloudDialogflowV2beta1CreateMessageRequestadded inv0.42.0

type GoogleCloudDialogflowV2beta1CreateMessageRequest struct {// Message: Required. The message to create. Message.participant is required.Message *GoogleCloudDialogflowV2beta1Message `json:"message,omitempty"`// Parent: Required. Resource identifier of the conversation to create message.// Format: `projects//locations//conversations/`.Parentstring `json:"parent,omitempty"`// ForceSendFields is a list of field names (e.g. "Message") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Message") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1CreateMessageRequest: The request message tocreate one Message. Currently it is only used in BatchCreateMessagesRequest.

func (GoogleCloudDialogflowV2beta1CreateMessageRequest)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1CustomPronunciationParamsadded inv0.230.0

type GoogleCloudDialogflowV2beta1CustomPronunciationParams struct {// PhoneticEncoding: The phonetic encoding of the phrase.//// Possible values://   "PHONETIC_ENCODING_UNSPECIFIED" - Not specified.//   "PHONETIC_ENCODING_IPA" - IPA, such as apple -> ˈæpəl.//https://en.wikipedia.org/wiki/International_Phonetic_Alphabet//   "PHONETIC_ENCODING_X_SAMPA" - X-SAMPA, such as apple -> "{p@l".//https://en.wikipedia.org/wiki/X-SAMPAPhoneticEncodingstring `json:"phoneticEncoding,omitempty"`// Phrase: The phrase to which the customization is applied. The phrase can be// multiple words, such as proper nouns, but shouldn't span the length of the// sentence.Phrasestring `json:"phrase,omitempty"`// Pronunciation: The pronunciation of the phrase. This must be in the phonetic// encoding specified above.Pronunciationstring `json:"pronunciation,omitempty"`// ForceSendFields is a list of field names (e.g. "PhoneticEncoding") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "PhoneticEncoding") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1CustomPronunciationParams: Pronunciationcustomization for a phrase.

func (GoogleCloudDialogflowV2beta1CustomPronunciationParams)MarshalJSONadded inv0.230.0

typeGoogleCloudDialogflowV2beta1DetectIntentRequest

type GoogleCloudDialogflowV2beta1DetectIntentRequest 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.InputAudiostring `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 *GoogleCloudDialogflowV2beta1OutputAudioConfig `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.OutputAudioConfigMaskstring `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 *GoogleCloudDialogflowV2beta1QueryInput `json:"queryInput,omitempty"`// QueryParams: The parameters of this query.QueryParams *GoogleCloudDialogflowV2beta1QueryParameters `json:"queryParams,omitempty"`// ForceSendFields is a list of field names (e.g. "InputAudio") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1DetectIntentRequest: The request to detectuser's intent.

func (GoogleCloudDialogflowV2beta1DetectIntentRequest)MarshalJSON

typeGoogleCloudDialogflowV2beta1DetectIntentResponse

type GoogleCloudDialogflowV2beta1DetectIntentResponse struct {// AlternativeQueryResults: If Knowledge Connectors are enabled, there could be// more than one result returned for a given query or event, and this field// will contain all results except for the top one, which is captured in// query_result. The alternative results are ordered by decreasing// `QueryResult.intent_detection_confidence`. If Knowledge Connectors are// disabled, this field will be empty until multiple responses for regular// intents are supported, at which point those additional results will be// surfaced here.AlternativeQueryResults []*GoogleCloudDialogflowV2beta1QueryResult `json:"alternativeQueryResults,omitempty"`// 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.OutputAudiostring `json:"outputAudio,omitempty"`// OutputAudioConfig: The config used by the speech synthesizer to generate the// output audio.OutputAudioConfig *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`// QueryResult: The selected results of the conversational query or event// processing. See `alternative_query_results` for additional potential// results.QueryResult *GoogleCloudDialogflowV2beta1QueryResult `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.ResponseIdstring `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. "AlternativeQueryResults") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1DetectIntentResponse: The message returned fromthe DetectIntent method.

func (GoogleCloudDialogflowV2beta1DetectIntentResponse)MarshalJSON

typeGoogleCloudDialogflowV2beta1DialogflowAssistAnsweradded inv0.125.0

type GoogleCloudDialogflowV2beta1DialogflowAssistAnswer struct {// AnswerRecord: The name of answer record, in the format of// "projects//locations//answerRecords/"AnswerRecordstring `json:"answerRecord,omitempty"`// IntentSuggestion: An intent suggestion generated from conversation.IntentSuggestion *GoogleCloudDialogflowV2beta1IntentSuggestion `json:"intentSuggestion,omitempty"`// QueryResult: Result from v2 agent.QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerRecord") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerRecord") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1DialogflowAssistAnswer: Represents a Dialogflowassist answer.

func (GoogleCloudDialogflowV2beta1DialogflowAssistAnswer)MarshalJSONadded inv0.125.0

typeGoogleCloudDialogflowV2beta1Document

type GoogleCloudDialogflowV2beta1Document struct {// Content: The raw content of the document. This field is only permitted for// EXTRACTIVE_QA and FAQ knowledge types. Note: This field is in the process of// being deprecated, please use raw_content instead.Contentstring `json:"content,omitempty"`// ContentUri: The URI where the file content is located. For documents stored// in Google Cloud Storage, these URIs must have the form `gs:///`. NOTE:// External URLs must correspond to public webpages, i.e., they must be indexed// by Google Search. In particular, URLs for showing documents in Google Cloud// Storage (i.e. the URL in your browser) are not supported. Instead use the// `gs://` format URI described above.ContentUristring `json:"contentUri,omitempty"`// DisplayName: Required. The display name of the document. The name must be// 1024 bytes or less; otherwise, the creation request fails.DisplayNamestring `json:"displayName,omitempty"`// EnableAutoReload: Optional. If true, we try to automatically reload the// document every day (at a time picked by the system). If false or// unspecified, we don't try to automatically reload the document. Currently// you can only enable automatic reload for documents sourced from a public// url, see `source` field for the source types. Reload status can be tracked// in `latest_reload_status`. If a reload fails, we will keep the document// unchanged. If a reload fails with internal errors, the system will try to// reload the document on the next day. If a reload fails with non-retriable// errors (e.g. PERMISSION_DENIED), the system will not try to reload the// document anymore. You need to manually reload the document successfully by// calling `ReloadDocument` and clear the errors.EnableAutoReloadbool `json:"enableAutoReload,omitempty"`// KnowledgeTypes: Required. The knowledge type of document content.//// Possible values://   "KNOWLEDGE_TYPE_UNSPECIFIED" - The type is unspecified or arbitrary.//   "FAQ" - The document content contains question and answer pairs as either// HTML or CSV. Typical FAQ HTML formats are parsed accurately, but unusual// formats may fail to be parsed. CSV must have questions in the first column// and answers in the second, with no header. Because of this explicit format,// they are always parsed accurately.//   "EXTRACTIVE_QA" - Documents for which unstructured text is extracted and// used for question answering.//   "ARTICLE_SUGGESTION" - The entire document content as a whole can be used// for query results. Only for Contact Center Solutions on Dialogflow.//   "AGENT_FACING_SMART_REPLY" - The document contains agent-facing Smart// Reply entries.//   "SMART_REPLY" - The legacy enum for agent-facing smart reply feature.KnowledgeTypes []string `json:"knowledgeTypes,omitempty"`// LatestReloadStatus: Output only. The time and status of the latest reload.// This reload may have been triggered automatically or manually and may not// have succeeded.LatestReloadStatus *GoogleCloudDialogflowV2beta1DocumentReloadStatus `json:"latestReloadStatus,omitempty"`// Metadata: Optional. Metadata for the document. The metadata supports// arbitrary key-value pairs. Suggested use cases include storing a document's// title, an external URL distinct from the document's content_uri, etc. The// max size of a `key` or a `value` of the metadata is 1024 bytes.Metadata map[string]string `json:"metadata,omitempty"`// MimeType: Required. The MIME type of this document.MimeTypestring `json:"mimeType,omitempty"`// Name: Optional. The document resource name. The name must be empty when// creating a document. Format:// `projects//locations//knowledgeBases//documents/`.Namestring `json:"name,omitempty"`// RawContent: The raw content of the document. This field is only permitted// for EXTRACTIVE_QA and FAQ knowledge types.RawContentstring `json:"rawContent,omitempty"`// State: Output only. The current state of the document.//// Possible values://   "STATE_UNSPECIFIED" - The document state is unspecified.//   "CREATING" - The document creation is in progress.//   "ACTIVE" - The document is active and ready to use.//   "UPDATING" - The document updation is in progress.//   "RELOADING" - The document is reloading.//   "DELETING" - The document deletion is in progress.Statestring `json:"state,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Content") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1Document: A knowledge document to be used by aKnowledgeBase. For more information, see the knowledge base guide(https://cloud.google.com/dialogflow/docs/how/knowledge-bases). Note: The`projects.agent.knowledgeBases.documents` resource is deprecated; only use`projects.knowledgeBases.documents`.

func (GoogleCloudDialogflowV2beta1Document)MarshalJSON

typeGoogleCloudDialogflowV2beta1DocumentReloadStatusadded inv0.23.0

type GoogleCloudDialogflowV2beta1DocumentReloadStatus struct {// Status: Output only. The status of a reload attempt or the initial load.Status *GoogleRpcStatus `json:"status,omitempty"`// Time: Output only. The time of a reload attempt. This reload may have been// triggered automatically or manually and may not have succeeded.Timestring `json:"time,omitempty"`// ForceSendFields is a list of field names (e.g. "Status") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Status") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1DocumentReloadStatus: The status of a reloadattempt.

func (GoogleCloudDialogflowV2beta1DocumentReloadStatus)MarshalJSONadded inv0.23.0

typeGoogleCloudDialogflowV2beta1DtmfParametersadded inv0.42.0

type GoogleCloudDialogflowV2beta1DtmfParameters struct {// AcceptsDtmfInput: Indicates whether DTMF input can be handled in the next// request.AcceptsDtmfInputbool `json:"acceptsDtmfInput,omitempty"`// ForceSendFields is a list of field names (e.g. "AcceptsDtmfInput") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AcceptsDtmfInput") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1DtmfParameters: The message in the response thatindicates the parameters of DTMF.

func (GoogleCloudDialogflowV2beta1DtmfParameters)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1EncryptionSpecadded inv0.149.0

type GoogleCloudDialogflowV2beta1EncryptionSpec struct {// KmsKey: Required. The name of customer-managed encryption key that is used// to secure a resource and its sub-resources. If empty, the resource is// secured by the default Google encryption key. Only the key in the same// location as this resource is allowed to be used for encryption. Format:// `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`KmsKeystring `json:"kmsKey,omitempty"`// Name: Immutable. The resource name of the encryption key specification// resource. Format: projects/{project}/locations/{location}/encryptionSpecNamestring `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. "KmsKey") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "KmsKey") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1EncryptionSpec: A customer-managed encryptionkey specification that can be applied to all created resources (e.g.Conversation).

func (GoogleCloudDialogflowV2beta1EncryptionSpec)MarshalJSONadded inv0.149.0

typeGoogleCloudDialogflowV2beta1EntityType

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.AutoExpansionModestring `json:"autoExpansionMode,omitempty"`// DisplayName: Required. The name of the entity type.DisplayNamestring `json:"displayName,omitempty"`// EnableFuzzyExtraction: Optional. Enables fuzzy entity extraction during// classification.EnableFuzzyExtractionbool `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.Kindstring `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/`Namestring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1EntityType: Each intent parameter has a type,called the entity type, which dictates exactly how data from an end-userexpression is extracted. Dialogflow provides predefined system entities thatcan match many common types of data. For example, there are system entitiesfor matching dates, times, colors, email addresses, and so on. You can alsocreate your own custom entities for matching custom data. For example, youcould define a vegetable entity that can match the types of vegetablesavailable for purchase with a grocery store agent. For more information, seethe Entity guide(https://cloud.google.com/dialogflow/docs/entities-overview).

func (GoogleCloudDialogflowV2beta1EntityType)MarshalJSON

typeGoogleCloudDialogflowV2beta1EntityTypeBatch

type GoogleCloudDialogflowV2beta1EntityTypeBatch struct {// EntityTypes: A collection of 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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1EntityTypeBatch: This message is a wrapperaround a collection of entity types.

func (GoogleCloudDialogflowV2beta1EntityTypeBatch)MarshalJSON

typeGoogleCloudDialogflowV2beta1EntityTypeEntity

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).Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Synonyms") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1EntityTypeEntity: An **entity entry** for anassociated entity type.

func (GoogleCloudDialogflowV2beta1EntityTypeEntity)MarshalJSON

typeGoogleCloudDialogflowV2beta1Environmentadded inv0.18.0

type GoogleCloudDialogflowV2beta1Environment struct {// AgentVersion: Optional. The agent version loaded into this environment.// Supported formats: - `projects//agent/versions/` -// `projects//locations//agent/versions/`AgentVersionstring `json:"agentVersion,omitempty"`// Description: Optional. The developer-provided description for this// environment. The maximum length is 500 characters. If exceeded, the request// is rejected.Descriptionstring `json:"description,omitempty"`// Fulfillment: Optional. The fulfillment settings to use for this environment.Fulfillment *GoogleCloudDialogflowV2beta1Fulfillment `json:"fulfillment,omitempty"`// Name: Output only. The unique identifier of this agent environment.// Supported formats: - `projects//agent/environments/` -// `projects//locations//agent/environments/`Namestring `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.Statestring `json:"state,omitempty"`// TextToSpeechSettings: Optional. Text to speech settings for this// environment.TextToSpeechSettings *GoogleCloudDialogflowV2beta1TextToSpeechSettings `json:"textToSpeechSettings,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.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AgentVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1Environment: You can create multiple versions ofyour agent and publish them to separate environments. When you edit anagent, you are editing the draft agent. At any point, you can save the draftagent 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 environmentsguide (https://cloud.google.com/dialogflow/docs/agents-versions).

func (GoogleCloudDialogflowV2beta1Environment)MarshalJSONadded inv0.18.0

typeGoogleCloudDialogflowV2beta1EnvironmentHistoryadded inv0.18.0

type GoogleCloudDialogflowV2beta1EnvironmentHistory struct {// Entries: Output only. The list of agent environments. There will be a// maximum number of items returned based on the page_size field in the// request.Entries []*GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry `json:"entries,omitempty"`// NextPageToken: Output only. Token to retrieve the next page of results, or// empty if there are no more results in the list.NextPageTokenstring `json:"nextPageToken,omitempty"`// Parent: Output only. The name of the environment this history is for.// Supported formats: - `projects//agent/environments/` -// `projects//locations//agent/environments/`Parentstring `json:"parent,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1EnvironmentHistory: The response message forEnvironments.GetEnvironmentHistory.

func (GoogleCloudDialogflowV2beta1EnvironmentHistory)MarshalJSONadded inv0.18.0

typeGoogleCloudDialogflowV2beta1EnvironmentHistoryEntryadded inv0.18.0

type GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry struct {// AgentVersion: The agent version loaded into this environment history entry.AgentVersionstring `json:"agentVersion,omitempty"`// CreateTime: The creation time of this environment history entry.CreateTimestring `json:"createTime,omitempty"`// Description: The developer-provided description for this environment history// entry.Descriptionstring `json:"description,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry: Represents anenvironment history entry.

func (GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry)MarshalJSONadded inv0.18.0

typeGoogleCloudDialogflowV2beta1EvaluationStatusadded inv0.250.0

type GoogleCloudDialogflowV2beta1EvaluationStatus struct {// Done: Output only. If the value is `false`, it means the evaluation is still// in progress. If `true`, the operation is completed, and either `error` or// `response` is available.Donebool `json:"done,omitempty"`// PipelineStatus: Output only. The error result of the evaluation in case of// failure in evaluation pipeline.PipelineStatus *GoogleRpcStatus `json:"pipelineStatus,omitempty"`// ForceSendFields is a list of field names (e.g. "Done") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1EvaluationStatus: A common evalaution pipelinestatus.

func (GoogleCloudDialogflowV2beta1EvaluationStatus)MarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1EventInput

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. This field is// ignored when used in the context of a WebhookResponse.followup_event_input// field, because the language was already defined in the originating detect// intent request.LanguageCodestring `json:"languageCode,omitempty"`// Name: Required. The unique identifier of the event.Namestring `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 then use map, otherwise, depending on the parameter value// type, it could be one of string, number, boolean, null, list or map. *// MapValue value: If parameter's entity type is a composite entity then use// map from composite entity property names to property values, otherwise, use// parameter value.Parametersgoogleapi.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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1EventInput: Events allow for matching intents byevent name instead of the natural language input. For instance, input “ cantrigger a personalized welcome response. The parameter `name` may be used bythe agent in the response: "Hello #welcome_event.name! What can I do foryou today?".

func (GoogleCloudDialogflowV2beta1EventInput)MarshalJSON

typeGoogleCloudDialogflowV2beta1ExportAgentRequest

type GoogleCloudDialogflowV2beta1ExportAgentRequest struct {// AgentUri: Optional. 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. Dialogflow performs a write operation for the// Cloud Storage object on the caller's behalf, so your request authentication// must have write permissions for the object. For more information, see// Dialogflow access control// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).AgentUristring `json:"agentUri,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentUri") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ExportAgentRequest: The request message forAgents.ExportAgent.

func (GoogleCloudDialogflowV2beta1ExportAgentRequest)MarshalJSON

typeGoogleCloudDialogflowV2beta1ExportAgentResponse

type GoogleCloudDialogflowV2beta1ExportAgentResponse struct {// AgentContent: Zip compressed raw byte content for agent.AgentContentstring `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`.AgentUristring `json:"agentUri,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentContent") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ExportAgentResponse: The response message forAgents.ExportAgent.

func (GoogleCloudDialogflowV2beta1ExportAgentResponse)MarshalJSON

typeGoogleCloudDialogflowV2beta1ExportOperationMetadataadded inv0.71.0

type GoogleCloudDialogflowV2beta1ExportOperationMetadata struct {// ExportedGcsDestination: Cloud Storage file path of the exported data.ExportedGcsDestination *GoogleCloudDialogflowV2beta1GcsDestination `json:"exportedGcsDestination,omitempty"`// ForceSendFields is a list of field names (e.g. "ExportedGcsDestination") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExportedGcsDestination") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ExportOperationMetadata: Metadata related to theExport Data Operations (e.g. ExportDocument).

func (GoogleCloudDialogflowV2beta1ExportOperationMetadata)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2beta1FaqAnsweradded inv0.42.0

type GoogleCloudDialogflowV2beta1FaqAnswer struct {// Answer: The piece of text from the `source` knowledge base document.Answerstring `json:"answer,omitempty"`// AnswerRecord: The name of answer record, in the format of// "projects//locations//answerRecords/"AnswerRecordstring `json:"answerRecord,omitempty"`// Confidence: The system's confidence score that this Knowledge answer is a// good match for this conversational query, range from 0.0 (completely// uncertain) to 1.0 (completely certain).Confidencefloat64 `json:"confidence,omitempty"`// Metadata: A map that contains metadata about the answer and the document// from which it originates.Metadata map[string]string `json:"metadata,omitempty"`// Question: The corresponding FAQ question.Questionstring `json:"question,omitempty"`// Source: Indicates which Knowledge Document this answer was extracted from.// Format: `projects//locations//agent/knowledgeBases//documents/`.Sourcestring `json:"source,omitempty"`// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1FaqAnswer: Represents answer from "frequentlyasked questions".

func (GoogleCloudDialogflowV2beta1FaqAnswer)MarshalJSONadded inv0.42.0

func (*GoogleCloudDialogflowV2beta1FaqAnswer)UnmarshalJSONadded inv0.42.0

func (s *GoogleCloudDialogflowV2beta1FaqAnswer) UnmarshalJSON(data []byte)error

typeGoogleCloudDialogflowV2beta1FewShotExampleadded inv0.183.0

type GoogleCloudDialogflowV2beta1FewShotExample struct {// ConversationContext: Optional. Conversation transcripts.ConversationContext *GoogleCloudDialogflowV2beta1ConversationContext `json:"conversationContext,omitempty"`// ExtraInfo: Optional. Key is the placeholder field name in input, value is// the value of the placeholder. E.g. instruction contains "@price", and// ingested data has <"price", "10">ExtraInfo map[string]string `json:"extraInfo,omitempty"`// Output: Required. Example output of the model.Output *GoogleCloudDialogflowV2beta1GeneratorSuggestion `json:"output,omitempty"`// SummarizationSectionList: Summarization sections.SummarizationSectionList *GoogleCloudDialogflowV2beta1SummarizationSectionList `json:"summarizationSectionList,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversationContext") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationContext") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1FewShotExample: Providing examples in thegenerator (i.e. building a few-shot generator) helps convey the desiredformat of the LLM response.

func (GoogleCloudDialogflowV2beta1FewShotExample)MarshalJSONadded inv0.183.0

typeGoogleCloudDialogflowV2beta1FreeFormContextadded inv0.226.0

type GoogleCloudDialogflowV2beta1FreeFormContext struct {// Text: Optional. Free form text input to LLM.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "Text") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1FreeFormContext: Free form generator contextthat customer can configure.

func (GoogleCloudDialogflowV2beta1FreeFormContext)MarshalJSONadded inv0.226.0

typeGoogleCloudDialogflowV2beta1FreeFormSuggestionadded inv0.226.0

type GoogleCloudDialogflowV2beta1FreeFormSuggestion struct {// Response: Required. Free form suggestion.Responsestring `json:"response,omitempty"`// ForceSendFields is a list of field names (e.g. "Response") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Response") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1FreeFormSuggestion: Suggestion generated usingfree form generator.

func (GoogleCloudDialogflowV2beta1FreeFormSuggestion)MarshalJSONadded inv0.226.0

typeGoogleCloudDialogflowV2beta1Fulfillmentadded inv0.18.0

type GoogleCloudDialogflowV2beta1Fulfillment struct {// DisplayName: The human-readable name of the fulfillment, unique within the// agent. This field is not used for Fulfillment in an Environment.DisplayNamestring `json:"displayName,omitempty"`// Enabled: Whether fulfillment is enabled.Enabledbool `json:"enabled,omitempty"`// Features: The field defines whether the fulfillment is enabled for certain// features.Features []*GoogleCloudDialogflowV2beta1FulfillmentFeature `json:"features,omitempty"`// GenericWebService: Configuration for a generic web service.GenericWebService *GoogleCloudDialogflowV2beta1FulfillmentGenericWebService `json:"genericWebService,omitempty"`// Name: Required. The unique identifier of the fulfillment. Supported formats:// - `projects//agent/fulfillment` - `projects//locations//agent/fulfillment`// This field is not used for Fulfillment in an Environment.Namestring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1Fulfillment: By default, your agent responds toa matched intent with a static response. As an alternative, you can providea more dynamic response by using fulfillment. When you enable fulfillmentfor an intent, Dialogflow responds to that intent by calling a service thatyou define. For example, if an end-user wants to schedule a haircut onFriday, your service can check your database and respond to the end-userwith availability information for Friday. For more information, see thefulfillment guide(https://cloud.google.com/dialogflow/docs/fulfillment-overview).

func (GoogleCloudDialogflowV2beta1Fulfillment)MarshalJSONadded inv0.18.0

typeGoogleCloudDialogflowV2beta1FulfillmentFeatureadded inv0.18.0

type GoogleCloudDialogflowV2beta1FulfillmentFeature 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.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Type") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1FulfillmentFeature: Whether fulfillment isenabled for the specific feature.

func (GoogleCloudDialogflowV2beta1FulfillmentFeature)MarshalJSONadded inv0.18.0

typeGoogleCloudDialogflowV2beta1FulfillmentGenericWebServiceadded inv0.18.0

type GoogleCloudDialogflowV2beta1FulfillmentGenericWebService struct {// IsCloudFunction: Optional. Indicates if generic web service is created// through Cloud Functions integration. Defaults to false. is_cloud_function is// deprecated. Cloud functions can be configured by its uri as a regular web// service now.IsCloudFunctionbool `json:"isCloudFunction,omitempty"`// Password: The password for HTTP Basic authentication.Passwordstring `json:"password,omitempty"`// RequestHeaders: 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.Uristring `json:"uri,omitempty"`// Username: The user name for HTTP Basic authentication.Usernamestring `json:"username,omitempty"`// ForceSendFields is a list of field names (e.g. "IsCloudFunction") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1FulfillmentGenericWebService: Representsconfiguration for a generic web service. Dialogflow supports two mechanismsfor authentications: - Basic authentication with username and password. -Authentication with additional authentication headers. More informationcould be found at:https://cloud.google.com/dialogflow/docs/fulfillment-configure.

func (GoogleCloudDialogflowV2beta1FulfillmentGenericWebService)MarshalJSONadded inv0.18.0

typeGoogleCloudDialogflowV2beta1GcsDestinationadded inv0.71.0

type GoogleCloudDialogflowV2beta1GcsDestination struct {// Uri: Required. The Google Cloud Storage URIs for the output. A URI is of the// form: `gs://bucket/object-prefix-or-name` Whether a prefix or name is used// depends on the use case. The requesting user must have "write-permission" to// the bucket.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GcsDestination: Google Cloud Storage locationfor the output.

func (GoogleCloudDialogflowV2beta1GcsDestination)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2beta1GcsSourceadded inv0.11.0

type GoogleCloudDialogflowV2beta1GcsSource struct {// Uri: Required. The Google Cloud Storage URIs for the inputs. A URI is of the// form: `gs://bucket/object-prefix-or-name` Whether a prefix or name is used// depends on the use case.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GcsSource: Google Cloud Storage location forsingle input.

func (GoogleCloudDialogflowV2beta1GcsSource)MarshalJSONadded inv0.11.0

typeGoogleCloudDialogflowV2beta1GcsSourcesadded inv0.42.0

type GoogleCloudDialogflowV2beta1GcsSources struct {// Uris: Required. Google Cloud Storage URIs for the inputs. A URI is of the// form: `gs://bucket/object-prefix-or-name` Whether a prefix or name is used// depends on the use case.Uris []string `json:"uris,omitempty"`// ForceSendFields is a list of field names (e.g. "Uris") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Uris") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GcsSources: Google Cloud Storage locations forthe inputs.

func (GoogleCloudDialogflowV2beta1GcsSources)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequestadded inv0.183.0

type GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest struct {// ContextReferences: Optional. A section of ingested context information. The// key is the name of the context reference and the value contains the contents// of the context reference. The key is used to incorporate ingested context// references to enhance the generator.ContextReferences map[string]GoogleCloudDialogflowV2beta1ConversationContextReference `json:"contextReferences,omitempty"`// ConversationContext: Optional. Context of the conversation, including// transcripts.ConversationContext *GoogleCloudDialogflowV2beta1ConversationContext `json:"conversationContext,omitempty"`// Generator: Uncreated generator. It should be a complete generator that// includes all information about the generator.Generator *GoogleCloudDialogflowV2beta1Generator `json:"generator,omitempty"`// GeneratorName: The resource name of the existing created generator. Format:// `projects//locations//generators/`GeneratorNamestring `json:"generatorName,omitempty"`// SecuritySettings: Optional. Name of the CX SecuritySettings which is used to// redact generated response. If this field is empty, try to fetch v2// security_settings, which is a project level setting. If this field is empty// and no v2 security_settings set up in this project, no redaction will be// done. Format: `projects//locations//securitySettings/`.SecuritySettingsstring `json:"securitySettings,omitempty"`// TriggerEvents: Optional. A list of trigger events. Generator will be// triggered only if it's trigger event is included here.//// Possible values://   "TRIGGER_EVENT_UNSPECIFIED" - Default value for TriggerEvent.//   "END_OF_UTTERANCE" - Triggers when each chat message or voice utterance// ends.//   "MANUAL_CALL" - Triggers on the conversation manually by API calls, such// as Conversations.GenerateStatelessSuggestion and// Conversations.GenerateSuggestions.//   "CUSTOMER_MESSAGE" - Triggers after each customer message only.//   "AGENT_MESSAGE" - Triggers after each agent message only.TriggerEvents []string `json:"triggerEvents,omitempty"`// ForceSendFields is a list of field names (e.g. "ContextReferences") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContextReferences") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest: The requestmessage for Conversations.GenerateStatelessSuggestion.

func (GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest)MarshalJSONadded inv0.183.0

typeGoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponseadded inv0.183.0

type GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse struct {// GeneratorSuggestion: Required. Generated suggestion for a conversation.GeneratorSuggestion *GoogleCloudDialogflowV2beta1GeneratorSuggestion `json:"generatorSuggestion,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "GeneratorSuggestion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "GeneratorSuggestion") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse: Theresponse message for Conversations.GenerateStatelessSuggestion.

func (GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse)MarshalJSONadded inv0.183.0

typeGoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestadded inv0.123.0

type GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest struct {// ConversationProfile: Required. A ConversationProfile containing information// required for Summary generation. Required fields: {language_code,// security_settings} Optional fields: {agent_assistant_config}ConversationProfile *GoogleCloudDialogflowV2beta1ConversationProfile `json:"conversationProfile,omitempty"`// LatestMessage: Optional. The name of the latest conversation message used as// context for generating a Summary. If empty, the latest message of the// conversation will be used. The format is specific to the user and the names// of the messages provided.LatestMessagestring `json:"latestMessage,omitempty"`// MaxContextSize: Optional. Max number of messages prior to and including// [latest_message] to use as context when compiling the suggestion. By default// 500 and at most 1000.MaxContextSizeint64 `json:"maxContextSize,omitempty"`// StatelessConversation: Required. The conversation to suggest a summary for.StatelessConversation *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation `json:"statelessConversation,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversationProfile") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationProfile") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest: The requestmessage for Conversations.GenerateStatelessSummary.

func (GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest)MarshalJSONadded inv0.123.0

typeGoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversationadded inv0.123.0

type GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation struct {// Messages: Required. The messages that the Summary will be generated from. It// is expected that this message content is already redacted and does not// contain any PII. Required fields: {content, language_code, participant,// participant_role} Optional fields: {send_time} If send_time is not provided,// then the messages must be provided in chronological order.Messages []*GoogleCloudDialogflowV2beta1Message `json:"messages,omitempty"`// ForceSendFields is a list of field names (e.g. "Messages") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Messages") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation: The minimum amount of information required to generate a Summary withouthaving a Conversation resource created.

func (GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation)MarshalJSONadded inv0.123.0

typeGoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseadded inv0.123.0

type GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse struct {// ContextSize: Number of messages prior to and including// last_conversation_message used to compile the suggestion. It may be smaller// than the GenerateStatelessSummaryRequest.context_size field in the request// if there weren't that many messages in the conversation.ContextSizeint64 `json:"contextSize,omitempty"`// LatestMessage: The name of the latest conversation message used as context// for compiling suggestion. The format is specific to the user and the names// of the messages provided.LatestMessagestring `json:"latestMessage,omitempty"`// Summary: Generated summary.Summary *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary `json:"summary,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ContextSize") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContextSize") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse: The responsemessage for Conversations.GenerateStatelessSummary.

func (GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse)MarshalJSONadded inv0.123.0

typeGoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummaryadded inv0.123.0

type GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary struct {// BaselineModelVersion: The baseline model version used to generate this// summary. It is empty if a baseline model was not used to generate this// summary.BaselineModelVersionstring `json:"baselineModelVersion,omitempty"`// Text: The summary content that is concatenated into one string.Textstring `json:"text,omitempty"`// TextSections: The summary content that is divided into sections. The key is// the section's name and the value is the section's content. There is no// specific format for the key or value.TextSections map[string]string `json:"textSections,omitempty"`// ForceSendFields is a list of field names (e.g. "BaselineModelVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BaselineModelVersion") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary:Generated summary for a conversation.

func (GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary)MarshalJSONadded inv0.123.0

typeGoogleCloudDialogflowV2beta1GenerateSuggestionsRequestadded inv0.226.0

type GoogleCloudDialogflowV2beta1GenerateSuggestionsRequest struct {// LatestMessage: Optional. The name of the latest conversation message for// which the request is triggered. Format:// `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// TriggerEvents: Optional. A list of trigger events. Only generators// configured in the conversation_profile whose trigger_event is listed here// will be triggered.//// Possible values://   "TRIGGER_EVENT_UNSPECIFIED" - Default value for TriggerEvent.//   "END_OF_UTTERANCE" - Triggers when each chat message or voice utterance// ends.//   "MANUAL_CALL" - Triggers on the conversation manually by API calls, such// as Conversations.GenerateStatelessSuggestion and// Conversations.GenerateSuggestions.//   "CUSTOMER_MESSAGE" - Triggers after each customer message only.//   "AGENT_MESSAGE" - Triggers after each agent message only.TriggerEvents []string `json:"triggerEvents,omitempty"`// ForceSendFields is a list of field names (e.g. "LatestMessage") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LatestMessage") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GenerateSuggestionsRequest: The request messagefor Conversations.GenerateSuggestions.

func (GoogleCloudDialogflowV2beta1GenerateSuggestionsRequest)MarshalJSONadded inv0.226.0

typeGoogleCloudDialogflowV2beta1GenerateSuggestionsResponseadded inv0.226.0

type GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse struct {// GeneratorSuggestionAnswers: The answers generated for the conversation based// on context.GeneratorSuggestionAnswers []*GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer `json:"generatorSuggestionAnswers,omitempty"`// LatestMessage: The name of the latest conversation message used as context// for compiling suggestion. Format:// `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "GeneratorSuggestionAnswers")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "GeneratorSuggestionAnswers") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse: The responsemessage for Conversations.GenerateSuggestions.

func (GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse)MarshalJSONadded inv0.226.0

typeGoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnsweradded inv0.226.0

type GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer struct {// AnswerRecord: Answer record that uniquely identifies the suggestion. This// can be used to provide suggestion feedback.AnswerRecordstring `json:"answerRecord,omitempty"`// GeneratorSuggestion: Suggestion details.GeneratorSuggestion *GoogleCloudDialogflowV2beta1GeneratorSuggestion `json:"generatorSuggestion,omitempty"`// SourceGenerator: The name of the generator used to generate this suggestion.// Format: `projects//locations//generators/`.SourceGeneratorstring `json:"sourceGenerator,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerRecord") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerRecord") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer: A GeneratorSuggestion answer.

func (GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer)MarshalJSONadded inv0.226.0

typeGoogleCloudDialogflowV2beta1Generatoradded inv0.183.0

type GoogleCloudDialogflowV2beta1Generator struct {// AgentCoachingContext: Input of Agent Coaching feature.AgentCoachingContext *GoogleCloudDialogflowV2beta1AgentCoachingContext `json:"agentCoachingContext,omitempty"`// CreateTime: Output only. Creation time of this generator.CreateTimestring `json:"createTime,omitempty"`// Description: Optional. Human readable description of the generator.Descriptionstring `json:"description,omitempty"`// FreeFormContext: Input of free from generator to LLM.FreeFormContext *GoogleCloudDialogflowV2beta1FreeFormContext `json:"freeFormContext,omitempty"`// InferenceParameter: Optional. Inference parameters for this generator.InferenceParameter *GoogleCloudDialogflowV2beta1InferenceParameter `json:"inferenceParameter,omitempty"`// Name: Output only. Identifier. The resource name of the generator. Format:// `projects//locations//generators/`Namestring `json:"name,omitempty"`// PublishedModel: Optional. The published Large Language Model name. * To use// the latest model version, specify the model name without version number.// Example: `text-bison` * To use a stable model version, specify the version// number as well. Example: `text-bison@002`.PublishedModelstring `json:"publishedModel,omitempty"`// SuggestionDedupingConfig: Optional. Configuration for suggestion deduping.// This is only applicable to AI Coach feature.SuggestionDedupingConfig *GoogleCloudDialogflowV2beta1SuggestionDedupingConfig `json:"suggestionDedupingConfig,omitempty"`// SummarizationContext: Input of Summarization feature.SummarizationContext *GoogleCloudDialogflowV2beta1SummarizationContext `json:"summarizationContext,omitempty"`// Tools: Optional. Resource names of the tools that the generator can choose// from. Format: `projects//locations//tools/`.Tools []string `json:"tools,omitempty"`// TriggerEvent: Optional. The trigger event of the generator. It defines when// the generator is triggered in a conversation.//// Possible values://   "TRIGGER_EVENT_UNSPECIFIED" - Default value for TriggerEvent.//   "END_OF_UTTERANCE" - Triggers when each chat message or voice utterance// ends.//   "MANUAL_CALL" - Triggers on the conversation manually by API calls, such// as Conversations.GenerateStatelessSuggestion and// Conversations.GenerateSuggestions.//   "CUSTOMER_MESSAGE" - Triggers after each customer message only.//   "AGENT_MESSAGE" - Triggers after each agent message only.TriggerEventstring `json:"triggerEvent,omitempty"`// UpdateTime: Output only. Update time of this generator.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AgentCoachingContext") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentCoachingContext") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1Generator: LLM generator.

func (GoogleCloudDialogflowV2beta1Generator)MarshalJSONadded inv0.183.0

typeGoogleCloudDialogflowV2beta1GeneratorEvaluationadded inv0.250.0

type GoogleCloudDialogflowV2beta1GeneratorEvaluation struct {// CompleteTime: Output only. Completion time of this generator evaluation.CompleteTimestring `json:"completeTime,omitempty"`// CreateTime: Output only. Creation time of this generator evaluation.CreateTimestring `json:"createTime,omitempty"`// DisplayName: Optional. The display name of the generator evaluation. At most// 64 bytes long.DisplayNamestring `json:"displayName,omitempty"`// EvaluationStatus: Output only. The result status of the evaluation pipeline.// Provides the status information including if the evaluation is still in// progress, completed or failed with certain error and user actionable// message.EvaluationStatus *GoogleCloudDialogflowV2beta1EvaluationStatus `json:"evaluationStatus,omitempty"`// GeneratorEvaluationConfig: Required. The configuration of the evaluation// task.GeneratorEvaluationConfig *GoogleCloudDialogflowV2beta1GeneratorEvaluationConfig `json:"generatorEvaluationConfig,omitempty"`// InitialGenerator: Required. The initial generator that was used when// creating this evaluation. This is a copy of the generator read from storage// when creating the evaluation.InitialGenerator *GoogleCloudDialogflowV2beta1Generator `json:"initialGenerator,omitempty"`// Name: Output only. Identifier. The resource name of the evaluation. Format:// `projects//locations//generators// evaluations/`Namestring `json:"name,omitempty"`// SatisfiesPzi: Output only. A read only boolean field reflecting Zone// Isolation status of the model. The field is an aggregated value of ZI status// of its underlying dependencies. See more details in// go/zicy-resource-placement#resource-statusSatisfiesPzibool `json:"satisfiesPzi,omitempty"`// SatisfiesPzs: Output only. A read only boolean field reflecting Zone// Separation status of the model. The field is an aggregated value of ZS// status of its underlying dependencies. See more details in// go/zicy-resource-placement#resource-statusSatisfiesPzsbool `json:"satisfiesPzs,omitempty"`// SummarizationMetrics: Output only. Only available when the summarization// generator is provided.SummarizationMetrics *GoogleCloudDialogflowV2beta1SummarizationEvaluationMetrics `json:"summarizationMetrics,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CompleteTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CompleteTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GeneratorEvaluation: Represents evaluationresult of a generator.

func (GoogleCloudDialogflowV2beta1GeneratorEvaluation)MarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1GeneratorEvaluationConfigadded inv0.250.0

type GoogleCloudDialogflowV2beta1GeneratorEvaluationConfig struct {// InputDataConfig: Required. The config/source of input data.InputDataConfig *GoogleCloudDialogflowV2beta1GeneratorEvaluationConfigInputDataConfig `json:"inputDataConfig,omitempty"`// OutputGcsBucketPath: Required. The output Cloud Storage bucket path to store// eval files, e.g. per_summary_accuracy_score report. This path is provided by// customer and files stored in it are visible to customer, no internal data// should be stored in this path.OutputGcsBucketPathstring `json:"outputGcsBucketPath,omitempty"`// SummarizationConfig: Evaluation configs for summarization generator.SummarizationConfig *GoogleCloudDialogflowV2beta1GeneratorEvaluationConfigSummarizationConfig `json:"summarizationConfig,omitempty"`// ForceSendFields is a list of field names (e.g. "InputDataConfig") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InputDataConfig") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GeneratorEvaluationConfig: Generator evaluationinput config.

func (GoogleCloudDialogflowV2beta1GeneratorEvaluationConfig)MarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1GeneratorEvaluationConfigAgentAssistInputDataConfigadded inv0.250.0

type GoogleCloudDialogflowV2beta1GeneratorEvaluationConfigAgentAssistInputDataConfig struct {// EndTime: Required. The end of the time range for conversations to be// evaluated. Only conversations ended at or before this timestamp will be// sampled.EndTimestring `json:"endTime,omitempty"`// StartTime: Required. The start of the time range for conversations to be// evaluated. Only conversations created at or after this timestamp will be// sampled.StartTimestring `json:"startTime,omitempty"`// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EndTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GeneratorEvaluationConfigAgentAssistInputDataConfig: The distinctive configs for Agent Assist conversations as theconversation source.

func (GoogleCloudDialogflowV2beta1GeneratorEvaluationConfigAgentAssistInputDataConfig)MarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1GeneratorEvaluationConfigDatasetInputDataConfigadded inv0.250.0

type GoogleCloudDialogflowV2beta1GeneratorEvaluationConfigDatasetInputDataConfig struct {// Dataset: Required. The identifier of the dataset to be evaluated. Format:// `projects//locations//datasets/`.Datasetstring `json:"dataset,omitempty"`// ForceSendFields is a list of field names (e.g. "Dataset") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Dataset") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GeneratorEvaluationConfigDatasetInputDataConfig:The distinctive configs for dataset as the conversation source.

func (GoogleCloudDialogflowV2beta1GeneratorEvaluationConfigDatasetInputDataConfig)MarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1GeneratorEvaluationConfigInputDataConfigadded inv0.250.0

type GoogleCloudDialogflowV2beta1GeneratorEvaluationConfigInputDataConfig struct {// AgentAssistInputDataConfig: The distinctive configs for Agent Assist// conversations as the conversation source.AgentAssistInputDataConfig *GoogleCloudDialogflowV2beta1GeneratorEvaluationConfigAgentAssistInputDataConfig `json:"agentAssistInputDataConfig,omitempty"`// DatasetInputDataConfig: The distinctive configs for dataset as the// conversation source.DatasetInputDataConfig *GoogleCloudDialogflowV2beta1GeneratorEvaluationConfigDatasetInputDataConfig `json:"datasetInputDataConfig,omitempty"`// EndTime: Optional. The end timestamp to fetch conversation data.EndTimestring `json:"endTime,omitempty"`// InputDataSourceType: Required. The source type of input data.//// Possible values://   "INPUT_DATA_SOURCE_TYPE_UNSPECIFIED" - Unspecified InputDataSourceType.// Should not be used.//   "AGENT_ASSIST_CONVERSATIONS" - Fetch data from Agent Assist storage. If// this source type is chosen, input_data_config.start_time and// input_data_config.end_timestamp must be provided.//   "INSIGHTS_CONVERSATIONS" - Fetch data from Insights storage. If this// source type is chosen, input_data_config.start_time and// input_data_config.end_timestamp must be provided.InputDataSourceTypestring `json:"inputDataSourceType,omitempty"`// IsSummaryGenerationAllowed: Optional. Whether the summary generation is// allowed when the pre-existing qualified summaries are insufficient to cover// the sample size.IsSummaryGenerationAllowedbool `json:"isSummaryGenerationAllowed,omitempty"`// SampleSize: Optional. Desired number of conversation-summary pairs to be// evaluated.SampleSizeint64 `json:"sampleSize,omitempty"`// StartTime: Optional. The start timestamp to fetch conversation data.StartTimestring `json:"startTime,omitempty"`// SummaryGenerationOption: Optional. Option to control whether summaries are// generated during evaluation.//// Possible values://   "SUMMARY_GENERATION_OPTION_UNSPECIFIED" - Default option will not be used//   "ALWAYS_GENERATE" - Always Generate summary for all conversations.//   "GENERATE_IF_MISSING" - Gnerate only missing summaries.//   "DO_NOT_GENERATE" - Do not generate new summaries. Only use existing// summaries found.SummaryGenerationOptionstring `json:"summaryGenerationOption,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentAssistInputDataConfig")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentAssistInputDataConfig") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GeneratorEvaluationConfigInputDataConfig: Inputdata config details

func (GoogleCloudDialogflowV2beta1GeneratorEvaluationConfigInputDataConfig)MarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1GeneratorEvaluationConfigSummarizationConfigadded inv0.250.0

type GoogleCloudDialogflowV2beta1GeneratorEvaluationConfigSummarizationConfig struct {// AccuracyEvaluationVersion: Optional. Version for summarization accuracy.// This will determine the prompt and model used at backend.AccuracyEvaluationVersionstring `json:"accuracyEvaluationVersion,omitempty"`// CompletenessEvaluationVersion: Optional. Version for summarization// completeness. This will determine the prompt and model used at backend.CompletenessEvaluationVersionstring `json:"completenessEvaluationVersion,omitempty"`// EnableAccuracyEvaluation: Optional. Enable accuracy evaluation.EnableAccuracyEvaluationbool `json:"enableAccuracyEvaluation,omitempty"`// EnableCompletenessEvaluation: Optional. Enable completeness evaluation.EnableCompletenessEvaluationbool `json:"enableCompletenessEvaluation,omitempty"`// EvaluatorVersion: Optional. Version for summarization evaluation.EvaluatorVersionstring `json:"evaluatorVersion,omitempty"`// ForceSendFields is a list of field names (e.g. "AccuracyEvaluationVersion")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccuracyEvaluationVersion") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GeneratorEvaluationConfigSummarizationConfig:Evaluation configs for summarization generator.

func (GoogleCloudDialogflowV2beta1GeneratorEvaluationConfigSummarizationConfig)MarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1GeneratorSuggestionadded inv0.183.0

type GoogleCloudDialogflowV2beta1GeneratorSuggestion struct {// AgentCoachingSuggestion: Optional. Suggestion to coach the agent.AgentCoachingSuggestion *GoogleCloudDialogflowV2beta1AgentCoachingSuggestion `json:"agentCoachingSuggestion,omitempty"`// FreeFormSuggestion: Optional. Free form suggestion.FreeFormSuggestion *GoogleCloudDialogflowV2beta1FreeFormSuggestion `json:"freeFormSuggestion,omitempty"`// SummarySuggestion: Optional. Suggested summary.SummarySuggestion *GoogleCloudDialogflowV2beta1SummarySuggestion `json:"summarySuggestion,omitempty"`// ToolCallInfo: Optional. List of request and response for tool calls// executed.ToolCallInfo []*GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo `json:"toolCallInfo,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentCoachingSuggestion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentCoachingSuggestion") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GeneratorSuggestion: Suggestion generated usinga Generator.

func (GoogleCloudDialogflowV2beta1GeneratorSuggestion)MarshalJSONadded inv0.183.0

typeGoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfoadded inv0.229.0

type GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo struct {// ToolCall: Required. Request for a tool call.ToolCall *GoogleCloudDialogflowV2beta1ToolCall `json:"toolCall,omitempty"`// ToolCallResult: Required. Response for a tool call.ToolCallResult *GoogleCloudDialogflowV2beta1ToolCallResult `json:"toolCallResult,omitempty"`// ForceSendFields is a list of field names (e.g. "ToolCall") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ToolCall") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo: Request andresponse for a tool call.

func (GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo)MarshalJSONadded inv0.229.0

typeGoogleCloudDialogflowV2beta1HumanAgentAssistantConfigadded inv0.42.0

type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig struct {// EndUserSuggestionConfig: Configuration for agent assistance of end user// participant. Currently, this feature is not general available, please// contact Google to get access.EndUserSuggestionConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig `json:"endUserSuggestionConfig,omitempty"`// HumanAgentSuggestionConfig: Configuration for agent assistance of human// agent participant.HumanAgentSuggestionConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig `json:"humanAgentSuggestionConfig,omitempty"`// MessageAnalysisConfig: Configuration for message analysis.MessageAnalysisConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig `json:"messageAnalysisConfig,omitempty"`// NotificationConfig: Pub/Sub topic on which to publish new agent assistant// events.NotificationConfig *GoogleCloudDialogflowV2beta1NotificationConfig `json:"notificationConfig,omitempty"`// ForceSendFields is a list of field names (e.g. "EndUserSuggestionConfig") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EndUserSuggestionConfig") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig: Defines the HumanAgent Assistant to connect to a conversation.

func (GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfigadded inv0.42.0

type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig struct {// BaselineModelVersion: Version of current baseline model. It will be ignored// if model is set. Valid versions are: - Article Suggestion baseline model: -// 0.9 - 1.0 (default) - Summarization baseline model: - 1.0BaselineModelVersionstring `json:"baselineModelVersion,omitempty"`// Model: Conversation model resource name. Format:// `projects//conversationModels/`.Modelstring `json:"model,omitempty"`// ForceSendFields is a list of field names (e.g. "BaselineModelVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BaselineModelVersion") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig:

Custom conversation models used in agent assist feature. Supported feature:

ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY, CONVERSATION_SUMMARIZATION.

func (GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationProcessConfigadded inv0.65.0

type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationProcessConfig struct {// RecentSentencesCount: Number of recent non-small-talk sentences to use as// context for article and FAQ suggestionRecentSentencesCountint64 `json:"recentSentencesCount,omitempty"`// ForceSendFields is a list of field names (e.g. "RecentSentencesCount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RecentSentencesCount") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationProcessConfig: Config to process conversation.

func (GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationProcessConfig)MarshalJSONadded inv0.65.0

typeGoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfigadded inv0.42.0

type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig struct {// EnableEntityExtraction: Enable entity extraction in conversation messages on// agent assist stage// (https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).// If unspecified, defaults to false. Currently, this feature is not general// available, please contact Google to get access.EnableEntityExtractionbool `json:"enableEntityExtraction,omitempty"`// EnableSentimentAnalysis: Enable sentiment analysis in conversation messages// on agent assist stage// (https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).// If unspecified, defaults to false. Sentiment analysis inspects user input// and identifies the prevailing subjective opinion, especially to determine a// user's attitude as positive, negative, or neutral://https://cloud.google.com/natural-language/docs/basics#sentiment_analysis For// Participants.StreamingAnalyzeContent method, result will be in// StreamingAnalyzeContentResponse.message.SentimentAnalysisResult. For// Participants.AnalyzeContent method, result will be in// AnalyzeContentResponse.message.SentimentAnalysisResult For// Conversations.ListMessages method, result will be in// ListMessagesResponse.messages.SentimentAnalysisResult If Pub/Sub// notification is configured, result will be in// ConversationEvent.new_message_payload.SentimentAnalysisResult.EnableSentimentAnalysisbool `json:"enableSentimentAnalysis,omitempty"`// ForceSendFields is a list of field names (e.g. "EnableEntityExtraction") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EnableEntityExtraction") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig:Configuration for analyses to run on each conversation message.

func (GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfigadded inv0.42.0

type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig struct {// DisableHighLatencyFeaturesSyncDelivery: Optional. When// disable_high_latency_features_sync_delivery is true and using the// AnalyzeContent API, we will not deliver the responses from high latency// features in the API response. The// human_agent_assistant_config.notification_config must be configured and// enable_event_based_suggestion must be set to true to receive the responses// from high latency features in Pub/Sub. High latency feature(s):// KNOWLEDGE_ASSISTDisableHighLatencyFeaturesSyncDeliverybool `json:"disableHighLatencyFeaturesSyncDelivery,omitempty"`// EnableAsyncToolCall: Optional. If true, enable asynchronous execution of// tools.EnableAsyncToolCallbool `json:"enableAsyncToolCall,omitempty"`// FeatureConfigs: Configuration of different suggestion features. One feature// can have only one config.FeatureConfigs []*GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig `json:"featureConfigs,omitempty"`// Generators: Optional. List of various generator resource names used in the// conversation profile.Generators []string `json:"generators,omitempty"`// GroupSuggestionResponses: If `group_suggestion_responses` is false, and// there are multiple `feature_configs` in `event based suggestion` or// StreamingAnalyzeContent, we will try to deliver suggestions to customers as// soon as we get new suggestion. Different type of suggestions based on the// same context will be in separate Pub/Sub event or// `StreamingAnalyzeContentResponse`. If `group_suggestion_responses` set to// true. All the suggestions to the same participant based on the same context// will be grouped into a single Pub/Sub event or// StreamingAnalyzeContentResponse.GroupSuggestionResponsesbool `json:"groupSuggestionResponses,omitempty"`// SkipEmptyEventBasedSuggestion: Optional. Enable skipping event based// suggestion if the suggestion is empty. For example, with this field// disabled, Knowledge Assist feature sends a Pub/Sub message when there are no// suggestions. Enabling this field will change the behavior to skip the// Pub/Sub message in this situation.SkipEmptyEventBasedSuggestionbool `json:"skipEmptyEventBasedSuggestion,omitempty"`// UseUnredactedConversationData: Optional. If true, use unredacted transcript// data (Supported features: AI_COACH) and use unredacted ingested context// (Supported features: All Agent Assist features)UseUnredactedConversationDatabool `json:"useUnredactedConversationData,omitempty"`// ForceSendFields is a list of field names (e.g.// "DisableHighLatencyFeaturesSyncDelivery") to unconditionally include in API// requests. By default, fields with empty or default values are omitted from// API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g.// "DisableHighLatencyFeaturesSyncDelivery") to include in API requests with// the JSON null value. By default, fields with empty values are omitted from// API requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-NullFields// for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig:Detail human agent assistant config.

func (GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfigadded inv0.42.0

type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig struct {// ConversationModelConfig: Configs of custom conversation model.ConversationModelConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig `json:"conversationModelConfig,omitempty"`// ConversationProcessConfig: Configs for processing conversation.ConversationProcessConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationProcessConfig `json:"conversationProcessConfig,omitempty"`// DisableAgentQueryLogging: Optional. Disable the logging of search queries// sent by human agents. It can prevent those queries from being stored at// answer records. Supported features: KNOWLEDGE_SEARCH.DisableAgentQueryLoggingbool `json:"disableAgentQueryLogging,omitempty"`// EnableConversationAugmentedQuery: Optional. Enable including conversation// context during query answer generation. Supported features:// KNOWLEDGE_SEARCH.EnableConversationAugmentedQuerybool `json:"enableConversationAugmentedQuery,omitempty"`// EnableEventBasedSuggestion: Automatically iterates all participants and// tries to compile suggestions. Supported features: ARTICLE_SUGGESTION, FAQ,// DIALOGFLOW_ASSIST, ENTITY_EXTRACTION, KNOWLEDGE_ASSIST.EnableEventBasedSuggestionbool `json:"enableEventBasedSuggestion,omitempty"`// EnableQuerySuggestionOnly: Optional. Enable query suggestion only. Supported// features: KNOWLEDGE_ASSISTEnableQuerySuggestionOnlybool `json:"enableQuerySuggestionOnly,omitempty"`// EnableQuerySuggestionWhenNoAnswer: Optional. Enable query suggestion even if// we can't find its answer. By default, queries are suggested only if we find// its answer. Supported features: KNOWLEDGE_ASSISTEnableQuerySuggestionWhenNoAnswerbool `json:"enableQuerySuggestionWhenNoAnswer,omitempty"`// EnableResponseDebugInfo: Optional. Enable returning detailed reasons for// suggestion results. For example, with this field disabled, Knowledge Search// feature returns NotFound error when no answer is found for the input query.// Enabling this field will change the behavior to return an OK response with// detailed information indicating the lack of results. Supported features:// KNOWLEDGE_SEARCH, KNOWLEDGE_ASSISTEnableResponseDebugInfobool `json:"enableResponseDebugInfo,omitempty"`// QueryConfig: Configs of query.QueryConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig `json:"queryConfig,omitempty"`// RaiSettings: Optional. Settings for Responsible AI checks. Supported// features: KNOWLEDGE_ASSISTRaiSettings *GoogleCloudDialogflowV2beta1RaiSettings `json:"raiSettings,omitempty"`// SuggestionFeature: The suggestion feature.SuggestionFeature *GoogleCloudDialogflowV2beta1SuggestionFeature `json:"suggestionFeature,omitempty"`// SuggestionTriggerSettings: Settings of suggestion trigger. Currently, only// ARTICLE_SUGGESTION, FAQ, and DIALOGFLOW_ASSIST will use this field.SuggestionTriggerSettings *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings `json:"suggestionTriggerSettings,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversationModelConfig") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationModelConfig") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig:

Config for suggestion features.

func (GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigadded inv0.42.0

type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig struct {// ConfidenceThreshold: Confidence threshold of query result. Agent Assist// gives each suggestion a score in the range [0.0, 1.0], based on the// relevance between the suggestion and the current conversation context. A// score of 0.0 has no relevance, while a score of 1.0 has high relevance. Only// suggestions with a score greater than or equal to the value of this field// are included in the results. For a baseline model (the default), the// recommended value is in the range [0.05, 0.1]. For a custom model, there is// no recommended value. Tune this value by starting from a very low value and// slowly increasing until you have desired results. If this field is not set,// it is default to 0.0, which means that all suggestions are returned.// Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE,// KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION.ConfidenceThresholdfloat64 `json:"confidenceThreshold,omitempty"`// ContextFilterSettings: Determines how recent conversation context is// filtered when generating suggestions. If unspecified, no messages will be// dropped.ContextFilterSettings *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings `json:"contextFilterSettings,omitempty"`// ContextSize: Optional. The number of recent messages to include in the// context. Supported features: KNOWLEDGE_ASSIST.ContextSizeint64 `json:"contextSize,omitempty"`// DialogflowQuerySource: Query from Dialogflow agent. It is used by// DIALOGFLOW_ASSIST, ENTITY_EXTRACTION.DialogflowQuerySource *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource `json:"dialogflowQuerySource,omitempty"`// DocumentQuerySource: Query from knowledge base document. It is used by:// SMART_REPLY, SMART_COMPOSE.DocumentQuerySource *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource `json:"documentQuerySource,omitempty"`// KnowledgeBaseQuerySource: Query from knowledgebase. It is used by:// ARTICLE_SUGGESTION, FAQ.KnowledgeBaseQuerySource *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource `json:"knowledgeBaseQuerySource,omitempty"`// MaxResults: Maximum number of results to return. Currently, if unset,// defaults to 10. And the max number is 20.MaxResultsint64 `json:"maxResults,omitempty"`// Sections: Optional. The customized sections chosen to return when requesting// a summary of a conversation.Sections *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigSections `json:"sections,omitempty"`// ForceSendFields is a list of field names (e.g. "ConfidenceThreshold") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConfidenceThreshold") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig:Config for suggestion query.

func (GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig)MarshalJSONadded inv0.42.0

func (*GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig)UnmarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettingsadded inv0.42.0

type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings struct {// DropHandoffMessages: If set to true, the last message from virtual agent// (hand off message) and the message before it (trigger message of hand off)// are dropped.DropHandoffMessagesbool `json:"dropHandoffMessages,omitempty"`// DropIvrMessages: If set to true, all messages from ivr stage are dropped.DropIvrMessagesbool `json:"dropIvrMessages,omitempty"`// DropVirtualAgentMessages: If set to true, all messages from virtual agent// are dropped.DropVirtualAgentMessagesbool `json:"dropVirtualAgentMessages,omitempty"`// ForceSendFields is a list of field names (e.g. "DropHandoffMessages") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DropHandoffMessages") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings: Settings that determine how to filter recentconversation context when generating suggestions.

func (GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceadded inv0.42.0

type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource struct {// Agent: Required. The name of a dialogflow virtual agent used for end user// side intent detection and suggestion. Format: `projects//locations//agent`.// When multiple agents are allowed in the same Dialogflow project.Agentstring `json:"agent,omitempty"`// HumanAgentSideConfig: The Dialogflow assist configuration for human agent.HumanAgentSideConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig `json:"humanAgentSideConfig,omitempty"`// ForceSendFields is a list of field names (e.g. "Agent") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Agent") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource: Dialogflow source setting. Supported feature:DIALOGFLOW_ASSIST, ENTITY_EXTRACTION.

func (GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfigadded inv0.125.0

type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig struct {// Agent: Optional. The name of a dialogflow virtual agent used for intent// detection and suggestion triggered by human agent. Format:// `projects//locations//agent`.Agentstring `json:"agent,omitempty"`// ForceSendFields is a list of field names (e.g. "Agent") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Agent") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig: The configuration used for humanagent side Dialogflow assist suggestion.

func (GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig)MarshalJSONadded inv0.125.0

typeGoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySourceadded inv0.42.0

type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource struct {// Documents: Required. Knowledge documents to query from. Format:// `projects//locations//knowledgeBases//documents/`. Currently, only one// document is supported.Documents []string `json:"documents,omitempty"`// ForceSendFields is a list of field names (e.g. "Documents") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Documents") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource: Document source settings. Supported features: SMART_REPLY,SMART_COMPOSE.

func (GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySourceadded inv0.42.0

type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource struct {// KnowledgeBases: Required. Knowledge bases to query. Format:// `projects//locations//knowledgeBases/`. Currently, only one knowledge base// is supported.KnowledgeBases []string `json:"knowledgeBases,omitempty"`// ForceSendFields is a list of field names (e.g. "KnowledgeBases") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "KnowledgeBases") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource: Knowledge base source settings. Supported features:ARTICLE_SUGGESTION, FAQ.

func (GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigSectionsadded inv0.153.0

type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigSections struct {// SectionTypes: The selected sections chosen to return when requesting a// summary of a conversation. A duplicate selected section will be treated as a// single selected section. If section types are not provided, the default will// be {SITUATION, ACTION, RESULT}.//// Possible values://   "SECTION_TYPE_UNSPECIFIED" - Undefined section type, does not return// anything.//   "SITUATION" - What the customer needs help with or has question about.// Section name: "situation".//   "ACTION" - What the agent does to help the customer. Section name:// "action".//   "RESOLUTION" - Result of the customer service. A single word describing// the result of the conversation. Section name: "resolution".//   "REASON_FOR_CANCELLATION" - Reason for cancellation if the customer// requests for a cancellation. "N/A" otherwise. Section name:// "reason_for_cancellation".//   "CUSTOMER_SATISFACTION" - "Unsatisfied" or "Satisfied" depending on the// customer's feelings at the end of the conversation. Section name:// "customer_satisfaction".//   "ENTITIES" - Key entities extracted from the conversation, such as ticket// number, order number, dollar amount, etc. Section names are prefixed by// "entities/".SectionTypes []string `json:"sectionTypes,omitempty"`// ForceSendFields is a list of field names (e.g. "SectionTypes") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "SectionTypes") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigSections: Custom sections to return when requesting a summary of aconversation. This is only supported when `baseline_model_version` == '2.0'.Supported features: CONVERSATION_SUMMARIZATION,CONVERSATION_SUMMARIZATION_VOICE.

func (GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigSections)MarshalJSONadded inv0.153.0

typeGoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettingsadded inv0.42.0

type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings struct {// NoSmallTalk: Do not trigger if last utterance is small talk.NoSmallTalkbool `json:"noSmallTalk,omitempty"`// OnlyEndUser: Only trigger suggestion if participant role of last utterance// is END_USER.OnlyEndUserbool `json:"onlyEndUser,omitempty"`// ForceSendFields is a list of field names (e.g. "NoSmallTalk") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NoSmallTalk") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings: Settings of suggestion trigger.

func (GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1HumanAgentAssistantEventadded inv0.42.0

type GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent struct {// Conversation: The conversation this notification refers to. Format:// `projects//conversations/`.Conversationstring `json:"conversation,omitempty"`// Participant: The participant that the suggestion is compiled for. And This// field is used to call Participants.ListSuggestions API. Format:// `projects//conversations//participants/`. It will not be set in legacy// workflow. HumanAgentAssistantConfig.name for more information.Participantstring `json:"participant,omitempty"`// SuggestionResults: The suggestion results payload that this notification// refers to. It will only be set when// HumanAgentAssistantConfig.SuggestionConfig.group_suggestion_responses sets// to true.SuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"suggestionResults,omitempty"`// ForceSendFields is a list of field names (e.g. "Conversation") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent: Output only.Represents a notification sent to Pub/Sub subscribers for agent assistantevents in a specific conversation.

func (GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1HumanAgentHandoffConfigadded inv0.42.0

type GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig struct {// LivePersonConfig: Uses LivePerson (https://www.liveperson.com).LivePersonConfig *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig `json:"livePersonConfig,omitempty"`// SalesforceLiveAgentConfig: Uses Salesforce Live Agent.SalesforceLiveAgentConfig *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig `json:"salesforceLiveAgentConfig,omitempty"`// ForceSendFields is a list of field names (e.g. "LivePersonConfig") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LivePersonConfig") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig: Defines the hand off toa live agent, typically on which external agent service provider to connectto a conversation. Currently, this feature is not general available, pleasecontact Google to get access.

func (GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfigadded inv0.42.0

type GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig struct {// AccountNumber: Required. Account number of the LivePerson account to// connect. This is the account number you input at the login page.AccountNumberstring `json:"accountNumber,omitempty"`// ForceSendFields is a list of field names (e.g. "AccountNumber") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountNumber") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig:Configuration specific to LivePerson (https://www.liveperson.com).

func (GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfigadded inv0.42.0

type GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig struct {// ButtonId: Required. Live Agent chat button ID.ButtonIdstring `json:"buttonId,omitempty"`// DeploymentId: Required. Live Agent deployment ID.DeploymentIdstring `json:"deploymentId,omitempty"`// EndpointDomain: Required. Domain of the Live Agent endpoint for this agent.// You can find the endpoint URL in the `Live Agent settings` page. For example// if URL has the formhttps://d.la4-c2-phx.salesforceliveagent.com/..., you// should fill in d.la4-c2-phx.salesforceliveagent.com.EndpointDomainstring `json:"endpointDomain,omitempty"`// OrganizationId: Required. The organization ID of the Salesforce account.OrganizationIdstring `json:"organizationId,omitempty"`// ForceSendFields is a list of field names (e.g. "ButtonId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ButtonId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig:

Configuration specific to Salesforce Live Agent.

func (GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1ImportAgentRequest

type GoogleCloudDialogflowV2beta1ImportAgentRequest struct {// AgentContent: Zip compressed raw byte content for agent.AgentContentstring `json:"agentContent,omitempty"`// AgentUri: The URI to a Google Cloud Storage file containing the agent to// import. Note: The URI must start with "gs://". Dialogflow performs a read// operation for the Cloud Storage object on the caller's behalf, so your// request authentication must have read permissions for the object. For more// information, see Dialogflow access control// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).AgentUristring `json:"agentUri,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentContent") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ImportAgentRequest: The request message forAgents.ImportAgent.

func (GoogleCloudDialogflowV2beta1ImportAgentRequest)MarshalJSON

typeGoogleCloudDialogflowV2beta1ImportDocumentTemplateadded inv0.42.0

type GoogleCloudDialogflowV2beta1ImportDocumentTemplate struct {// KnowledgeTypes: Required. The knowledge type of document content.//// Possible values://   "KNOWLEDGE_TYPE_UNSPECIFIED" - The type is unspecified or arbitrary.//   "FAQ" - The document content contains question and answer pairs as either// HTML or CSV. Typical FAQ HTML formats are parsed accurately, but unusual// formats may fail to be parsed. CSV must have questions in the first column// and answers in the second, with no header. Because of this explicit format,// they are always parsed accurately.//   "EXTRACTIVE_QA" - Documents for which unstructured text is extracted and// used for question answering.//   "ARTICLE_SUGGESTION" - The entire document content as a whole can be used// for query results. Only for Contact Center Solutions on Dialogflow.//   "AGENT_FACING_SMART_REPLY" - The document contains agent-facing Smart// Reply entries.//   "SMART_REPLY" - The legacy enum for agent-facing smart reply feature.KnowledgeTypes []string `json:"knowledgeTypes,omitempty"`// Metadata: Metadata for the document. The metadata supports arbitrary// key-value pairs. Suggested use cases include storing a document's title, an// external URL distinct from the document's content_uri, etc. The max size of// a `key` or a `value` of the metadata is 1024 bytes.Metadata map[string]string `json:"metadata,omitempty"`// MimeType: Required. The MIME type of the document.MimeTypestring `json:"mimeType,omitempty"`// ForceSendFields is a list of field names (e.g. "KnowledgeTypes") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "KnowledgeTypes") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ImportDocumentTemplate: The template used forimporting documents.

func (GoogleCloudDialogflowV2beta1ImportDocumentTemplate)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1ImportDocumentsRequestadded inv0.42.0

type GoogleCloudDialogflowV2beta1ImportDocumentsRequest struct {// DocumentTemplate: Required. Document template used for importing all the// documents.DocumentTemplate *GoogleCloudDialogflowV2beta1ImportDocumentTemplate `json:"documentTemplate,omitempty"`// GcsSource: Optional. The Google Cloud Storage location for the documents.// The path can include a wildcard. These URIs may have the forms `gs:///`.// `gs:////*.`.GcsSource *GoogleCloudDialogflowV2beta1GcsSources `json:"gcsSource,omitempty"`// ImportGcsCustomMetadata: Whether to import custom metadata from Google Cloud// Storage. Only valid when the document source is Google Cloud Storage URI.ImportGcsCustomMetadatabool `json:"importGcsCustomMetadata,omitempty"`// ForceSendFields is a list of field names (e.g. "DocumentTemplate") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DocumentTemplate") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ImportDocumentsRequest: Request message forDocuments.ImportDocuments.

func (GoogleCloudDialogflowV2beta1ImportDocumentsRequest)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1ImportDocumentsResponseadded inv0.33.0

type GoogleCloudDialogflowV2beta1ImportDocumentsResponse struct {// Warnings: Includes details about skipped documents or any other warnings.Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`// ForceSendFields is a list of field names (e.g. "Warnings") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Warnings") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ImportDocumentsResponse: Response message forDocuments.ImportDocuments.

func (GoogleCloudDialogflowV2beta1ImportDocumentsResponse)MarshalJSONadded inv0.33.0

typeGoogleCloudDialogflowV2beta1InferenceParameteradded inv0.183.0

type GoogleCloudDialogflowV2beta1InferenceParameter struct {// MaxOutputTokens: Optional. Maximum number of the output tokens for the// generator.MaxOutputTokensint64 `json:"maxOutputTokens,omitempty"`// Temperature: Optional. Controls the randomness of LLM predictions. Low// temperature = less random. High temperature = more random. If unset (or 0),// uses a default value of 0.Temperaturefloat64 `json:"temperature,omitempty"`// TopK: Optional. Top-k changes how the model selects tokens for output. A// top-k of 1 means the selected token is the most probable among all tokens in// the model's vocabulary (also called greedy decoding), while a top-k of 3// means that the next token is selected from among the 3 most probable tokens// (using temperature). For each token selection step, the top K tokens with// the highest probabilities are sampled. Then tokens are further filtered// based on topP with the final token selected using temperature sampling.// Specify a lower value for less random responses and a higher value for more// random responses. Acceptable value is [1, 40], default to 40.TopKint64 `json:"topK,omitempty"`// TopP: Optional. Top-p changes how the model selects tokens for output.// Tokens are selected from most K (see topK parameter) probable to least until// the sum of their probabilities equals the top-p value. For example, if// tokens A, B, and C have a probability of 0.3, 0.2, and 0.1 and the top-p// value is 0.5, then the model will select either A or B as the next token// (using temperature) and doesn't consider C. The default top-p value is 0.95.// Specify a lower value for less random responses and a higher value for more// random responses. Acceptable value is [0.0, 1.0], default to 0.95.TopPfloat64 `json:"topP,omitempty"`// ForceSendFields is a list of field names (e.g. "MaxOutputTokens") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MaxOutputTokens") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1InferenceParameter: The parameters of inference.

func (GoogleCloudDialogflowV2beta1InferenceParameter)MarshalJSONadded inv0.183.0

func (*GoogleCloudDialogflowV2beta1InferenceParameter)UnmarshalJSONadded inv0.183.0

typeGoogleCloudDialogflowV2beta1IngestContextReferencesRequestadded inv0.226.0

type GoogleCloudDialogflowV2beta1IngestContextReferencesRequest struct {// ContextReferences: Required. The context references to ingest. The key is// the name of the context reference and the value contains the contents of the// context reference. The key is used to incorporate ingested context// references to enhance the generator.ContextReferences map[string]GoogleCloudDialogflowV2beta1ConversationContextReference `json:"contextReferences,omitempty"`// ForceSendFields is a list of field names (e.g. "ContextReferences") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContextReferences") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IngestContextReferencesRequest: The requestmessage for ConversationsService.IngestContextReferences.

func (GoogleCloudDialogflowV2beta1IngestContextReferencesRequest)MarshalJSONadded inv0.226.0

typeGoogleCloudDialogflowV2beta1IngestContextReferencesResponseadded inv0.226.0

type GoogleCloudDialogflowV2beta1IngestContextReferencesResponse struct {// IngestedContextReferences: All context references ingested.IngestedContextReferences map[string]GoogleCloudDialogflowV2beta1ConversationContextReference `json:"ingestedContextReferences,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "IngestedContextReferences")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IngestedContextReferences") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IngestContextReferencesResponse: The responsemessage for ConversationsService.IngestContextReferences.

func (GoogleCloudDialogflowV2beta1IngestContextReferencesResponse)MarshalJSONadded inv0.226.0

typeGoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadataadded inv0.149.0

type GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata struct {// Request: Output only. The original request for initialization.Request *GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest `json:"request,omitempty"`// ForceSendFields is a list of field names (e.g. "Request") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Request") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata: Metadata forinitializing a location-level encryption specification.

func (GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata)MarshalJSONadded inv0.149.0

typeGoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequestadded inv0.149.0

type GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest struct {// EncryptionSpec: Required. The encryption spec used for CMEK encryption. It// is required that the kms key is in the same region as the endpoint. The same// key will be used for all provisioned resources, if encryption is available.// If the kms_key_name is left empty, no encryption will be enforced.EncryptionSpec *GoogleCloudDialogflowV2beta1EncryptionSpec `json:"encryptionSpec,omitempty"`// ForceSendFields is a list of field names (e.g. "EncryptionSpec") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EncryptionSpec") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest: The request toinitialize a location-level encryption specification.

func (GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest)MarshalJSONadded inv0.149.0

typeGoogleCloudDialogflowV2beta1InputAudioConfig

type GoogleCloudDialogflowV2beta1InputAudioConfig 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.//   "AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio samples// using G.711 PCMU/a-law.AudioEncodingstring `json:"audioEncoding,omitempty"`// BargeInConfig: Configuration of barge-in behavior during the streaming of// input audio.BargeInConfig *GoogleCloudDialogflowV2beta1BargeInConfig `json:"bargeInConfig,omitempty"`// DefaultNoSpeechTimeout: If set, use this no-speech timeout when the agent// does not provide a no-speech timeout itself.DefaultNoSpeechTimeoutstring `json:"defaultNoSpeechTimeout,omitempty"`// DisableNoSpeechRecognizedEvent: Only used in Participants.AnalyzeContent and// Participants.StreamingAnalyzeContent. If `false` and recognition doesn't// return any result, trigger `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.DisableNoSpeechRecognizedEventbool `json:"disableNoSpeechRecognizedEvent,omitempty"`// EnableAutomaticPunctuation: Enable automatic punctuation option at the// speech backend.EnableAutomaticPunctuationbool `json:"enableAutomaticPunctuation,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.EnableWordInfobool `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. If not set,// the language is inferred from the ConversationProfile.stt_config.LanguageCodestring `json:"languageCode,omitempty"`// Model: Optional. Which Speech model to select for the given request. For// more information, see Speech models// (https://cloud.google.com/dialogflow/es/docs/speech-models).Modelstring `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-models)// 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-models)// 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.ModelVariantstring `json:"modelVariant,omitempty"`// OptOutConformerModelMigration: If `true`, the request will opt out for STT// conformer model migration. This field will be deprecated once force// migration takes place in June 2024. Please refer to Dialogflow ES Speech// model migration// (https://cloud.google.com/dialogflow/es/docs/speech-model-migration).OptOutConformerModelMigrationbool `json:"optOutConformerModelMigration,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#phrase-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"`// PhraseSets: A collection of phrase set resources to use for speech// adaptation.PhraseSets []string `json:"phraseSets,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.SampleRateHertzint64 `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.SingleUtterancebool `json:"singleUtterance,omitempty"`// SpeechContexts: Context information to assist speech recognition. See the// Cloud Speech documentation// (https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more// details.SpeechContexts []*GoogleCloudDialogflowV2beta1SpeechContext `json:"speechContexts,omitempty"`// ForceSendFields is a list of field names (e.g. "AudioEncoding") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1InputAudioConfig: Instructs the speechrecognizer on how to process the audio content.

func (GoogleCloudDialogflowV2beta1InputAudioConfig)MarshalJSON

typeGoogleCloudDialogflowV2beta1Intent

type GoogleCloudDialogflowV2beta1Intent struct {// Action: Optional. The name of the action associated with the intent. Note:// The action name must not contain whitespaces.Actionstring `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/dialogflow// -webhook-json)//   "TELEPHONY" - Telephony Gateway.//   "GOOGLE_HANGOUTS" - Google Hangouts.DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`// DisplayName: Required. The name of this intent.DisplayNamestring `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.EndInteractionbool `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.IsFallbackbool `json:"isFallback,omitempty"`// LiveAgentHandoff: Optional. Indicates that a live agent should be brought in// to handle the interaction with the user. In most cases, when you set this// flag to true, you would also want to set end_interaction to true as well.// Default is false.LiveAgentHandoffbool `json:"liveAgentHandoff,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.MlDisabledbool `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.MlEnabledbool `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/`Namestring `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/`.ParentFollowupIntentNamestring `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.Priorityint64 `json:"priority,omitempty"`// ResetContexts: Optional. Indicates whether to delete all contexts in the// current session when this intent is matched.ResetContextsbool `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/`.RootFollowupIntentNamestring `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.WebhookStatestring `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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1Intent: An intent categorizes an end-user'sintention for one conversation turn. For each agent, you define manyintents, where your combined intents can handle a complete conversation.When an end-user writes or says something, referred to as an end-userexpression or end-user input, Dialogflow matches the end-user input to thebest intent in your agent. Matching an intent is also known as intentclassification. For more information, see the intent guide(https://cloud.google.com/dialogflow/docs/intents-overview).

func (GoogleCloudDialogflowV2beta1Intent)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentBatch

type GoogleCloudDialogflowV2beta1IntentBatch struct {// Intents: A collection of 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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentBatch: This message is a wrapper around acollection of intents.

func (GoogleCloudDialogflowV2beta1IntentBatch)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo

type GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo struct {// FollowupIntentName: The unique identifier of the followup intent. Format:// `projects//agent/intents/`.FollowupIntentNamestring `json:"followupIntentName,omitempty"`// ParentFollowupIntentName: The unique identifier of the followup intent's// parent. Format: `projects//agent/intents/`.ParentFollowupIntentNamestring `json:"parentFollowupIntentName,omitempty"`// ForceSendFields is a list of field names (e.g. "FollowupIntentName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo: Represents a singlefollowup intent in the chain.

func (GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentInputadded inv0.125.0

type GoogleCloudDialogflowV2beta1IntentInput struct {// Intent: Required. The unique identifier of the intent in V3 agent. Format:// `projects//locations//locations//agents//intents/`.Intentstring `json:"intent,omitempty"`// 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.LanguageCodestring `json:"languageCode,omitempty"`// ForceSendFields is a list of field names (e.g. "Intent") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Intent") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentInput: Represents the intent to triggerprogrammatically rather than as a result of natural language processing. Theintent input is only used for V3 agent.

func (GoogleCloudDialogflowV2beta1IntentInput)MarshalJSONadded inv0.125.0

typeGoogleCloudDialogflowV2beta1IntentMessage

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.Payloadgoogleapi.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/dialogflow// -webhook-json)//   "TELEPHONY" - Telephony Gateway.//   "GOOGLE_HANGOUTS" - Google Hangouts.Platformstring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessage: Corresponds to the `Response`field in the Dialogflow console.

func (GoogleCloudDialogflowV2beta1IntentMessage)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageBasicCard

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.FormattedTextstring `json:"formattedText,omitempty"`// Image: Optional. The image for the card.Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`// Subtitle: Optional. The subtitle of the card.Subtitlestring `json:"subtitle,omitempty"`// Title: Optional. The title of the card.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageBasicCard: The basic card message.Useful for displaying information.

func (GoogleCloudDialogflowV2beta1IntentMessageBasicCard)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton

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.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "OpenUriAction") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton: The button objectthat appears at the bottom of a card.

func (GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction

type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction struct {// Uri: Required. The HTTP or HTTPS scheme URI.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction: Opensthe given URI.

func (GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardadded inv0.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.ImageDisplayOptionsstring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard: Browse CarouselCard for Actions on Google.https://developers.google.com/actions/assistant/responses#browsing_carousel

func (GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard)MarshalJSONadded inv0.11.0

typeGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemadded inv0.11.0

type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {// Description: Optional. Description of the carousel item. Maximum of four// lines of text.Descriptionstring `json:"description,omitempty"`// Footer: Optional. Text that appears at the bottom of the Browse Carousel// Card. Maximum of one line of text.Footerstring `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.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem: Browsing carousel tile

func (GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem)MarshalJSONadded inv0.11.0

typeGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlActionadded inv0.11.0

type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {// Url: Required. URLUrlstring `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 .UrlTypeHintstring `json:"urlTypeHint,omitempty"`// ForceSendFields is a list of field names (e.g. "Url") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction: Actions on Google action to open a given url.

func (GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction)MarshalJSONadded inv0.11.0

typeGoogleCloudDialogflowV2beta1IntentMessageCard

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.ImageUristring `json:"imageUri,omitempty"`// Subtitle: Optional. The subtitle of the card.Subtitlestring `json:"subtitle,omitempty"`// Title: Optional. The title of the card.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageCard: The card response message.

func (GoogleCloudDialogflowV2beta1IntentMessageCard)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageCardButton

type GoogleCloudDialogflowV2beta1IntentMessageCardButton struct {// Postback: Optional. The text to send back to the Dialogflow API or a URI to// open.Postbackstring `json:"postback,omitempty"`// Text: Optional. The text to show on the button.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "Postback") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageCardButton: Optional. Containsinformation about a button.

func (GoogleCloudDialogflowV2beta1IntentMessageCardButton)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect

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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect: The card forpresenting a carousel of options to select from.

func (GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem

type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem struct {// Description: Optional. The body text of the card.Descriptionstring `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.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem: An item in thecarousel.

func (GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageColumnPropertiesadded inv0.11.0

type GoogleCloudDialogflowV2beta1IntentMessageColumnProperties struct {// Header: Required. Column heading.Headerstring `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.HorizontalAlignmentstring `json:"horizontalAlignment,omitempty"`// ForceSendFields is a list of field names (e.g. "Header") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageColumnProperties: Column propertiesfor TableCard.

func (GoogleCloudDialogflowV2beta1IntentMessageColumnProperties)MarshalJSONadded inv0.11.0

typeGoogleCloudDialogflowV2beta1IntentMessageImage

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.AccessibilityTextstring `json:"accessibilityText,omitempty"`// ImageUri: Optional. The public URI to an image file.ImageUristring `json:"imageUri,omitempty"`// ForceSendFields is a list of field names (e.g. "AccessibilityText") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageImage: The image response message.

func (GoogleCloudDialogflowV2beta1IntentMessageImage)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion

type GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion struct {// DestinationName: Required. The name of the app or site this chip is linking// to.DestinationNamestring `json:"destinationName,omitempty"`// Uri: Required. The URI of the app or site to open when the user taps the// suggestion chip.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "DestinationName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion: The suggestionchip message that allows the user to jump out to the app or websiteassociated with this agent.

func (GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageListSelect

type GoogleCloudDialogflowV2beta1IntentMessageListSelect struct {// Items: Required. List items.Items []*GoogleCloudDialogflowV2beta1IntentMessageListSelectItem `json:"items,omitempty"`// Subtitle: Optional. Subtitle of the list.Subtitlestring `json:"subtitle,omitempty"`// Title: Optional. The overall title of the list.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Items") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageListSelect: The card for presentinga list of options to select from.

func (GoogleCloudDialogflowV2beta1IntentMessageListSelect)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageListSelectItem

type GoogleCloudDialogflowV2beta1IntentMessageListSelectItem struct {// Description: Optional. The main text describing the item.Descriptionstring `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.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageListSelectItem: An item in thelist.

func (GoogleCloudDialogflowV2beta1IntentMessageListSelectItem)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageMediaContentadded inv0.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.MediaTypestring `json:"mediaType,omitempty"`// ForceSendFields is a list of field names (e.g. "MediaObjects") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageMediaContent: The media contentcard for Actions on Google.

func (GoogleCloudDialogflowV2beta1IntentMessageMediaContent)MarshalJSONadded inv0.11.0

typeGoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObjectadded inv0.11.0

type GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject struct {// ContentUrl: Required. Url where the media is stored.ContentUrlstring `json:"contentUrl,omitempty"`// Description: Optional. Description of media card.Descriptionstring `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.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "ContentUrl") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject:Response media object for media content card.

func (GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject)MarshalJSONadded inv0.11.0

typeGoogleCloudDialogflowV2beta1IntentMessageQuickReplies

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.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "QuickReplies") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageQuickReplies: The quick repliesresponse message.

func (GoogleCloudDialogflowV2beta1IntentMessageQuickReplies)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageRbmCardContentadded inv0.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.Descriptionstring `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.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent: Rich BusinessMessaging (RBM) Card content

func (GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent)MarshalJSONadded inv0.8.0

typeGoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMediaadded inv0.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.FileUristring `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.Heightstring `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.ThumbnailUristring `json:"thumbnailUri,omitempty"`// ForceSendFields is a list of field names (e.g. "FileUri") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia: RichBusiness Messaging (RBM) Media displayed in Cards The following media-typesare 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)MarshalJSONadded inv0.8.0

typeGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCardadded inv0.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.CardWidthstring `json:"cardWidth,omitempty"`// ForceSendFields is a list of field names (e.g. "CardContents") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard: Carousel RichBusiness Messaging (RBM) rich card. Rich cards allow you to respond to userswith more vivid content, e.g. with media and suggestions. If you want toshow a single card with more control over the layout, please useRbmStandaloneCard instead.

func (GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard)MarshalJSONadded inv0.8.0

typeGoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCardadded inv0.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.CardOrientationstring `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.ThumbnailImageAlignmentstring `json:"thumbnailImageAlignment,omitempty"`// ForceSendFields is a list of field names (e.g. "CardContent") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard: Standalone RichBusiness Messaging (RBM) rich card. Rich cards allow you to respond to userswith more vivid content, e.g. with media and suggestions. You can groupmultiple rich cards into one using RbmCarouselCard but carousel cards willgive you less control over the card layout.

func (GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard)MarshalJSONadded inv0.8.0

typeGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionadded inv0.8.0

type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction struct {// Dial: Suggested client side action: Dial a phone numberDial *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial `json:"dial,omitempty"`// OpenUrl: Suggested client side action: Open a URI on deviceOpenUrl *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.PostbackDatastring `json:"postbackData,omitempty"`// ShareLocation: Suggested client side action: Share user locationShareLocation *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation `json:"shareLocation,omitempty"`// Text: Text to display alongside the action.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "Dial") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction: Rich BusinessMessaging (RBM) suggested client-side action that the user can choose fromthe card.

func (GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction)MarshalJSONadded inv0.8.0

typeGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDialadded inv0.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.PhoneNumberstring `json:"phoneNumber,omitempty"`// ForceSendFields is a list of field names (e.g. "PhoneNumber") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial: Opens the user's default dialer app with the specified phone numberbut does not dial automatically.

func (GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial)MarshalJSONadded inv0.8.0

typeGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUriadded inv0.8.0

type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri struct {// Uri: Required. The uri to open on the user deviceUristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri: Opens the user's default web browser app to the specified uri Ifthe user has an app installed that is registered as the default handler forthe URL, then this app will be opened instead, and its icon will be used inthe suggested action UI.

func (GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri)MarshalJSONadded inv0.8.0

typeGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocationadded inv0.8.0

type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation struct {}

GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation: Opens the device's location chooser so the user can pick alocation to send back to the agent.

typeGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReplyadded inv0.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.PostbackDatastring `json:"postbackData,omitempty"`// Text: Suggested reply text.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "PostbackData") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply: Rich BusinessMessaging (RBM) suggested reply that the user can click instead of typing intheir own response.

func (GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply)MarshalJSONadded inv0.8.0

typeGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestionadded inv0.8.0

type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion struct {// Action: Predefined client side actions that user can chooseAction *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction `json:"action,omitempty"`// Reply: Predefined replies for user to select instead of typingReply *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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion: Rich BusinessMessaging (RBM) suggestion. Suggestions allow user to easily select/click apredefined response or perform an action (like opening a web uri).

func (GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion)MarshalJSONadded inv0.8.0

typeGoogleCloudDialogflowV2beta1IntentMessageRbmTextadded inv0.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.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "RbmSuggestion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageRbmText: Rich Business Messaging(RBM) text response with suggestions.

func (GoogleCloudDialogflowV2beta1IntentMessageRbmText)MarshalJSONadded inv0.8.0

typeGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo

type GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo struct {// Key: Required. A unique key that will be sent back to the agent if this// response is given.Keystring `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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo: Additional infoabout the select item for when it is triggered in a dialog.

func (GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse

type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse struct {// DisplayText: Optional. The text to display.DisplayTextstring `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.Ssmlstring `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.TextToSpeechstring `json:"textToSpeech,omitempty"`// ForceSendFields is a list of field names (e.g. "DisplayText") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse: The simple responsemessage containing speech or text.

func (GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses

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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses: The collection ofsimple response candidates. This message in`QueryResult.fulfillment_messages` and`WebhookResponse.fulfillment_messages` should contain only one`SimpleResponse`.

func (GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageSuggestion

type GoogleCloudDialogflowV2beta1IntentMessageSuggestion struct {// Title: Required. The text shown the in the suggestion chip.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Title") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageSuggestion: The suggestion chipmessage that the user can tap to quickly post a reply to the conversation.

func (GoogleCloudDialogflowV2beta1IntentMessageSuggestion)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageSuggestions

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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageSuggestions: The collection ofsuggestions.

func (GoogleCloudDialogflowV2beta1IntentMessageSuggestions)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageTableCardadded inv0.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.Subtitlestring `json:"subtitle,omitempty"`// Title: Required. Title of the card.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Buttons") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageTableCard: Table card for Actionson Google.

func (GoogleCloudDialogflowV2beta1IntentMessageTableCard)MarshalJSONadded inv0.11.0

typeGoogleCloudDialogflowV2beta1IntentMessageTableCardCelladded inv0.11.0

type GoogleCloudDialogflowV2beta1IntentMessageTableCardCell struct {// Text: Required. Text in this cell.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "Text") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageTableCardCell: Cell ofTableCardRow.

func (GoogleCloudDialogflowV2beta1IntentMessageTableCardCell)MarshalJSONadded inv0.11.0

typeGoogleCloudDialogflowV2beta1IntentMessageTableCardRowadded inv0.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.DividerAfterbool `json:"dividerAfter,omitempty"`// ForceSendFields is a list of field names (e.g. "Cells") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageTableCardRow: Row of TableCard.

func (GoogleCloudDialogflowV2beta1IntentMessageTableCardRow)MarshalJSONadded inv0.11.0

typeGoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio

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.AudioUristring `json:"audioUri,omitempty"`// ForceSendFields is a list of field names (e.g. "AudioUri") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio: Plays audiofrom a file in Telephony Gateway.

func (GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech

type GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech struct {// Ssml: The SSML to be synthesized. For more information, see SSML// (https://developers.google.com/actions/reference/ssml).Ssmlstring `json:"ssml,omitempty"`// Text: The raw text to be synthesized.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "Ssml") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech:Synthesizes speech and plays back the synthesized audio to the caller inTelephony Gateway. Telephony Gateway takes the synthesizer settings from`DetectIntentResponse.output_audio_config` which can either be set atrequest-level or can come from the agent-level synthesizer config.

func (GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall

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).PhoneNumberstring `json:"phoneNumber,omitempty"`// ForceSendFields is a list of field names (e.g. "PhoneNumber") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall: Transfersthe call in Telephony Gateway.

func (GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentMessageText

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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentMessageText: The text response message.

func (GoogleCloudDialogflowV2beta1IntentMessageText)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentParameter

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`.DefaultValuestring `json:"defaultValue,omitempty"`// DisplayName: Required. The name of the parameter.DisplayNamestring `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.EntityTypeDisplayNamestring `json:"entityTypeDisplayName,omitempty"`// IsList: Optional. Indicates whether the parameter represents a list of// values.IsListbool `json:"isList,omitempty"`// Mandatory: Optional. Indicates whether the parameter is required. That is,// whether the intent cannot be completed without collecting the parameter// value.Mandatorybool `json:"mandatory,omitempty"`// Name: The unique identifier of this parameter.Namestring `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`.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "DefaultValue") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentParameter: Represents intent parameters.

func (GoogleCloudDialogflowV2beta1IntentParameter)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentSuggestionadded inv0.125.0

type GoogleCloudDialogflowV2beta1IntentSuggestion struct {// Description: Human readable description for better understanding an intent// like its scope, content, result etc. Maximum character limit: 140// characters.Descriptionstring `json:"description,omitempty"`// DisplayName: The display name of the intent.DisplayNamestring `json:"displayName,omitempty"`// IntentV2: The unique identifier of this intent. Format:// `projects//locations//agent/intents/`.IntentV2string `json:"intentV2,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentSuggestion: Represents an intentsuggestion.

func (GoogleCloudDialogflowV2beta1IntentSuggestion)MarshalJSONadded inv0.125.0

typeGoogleCloudDialogflowV2beta1IntentTrainingPhrase

type GoogleCloudDialogflowV2beta1IntentTrainingPhrase struct {// Name: Output only. The unique identifier of this training phrase.Namestring `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.TimesAddedCountint64 `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. Note: Template mode has// been deprecated. Example mode is the only supported way to create new// training phrases. If you have existing training phrases in template mode,// they will be removed during training and it can cause a drop in agent// performance.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentTrainingPhrase: Represents an example thatthe agent is trained on.

func (GoogleCloudDialogflowV2beta1IntentTrainingPhrase)MarshalJSON

typeGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart

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.Aliasstring `json:"alias,omitempty"`// EntityType: Optional. The entity type name prefixed with `@`. This field is// required for annotated parts of the training phrase.EntityTypestring `json:"entityType,omitempty"`// Text: Required. The text for this part.Textstring `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.UserDefinedbool `json:"userDefined,omitempty"`// ForceSendFields is a list of field names (e.g. "Alias") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart: Represents a part of atraining phrase.

func (GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart)MarshalJSON

typeGoogleCloudDialogflowV2beta1KnowledgeAnswers

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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1KnowledgeAnswers: Represents the result ofquerying a Knowledge base.

func (GoogleCloudDialogflowV2beta1KnowledgeAnswers)MarshalJSON

typeGoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer

type GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer struct {// Answer: The piece of text from the `source` knowledge base document that// answers this conversational query.Answerstring `json:"answer,omitempty"`// FaqQuestion: The corresponding FAQ question if the answer was extracted from// a FAQ Document, empty otherwise.FaqQuestionstring `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.MatchConfidencefloat64 `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.MatchConfidenceLevelstring `json:"matchConfidenceLevel,omitempty"`// Source: Indicates which Knowledge Document this answer was extracted from.// Format: `projects//knowledgeBases//documents/`.Sourcestring `json:"source,omitempty"`// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer: An answer from KnowledgeConnector.

func (GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer)MarshalJSON

func (*GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer)UnmarshalJSON

typeGoogleCloudDialogflowV2beta1KnowledgeAssistAnsweradded inv0.185.0

type GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer struct {// AnswerRecord: The name of the answer record. Format:// `projects//locations//answer Records/`.AnswerRecordstring `json:"answerRecord,omitempty"`// SuggestedQuery: The query suggested based on the context. Suggestion is made// only if it is different from the previous suggestion.SuggestedQuery *GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery `json:"suggestedQuery,omitempty"`// SuggestedQueryAnswer: The answer generated for the suggested query. Whether// or not an answer is generated depends on how confident we are about the// generated query.SuggestedQueryAnswer *GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer `json:"suggestedQueryAnswer,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerRecord") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerRecord") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer: Represents a KnowledgeAssist answer.

func (GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnsweradded inv0.185.0

type GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer struct {// AnswerText: The piece of text from the `source` that answers this suggested// query.AnswerTextstring `json:"answerText,omitempty"`// FaqSource: Populated if the prediction came from FAQ.FaqSource *GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource `json:"faqSource,omitempty"`// GenerativeSource: Populated if the prediction was Generative.GenerativeSource *GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource `json:"generativeSource,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerText") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerText") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer: Representsan answer from Knowledge. Currently supports FAQ and Generative answers.

func (GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSourceadded inv0.185.0

type GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource struct {// Question: The corresponding FAQ question.Questionstring `json:"question,omitempty"`// ForceSendFields is a list of field names (e.g. "Question") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Question") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource:Details about source of FAQ answer.

func (GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceadded inv0.185.0

type GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource struct {// Snippets: All snippets used for this Generative Prediction, with their// source URI and data.Snippets []*GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet `json:"snippets,omitempty"`// ForceSendFields is a list of field names (e.g. "Snippets") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Snippets") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource: Details about source of Generative answer.

func (GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippetadded inv0.185.0

type GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet struct {// Metadata: Metadata of the document.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Text: Text taken from that URI.Textstring `json:"text,omitempty"`// Title: Title of the document.Titlestring `json:"title,omitempty"`// Uri: URI the data is sourced from.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "Metadata") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet: Snippet Source for a Generative Prediction.

func (GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQueryadded inv0.185.0

type GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery struct {// QueryText: Suggested query text.QueryTextstring `json:"queryText,omitempty"`// ForceSendFields is a list of field names (e.g. "QueryText") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "QueryText") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery: Representsa suggested query.

func (GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowV2beta1KnowledgeBase

type GoogleCloudDialogflowV2beta1KnowledgeBase struct {// DisplayName: Required. The display name of the knowledge base. The name must// be 1024 bytes or less; otherwise, the creation request fails.DisplayNamestring `json:"displayName,omitempty"`// LanguageCode: Language which represents the KnowledgeBase. When the// KnowledgeBase is created/updated, this is populated for all non en-us// languages. If not populated, the default language en-us applies.LanguageCodestring `json:"languageCode,omitempty"`// Name: The knowledge base resource name. The name must be empty when creating// a knowledge base. Format: `projects//locations//knowledgeBases/`.Namestring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1KnowledgeBase: A knowledge base represents acollection of knowledge documents that you provide to Dialogflow. Yourknowledge documents contain information that may be useful duringconversations with end-users. Some Dialogflow features use knowledge baseswhen looking for a response to an end-user input. For more information, seethe knowledge base guide(https://cloud.google.com/dialogflow/docs/how/knowledge-bases). Note: The`projects.agent.knowledgeBases` resource is deprecated; only use`projects.knowledgeBases`.

func (GoogleCloudDialogflowV2beta1KnowledgeBase)MarshalJSON

typeGoogleCloudDialogflowV2beta1KnowledgeOperationMetadata

type GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata struct {// DoneTime: The time when the operation finished.DoneTimestring `json:"doneTime,omitempty"`// ExportOperationMetadata: Metadata for the Export Data Operation such as the// destination of export.ExportOperationMetadata *GoogleCloudDialogflowV2beta1ExportOperationMetadata `json:"exportOperationMetadata,omitempty"`// KnowledgeBase: The name of the knowledge base interacted with during the// operation.KnowledgeBasestring `json:"knowledgeBase,omitempty"`// 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.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "DoneTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DoneTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata: Metadata ingoogle::longrunning::Operation for Knowledge operations.

func (GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata)MarshalJSON

typeGoogleCloudDialogflowV2beta1ListAnswerRecordsResponseadded inv0.42.0

type GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse struct {// AnswerRecords: The list of answer records.AnswerRecords []*GoogleCloudDialogflowV2beta1AnswerRecord `json:"answerRecords,omitempty"`// NextPageToken: A token to retrieve next page of results. Or empty if there// are no more results. Pass this value in the// ListAnswerRecordsRequest.page_token field in the subsequent call to// `ListAnswerRecords` method to retrieve the next page of results.NextPageTokenstring `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. "AnswerRecords") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerRecords") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse: Response message forAnswerRecords.ListAnswerRecords.

func (GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1ListContextsResponse

type GoogleCloudDialogflowV2beta1ListContextsResponse 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 []*GoogleCloudDialogflowV2beta1Context `json:"contexts,omitempty"`// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListContextsResponse: The response message forContexts.ListContexts.

func (GoogleCloudDialogflowV2beta1ListContextsResponse)MarshalJSON

typeGoogleCloudDialogflowV2beta1ListConversationProfilesResponseadded inv0.42.0

type GoogleCloudDialogflowV2beta1ListConversationProfilesResponse struct {// ConversationProfiles: The list of project conversation profiles. There is a// maximum number of items returned based on the page_size field in the// request.ConversationProfiles []*GoogleCloudDialogflowV2beta1ConversationProfile `json:"conversationProfiles,omitempty"`// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `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. "ConversationProfiles") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationProfiles") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListConversationProfilesResponse: The responsemessage for ConversationProfiles.ListConversationProfiles.

func (GoogleCloudDialogflowV2beta1ListConversationProfilesResponse)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1ListConversationsResponseadded inv0.42.0

type GoogleCloudDialogflowV2beta1ListConversationsResponse struct {// Conversations: The list of conversations. There will be a maximum number of// items returned based on the page_size field in the request.Conversations []*GoogleCloudDialogflowV2beta1Conversation `json:"conversations,omitempty"`// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `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. "Conversations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Conversations") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListConversationsResponse: The response messagefor Conversations.ListConversations.

func (GoogleCloudDialogflowV2beta1ListConversationsResponse)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1ListDocumentsResponse

type GoogleCloudDialogflowV2beta1ListDocumentsResponse struct {// Documents: The list of documents.Documents []*GoogleCloudDialogflowV2beta1Document `json:"documents,omitempty"`// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `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. "Documents") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Documents") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListDocumentsResponse: Response message forDocuments.ListDocuments.

func (GoogleCloudDialogflowV2beta1ListDocumentsResponse)MarshalJSON

typeGoogleCloudDialogflowV2beta1ListEntityTypesResponse

type GoogleCloudDialogflowV2beta1ListEntityTypesResponse 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 []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListEntityTypesResponse: The response messagefor EntityTypes.ListEntityTypes.

func (GoogleCloudDialogflowV2beta1ListEntityTypesResponse)MarshalJSON

typeGoogleCloudDialogflowV2beta1ListEnvironmentsResponseadded inv0.18.0

type GoogleCloudDialogflowV2beta1ListEnvironmentsResponse 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 []*GoogleCloudDialogflowV2beta1Environment `json:"environments,omitempty"`// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListEnvironmentsResponse: The response messagefor Environments.ListEnvironments.

func (GoogleCloudDialogflowV2beta1ListEnvironmentsResponse)MarshalJSONadded inv0.18.0

typeGoogleCloudDialogflowV2beta1ListGeneratorEvaluationsResponseadded inv0.250.0

type GoogleCloudDialogflowV2beta1ListGeneratorEvaluationsResponse struct {// GeneratorEvaluations: The list of evaluations to return.GeneratorEvaluations []*GoogleCloudDialogflowV2beta1GeneratorEvaluation `json:"generatorEvaluations,omitempty"`// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `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. "GeneratorEvaluations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "GeneratorEvaluations") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListGeneratorEvaluationsResponse: Response ofListGeneratorEvaluations.

func (GoogleCloudDialogflowV2beta1ListGeneratorEvaluationsResponse)MarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1ListGeneratorsResponseadded inv0.183.0

type GoogleCloudDialogflowV2beta1ListGeneratorsResponse struct {// Generators: List of generators retrieved.Generators []*GoogleCloudDialogflowV2beta1Generator `json:"generators,omitempty"`// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `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. "Generators") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Generators") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListGeneratorsResponse: Response ofListGenerators.

func (GoogleCloudDialogflowV2beta1ListGeneratorsResponse)MarshalJSONadded inv0.183.0

typeGoogleCloudDialogflowV2beta1ListIntentsResponse

type GoogleCloudDialogflowV2beta1ListIntentsResponse 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 []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListIntentsResponse: The response message forIntents.ListIntents.

func (GoogleCloudDialogflowV2beta1ListIntentsResponse)MarshalJSON

typeGoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse

type GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse struct {// KnowledgeBases: The list of knowledge bases.KnowledgeBases []*GoogleCloudDialogflowV2beta1KnowledgeBase `json:"knowledgeBases,omitempty"`// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `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. "KnowledgeBases") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "KnowledgeBases") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse: Response message forKnowledgeBases.ListKnowledgeBases.

func (GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse)MarshalJSON

typeGoogleCloudDialogflowV2beta1ListMessagesResponseadded inv0.42.0

type GoogleCloudDialogflowV2beta1ListMessagesResponse struct {// Messages: Required. The list of messages. There will be a maximum number of// items returned based on the page_size field in the request. `messages` is// sorted by `create_time` in descending order.Messages []*GoogleCloudDialogflowV2beta1Message `json:"messages,omitempty"`// NextPageToken: Optional. Token to retrieve the next page of results, or// empty if there are no more results in the list.NextPageTokenstring `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. "Messages") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Messages") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListMessagesResponse: The response message forConversations.ListMessages.

func (GoogleCloudDialogflowV2beta1ListMessagesResponse)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1ListParticipantsResponseadded inv0.42.0

type GoogleCloudDialogflowV2beta1ListParticipantsResponse struct {// NextPageToken: Token to retrieve the next page of results or empty if there// are no more results in the list.NextPageTokenstring `json:"nextPageToken,omitempty"`// Participants: The list of participants. There is a maximum number of items// returned based on the page_size field in the request.Participants []*GoogleCloudDialogflowV2beta1Participant `json:"participants,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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListParticipantsResponse: The response messagefor Participants.ListParticipants.

func (GoogleCloudDialogflowV2beta1ListParticipantsResponse)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1ListPhoneNumbersResponseadded inv0.223.0

type GoogleCloudDialogflowV2beta1ListPhoneNumbersResponse struct {// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `json:"nextPageToken,omitempty"`// PhoneNumbers: The list of `PhoneNumber` resources. There is a maximum number// of items returned based on the page_size field in the request.PhoneNumbers []*GoogleCloudDialogflowV2beta1PhoneNumber `json:"phoneNumbers,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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListPhoneNumbersResponse: The response messagefor PhoneNumbers.ListPhoneNumbers.

func (GoogleCloudDialogflowV2beta1ListPhoneNumbersResponse)MarshalJSONadded inv0.223.0

typeGoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse

type GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse struct {// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `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 []*GoogleCloudDialogflowV2beta1SessionEntityType `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse: The responsemessage for SessionEntityTypes.ListSessionEntityTypes.

func (GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse)MarshalJSON

typeGoogleCloudDialogflowV2beta1ListSipTrunksResponseadded inv0.205.0

type GoogleCloudDialogflowV2beta1ListSipTrunksResponse struct {// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `json:"nextPageToken,omitempty"`// SipTrunks: The list of SIP trunks.SipTrunks []*GoogleCloudDialogflowV2beta1SipTrunk `json:"sipTrunks,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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListSipTrunksResponse: The response message forSipTrunks.ListSipTrunks.

func (GoogleCloudDialogflowV2beta1ListSipTrunksResponse)MarshalJSONadded inv0.205.0

typeGoogleCloudDialogflowV2beta1ListSuggestionsResponseadded inv0.42.0

type GoogleCloudDialogflowV2beta1ListSuggestionsResponse struct {// NextPageToken: Optional. Token to retrieve the next page of results or empty// if there are no more results in the list.NextPageTokenstring `json:"nextPageToken,omitempty"`// Suggestions: Required. The list of suggestions. There will be a maximum// number of items returned based on the page_size field in the request.// `suggestions` is sorted by `create_time` in descending order.Suggestions []*GoogleCloudDialogflowV2beta1Suggestion `json:"suggestions,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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListSuggestionsResponse: The response messagefor Participants.ListSuggestions.

func (GoogleCloudDialogflowV2beta1ListSuggestionsResponse)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1ListToolsResponseadded inv0.253.0

type GoogleCloudDialogflowV2beta1ListToolsResponse struct {// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `json:"nextPageToken,omitempty"`// Tools: List of tools retrieved.Tools []*GoogleCloudDialogflowV2beta1Tool `json:"tools,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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListToolsResponse: Response of ListTools.

func (GoogleCloudDialogflowV2beta1ListToolsResponse)MarshalJSONadded inv0.253.0

typeGoogleCloudDialogflowV2beta1ListVersionsResponseadded inv0.18.0

type GoogleCloudDialogflowV2beta1ListVersionsResponse struct {// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `json:"nextPageToken,omitempty"`// Versions: The list of agent versions. There will be a maximum number of// items returned based on the page_size field in the request.Versions []*GoogleCloudDialogflowV2beta1Version `json:"versions,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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ListVersionsResponse: The response message forVersions.ListVersions.

func (GoogleCloudDialogflowV2beta1ListVersionsResponse)MarshalJSONadded inv0.18.0

typeGoogleCloudDialogflowV2beta1LoggingConfigadded inv0.42.0

type GoogleCloudDialogflowV2beta1LoggingConfig struct {// EnableStackdriverLogging: Whether to log conversation events like// CONVERSATION_STARTED to Stackdriver in the conversation project as JSON// format ConversationEvent protos.EnableStackdriverLoggingbool `json:"enableStackdriverLogging,omitempty"`// ForceSendFields is a list of field names (e.g. "EnableStackdriverLogging")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EnableStackdriverLogging") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1LoggingConfig: Defines logging behavior forconversation lifecycle events.

func (GoogleCloudDialogflowV2beta1LoggingConfig)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1Messageadded inv0.42.0

type GoogleCloudDialogflowV2beta1Message struct {// Content: Required. The message content.Contentstring `json:"content,omitempty"`// CreateTime: Output only. The time when the message was created in Contact// Center AI.CreateTimestring `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".LanguageCodestring `json:"languageCode,omitempty"`// MessageAnnotation: Output only. The annotation for the message.MessageAnnotation *GoogleCloudDialogflowV2beta1MessageAnnotation `json:"messageAnnotation,omitempty"`// Name: Optional. The unique identifier of the message. Format:// `projects//locations//conversations//messages/`.Namestring `json:"name,omitempty"`// Participant: Output only. The participant that sends this message.Participantstring `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.ParticipantRolestring `json:"participantRole,omitempty"`// ResponseMessages: Optional. Automated agent responses.ResponseMessages []*GoogleCloudDialogflowV2beta1ResponseMessage `json:"responseMessages,omitempty"`// SendTime: Optional. The time when the message was sent. For voice messages,// this is the time when an utterance started.SendTimestring `json:"sendTime,omitempty"`// SentimentAnalysis: Output only. The sentiment analysis result for the// message.SentimentAnalysis *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`// ForceSendFields is a list of field names (e.g. "Content") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1Message: Represents a message posted into aconversation.

func (GoogleCloudDialogflowV2beta1Message)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1MessageAnnotationadded inv0.42.0

type GoogleCloudDialogflowV2beta1MessageAnnotation struct {// ContainEntities: Required. Indicates whether the text message contains// entities.ContainEntitiesbool `json:"containEntities,omitempty"`// Parts: Optional. The collection of annotated message parts ordered by their// position in the message. You can recover the annotated message by// concatenating [AnnotatedMessagePart.text].Parts []*GoogleCloudDialogflowV2beta1AnnotatedMessagePart `json:"parts,omitempty"`// ForceSendFields is a list of field names (e.g. "ContainEntities") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1MessageAnnotation: Represents the result ofannotation for the message.

func (GoogleCloudDialogflowV2beta1MessageAnnotation)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1MessageEntryadded inv0.183.0

type GoogleCloudDialogflowV2beta1MessageEntry struct {// CreateTime: Optional. Create time of the message entry.CreateTimestring `json:"createTime,omitempty"`// LanguageCode: Optional. The language of the text. See Language Support// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of// the currently supported language codes.LanguageCodestring `json:"languageCode,omitempty"`// Role: Optional. Participant role of the message.//// 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.Rolestring `json:"role,omitempty"`// Text: Optional. Transcript content of the message.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "CreateTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1MessageEntry: Represents a message entry of aconversation.

func (GoogleCloudDialogflowV2beta1MessageEntry)MarshalJSONadded inv0.183.0

typeGoogleCloudDialogflowV2beta1NotificationConfigadded inv0.42.0

type GoogleCloudDialogflowV2beta1NotificationConfig struct {// MessageFormat: Format of message.//// Possible values://   "MESSAGE_FORMAT_UNSPECIFIED" - If it is unspecified, PROTO will be used.//   "PROTO" - Pub/Sub message will be serialized proto.//   "JSON" - Pub/Sub message will be json.MessageFormatstring `json:"messageFormat,omitempty"`// Topic: Name of the Pub/Sub topic to publish conversation events like// CONVERSATION_STARTED as serialized ConversationEvent protos. For telephony// integration to receive notification, make sure either this topic is in the// same project as the conversation or you grant// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service// Agent` role in the topic project. For chat integration to receive// notification, make sure API caller has been granted the `Dialogflow Service// Agent` role for the topic. Format: `projects//locations//topics/`.Topicstring `json:"topic,omitempty"`// ForceSendFields is a list of field names (e.g. "MessageFormat") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MessageFormat") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1NotificationConfig: Defines notificationbehavior.

func (GoogleCloudDialogflowV2beta1NotificationConfig)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest

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.Payloadgoogleapi.RawMessage `json:"payload,omitempty"`// Source: The source of this request, e.g., `google`, `facebook`, `slack`. It// is set by Dialogflow-owned servers.Sourcestring `json:"source,omitempty"`// Version: Optional. The version of the protocol used for this request. This// field is AoG-specific.Versionstring `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "Payload") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest: Represents thecontents of the original request that was passed to the`[Streaming]DetectIntent` call.

func (GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest)MarshalJSON

typeGoogleCloudDialogflowV2beta1OutputAudioadded inv0.42.0

type GoogleCloudDialogflowV2beta1OutputAudio struct {// Audio: Required. The natural language speech audio.Audiostring `json:"audio,omitempty"`// Config: Required. Instructs the speech synthesizer how to generate the// speech audio.Config *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"config,omitempty"`// ForceSendFields is a list of field names (e.g. "Audio") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Audio") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1OutputAudio: Represents the natural languagespeech audio to be played to the end user.

func (GoogleCloudDialogflowV2beta1OutputAudio)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1OutputAudioConfig

type GoogleCloudDialogflowV2beta1OutputAudioConfig 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_MP3_64_KBPS" - MP3 audio at 64kbps.//   "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.//   "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio// samples using G.711 PCMU/mu-law.//   "OUTPUT_AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio// samples using G.711 PCMU/a-law.AudioEncodingstring `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).SampleRateHertzint64 `json:"sampleRateHertz,omitempty"`// SynthesizeSpeechConfig: Configuration of how speech should be synthesized.SynthesizeSpeechConfig *GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig `json:"synthesizeSpeechConfig,omitempty"`// ForceSendFields is a list of field names (e.g. "AudioEncoding") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1OutputAudioConfig: Instructs the speechsynthesizer how to generate the output audio content. If this audio configis supplied in a request, it overrides all existing text-to-speech settingsapplied to the agent.

func (GoogleCloudDialogflowV2beta1OutputAudioConfig)MarshalJSON

typeGoogleCloudDialogflowV2beta1Participantadded inv0.42.0

type GoogleCloudDialogflowV2beta1Participant struct {// AgentDesktopSource: Optional. For tracking the utilization of prebuilt Agent// Assist integration modules. This field is only inscope for Integration type// that include UI Modules, Backend Modules, and Agent Desktop connector, it is// out of scope for CCaaS and Direct Integration. For each human agent,// prebuilt UI Modules needs to trigger the UpdateParticipant API to update// this field. Both CreateParticipantRequest and UpdateParticipantRequest will// be supported.//// Possible values://   "AGENT_DESKTOP_SOURCE_UNSPECIFIED" - Agent Desktop Source is not// specified.//   "LIVE_PERSON" - Agent Desktop Source is Live Person.//   "GENESYS_CLOUD" - Agent Desktop Source is Genesys Cloud.//   "TWILIO" - Agent Desktop Source is Twilio.//   "SALESFORCE" - Agent Desktop Source is Salesforce.//   "OTHER" - UI Modules are in use but the desktop is either not currently// released or setting this field to the applicable desktop.AgentDesktopSourcestring `json:"agentDesktopSource,omitempty"`// DocumentsMetadataFilters: Optional. Key-value filters on the metadata of// documents returned by article suggestion. If specified, article suggestion// only returns suggested documents that match all filters in their// Document.metadata. Multiple values for a metadata key should be concatenated// by comma. For example, filters to match all documents that have 'US' or 'CA'// in their market metadata values and 'agent' in their user metadata values// will be “` documents_metadata_filters { key: "market" value: "US,CA" }// documents_metadata_filters { key: "user" value: "agent" } “`DocumentsMetadataFilters map[string]string `json:"documentsMetadataFilters,omitempty"`// Name: Optional. The unique identifier of this participant. Format:// `projects//locations//conversations//participants/`.Namestring `json:"name,omitempty"`// ObfuscatedExternalUserId: Optional. Obfuscated user id that should be// associated with the created participant. You can specify a user id as// follows: 1. If you set this field in CreateParticipantRequest or// UpdateParticipantRequest, Dialogflow adds the obfuscated user id with the// participant. 2. If you set this field in AnalyzeContent or// StreamingAnalyzeContent, Dialogflow will update// Participant.obfuscated_external_user_id. Dialogflow uses this user id for// billing and measurement. If a user with the same obfuscated_external_user_id// is created in a later conversation, Dialogflow will know it's the same user.// Dialogflow also uses this user id for Agent Assist suggestion// personalization. For example, Dialogflow can use it to provide personalized// smart reply suggestions for this user. Note: * Please never pass raw user// ids to Dialogflow. Always obfuscate your user id first. * Dialogflow only// accepts a UTF-8 encoded string, e.g., a hex digest of a hash function like// SHA-512. * The length of the user id must be <= 256 characters.ObfuscatedExternalUserIdstring `json:"obfuscatedExternalUserId,omitempty"`// Role: Immutable. The role this participant plays in the conversation. This// field must be set during participant creation and is then immutable.//// 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.Rolestring `json:"role,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AgentDesktopSource") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentDesktopSource") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1Participant: Represents a conversationparticipant (human agent, virtual agent, end-user).

func (GoogleCloudDialogflowV2beta1Participant)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1PhoneNumberadded inv0.223.0

type GoogleCloudDialogflowV2beta1PhoneNumber struct {// ConversationProfile: Optional. The conversation profile calls to this// `PhoneNumber` should use. The project ID here should be the same as the one// in name. Format: `projects//conversationProfiles/`. Format:// `projects//locations//conversationProfiles/`.ConversationProfilestring `json:"conversationProfile,omitempty"`// LifecycleState: Output only. The state of the `PhoneNumber`. Defaults to// `ACTIVE`. `PhoneNumber` objects set to `DELETE_REQUESTED` always decline// incoming calls and can be removed completely within 30 days.//// Possible values://   "LIFECYCLE_STATE_UNSPECIFIED" - This value is never used.//   "ACTIVE" - Number is active and can receive phone calls.//   "DELETE_REQUESTED" - Number is pending deletion, and cannot receive calls.LifecycleStatestring `json:"lifecycleState,omitempty"`// Name: Optional. The unique identifier of this phone number. Required for// PhoneNumbers.UpdatePhoneNumber method. Format: `projects//phoneNumbers/`.// Format: `projects//locations//phoneNumbers/`.Namestring `json:"name,omitempty"`// PhoneNumber: Output only. Phone number in E.164// (https://en.wikipedia.org/wiki/E.164) format. An example of a correctly// formatted phone number: +15556767888.PhoneNumberstring `json:"phoneNumber,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ConversationProfile") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationProfile") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1PhoneNumber: Represents a phone number.`PhoneNumber` resources enable phone calls to be answered by Dialogflowservices and are added to a project through a PhoneNumberOrder.

func (GoogleCloudDialogflowV2beta1PhoneNumber)MarshalJSONadded inv0.223.0

typeGoogleCloudDialogflowV2beta1QueryInput

type GoogleCloudDialogflowV2beta1QueryInput struct {// AudioConfig: Instructs the speech recognizer how to process the speech// audio.AudioConfig *GoogleCloudDialogflowV2beta1InputAudioConfig `json:"audioConfig,omitempty"`// Dtmf: The DTMF digits used to invoke intent and fill in parameter value.Dtmf *GoogleCloudDialogflowV2beta1TelephonyDtmfEvents `json:"dtmf,omitempty"`// Event: The event to be processed.Event *GoogleCloudDialogflowV2beta1EventInput `json:"event,omitempty"`// Text: The natural language text to be processed.Text *GoogleCloudDialogflowV2beta1TextInput `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "AudioConfig") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1QueryInput: Represents the query input. It cancontain either: 1. An audio config which instructs the speech recognizer howto process the speech audio. 2. A conversational query in the form of text.3. An event that specifies which intent to trigger.

func (GoogleCloudDialogflowV2beta1QueryInput)MarshalJSON

typeGoogleCloudDialogflowV2beta1QueryParameters

type GoogleCloudDialogflowV2beta1QueryParameters struct {// Contexts: The collection of contexts to be activated before this query is// executed.Contexts []*GoogleCloudDialogflowV2beta1Context `json:"contexts,omitempty"`// GeoLocation: The geo location of this conversational query.GeoLocation *GoogleTypeLatLng `json:"geoLocation,omitempty"`// KnowledgeBaseNames: KnowledgeBases to get alternative results from. If not// set, the KnowledgeBases enabled in the agent (through UI) will be used.// Format: `projects//knowledgeBases/`.KnowledgeBaseNames []string `json:"knowledgeBaseNames,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.Payloadgoogleapi.RawMessage `json:"payload,omitempty"`// Platform: The platform of the virtual agent response messages. If not empty,// only emits messages from this platform in the response. Valid values are the// enum names of platform.Platformstring `json:"platform,omitempty"`// ResetContexts: Specifies whether to delete all contexts in the current// session before the new ones are activated.ResetContextsbool `json:"resetContexts,omitempty"`// SentimentAnalysisRequestConfig: Configures the type of sentiment analysis to// perform. If not provided, sentiment analysis is not performed. Note:// Sentiment Analysis is only currently available for Essentials Edition// agents.SentimentAnalysisRequestConfig *GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig `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 []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`// SubAgents: For mega agent query, directly specify which sub agents to query.// If any specified sub agent is not linked to the mega agent, an error will be// returned. If empty, Dialogflow will decide which sub agents to query. If// specified for a non-mega-agent query, will be silently ignored.SubAgents []*GoogleCloudDialogflowV2beta1SubAgent `json:"subAgents,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.TimeZonestring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1QueryParameters: Represents the parameters ofthe conversational query.

func (GoogleCloudDialogflowV2beta1QueryParameters)MarshalJSON

typeGoogleCloudDialogflowV2beta1QueryResult

type GoogleCloudDialogflowV2beta1QueryResult struct {// Action: The action name from the matched intent.Actionstring `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.AllRequiredParamsPresentbool `json:"allRequiredParamsPresent,omitempty"`// CancelsSlotFilling: Indicates whether the conversational query triggers a// cancellation for slot filling. For more information, see the cancel slot// filling documentation// (https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).CancelsSlotFillingbool `json:"cancelsSlotFilling,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 errorsDiagnosticInfogoogleapi.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.FulfillmentTextstring `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.IntentDetectionConfidencefloat64 `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.LanguageCodestring `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 then// use map, otherwise, depending on the parameter value type, it could be one// of string, number, boolean, null, list or map. * MapValue value: If// parameter's entity type is a composite entity then use map from composite// entity property names to property values, otherwise, use parameter value.Parametersgoogleapi.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.QueryTextstring `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.SpeechRecognitionConfidencefloat64 `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.WebhookPayloadgoogleapi.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.WebhookSourcestring `json:"webhookSource,omitempty"`// ForceSendFields is a list of field names (e.g. "Action") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1QueryResult: Represents the result ofconversational query or event processing.

func (GoogleCloudDialogflowV2beta1QueryResult)MarshalJSON

func (*GoogleCloudDialogflowV2beta1QueryResult)UnmarshalJSON

func (s *GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON(data []byte)error

typeGoogleCloudDialogflowV2beta1RaiSettingsadded inv0.252.0

type GoogleCloudDialogflowV2beta1RaiSettings struct {// RaiCategoryConfigs: Configuration for a set of RAI categories.RaiCategoryConfigs []*GoogleCloudDialogflowV2beta1RaiSettingsRaiCategoryConfig `json:"raiCategoryConfigs,omitempty"`// ForceSendFields is a list of field names (e.g. "RaiCategoryConfigs") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RaiCategoryConfigs") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1RaiSettings: Settings for Responsible AI checks.

func (GoogleCloudDialogflowV2beta1RaiSettings)MarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2beta1RaiSettingsRaiCategoryConfigadded inv0.252.0

type GoogleCloudDialogflowV2beta1RaiSettingsRaiCategoryConfig struct {// Category: Optional. The RAI category.//// Possible values://   "RAI_CATEGORY_UNSPECIFIED" - Default value.//   "DANGEROUS_CONTENT" - Dangerous content.//   "SEXUALLY_EXPLICIT" - Sexually explicit content.//   "HARASSMENT" - Harassment content.//   "HATE_SPEECH" - Hate speech content.Categorystring `json:"category,omitempty"`// SensitivityLevel: Optional. The sensitivity level for this category.//// Possible values://   "SENSITIVITY_LEVEL_UNSPECIFIED" - Default value. If unspecified, the// default behavior is: - DANGEROUS_CONTENT: BLOCK_FEW - SEXUALLY_EXPLICIT:// BLOCK_SOME - HARASSMENT: BLOCK_SOME - HATE_SPEECH: BLOCK_SOME//   "BLOCK_MOST" - Block most potentially sensitive responses.//   "BLOCK_SOME" - Block some potentially sensitive responses.//   "BLOCK_FEW" - Block a few potentially sensitive responses.//   "BLOCK_NONE" - No filtering for this category.SensitivityLevelstring `json:"sensitivityLevel,omitempty"`// ForceSendFields is a list of field names (e.g. "Category") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Category") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1RaiSettingsRaiCategoryConfig: Configuration fora specific RAI category.

func (GoogleCloudDialogflowV2beta1RaiSettingsRaiCategoryConfig)MarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2beta1ReloadDocumentRequest

type GoogleCloudDialogflowV2beta1ReloadDocumentRequest struct {// GcsSource: The path for a Cloud Storage source file for reloading document// content. If not provided, the Document's existing source will be reloaded.GcsSource *GoogleCloudDialogflowV2beta1GcsSource `json:"gcsSource,omitempty"`// ImportGcsCustomMetadata: Whether to import custom metadata from Google Cloud// Storage. Only valid when the document source is Google Cloud Storage URI.ImportGcsCustomMetadatabool `json:"importGcsCustomMetadata,omitempty"`// ForceSendFields is a list of field names (e.g. "GcsSource") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "GcsSource") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ReloadDocumentRequest: Request message forDocuments.ReloadDocument.

func (GoogleCloudDialogflowV2beta1ReloadDocumentRequest)MarshalJSONadded inv0.11.0

typeGoogleCloudDialogflowV2beta1ResponseMessageadded inv0.42.0

type GoogleCloudDialogflowV2beta1ResponseMessage struct {// EndInteraction: A signal that indicates the interaction with the Dialogflow// agent has ended.EndInteraction *GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction `json:"endInteraction,omitempty"`// LiveAgentHandoff: Hands off conversation to a live agent.LiveAgentHandoff *GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`// MixedAudio: An audio response message composed of both the synthesized// Dialogflow agent responses and the audios hosted in places known to the// client.MixedAudio *GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`// Payload: Returns a response containing a custom, platform-specific payload.Payloadgoogleapi.RawMessage `json:"payload,omitempty"`// TelephonyTransferCall: A signal that the client should transfer the phone// call connected to this agent to a third-party endpoint.TelephonyTransferCall *GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`// Text: Returns a text response.Text *GoogleCloudDialogflowV2beta1ResponseMessageText `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "EndInteraction") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ResponseMessage: Response messages from anautomated agent.

func (GoogleCloudDialogflowV2beta1ResponseMessage)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1ResponseMessageEndInteractionadded inv0.42.0

type GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction struct {}

GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction: Indicates thatinteraction with the Dialogflow agent has ended.

typeGoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoffadded inv0.42.0

type GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff struct {// Metadata: Custom metadata for your handoff procedure. Dialogflow doesn't// impose any structure on this.Metadatagoogleapi.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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff: Indicates thatthe conversation should be handed off to a human agent. Dialogflow only usesthis to determine which conversations were handed off to a human agent formeasurement purposes. What else to do with this signal is up to you and yourhandoff procedures. You may set this, for example: * In the entryfulfillment of a Dialogflow CX Page if entering the page indicates somethingwent extremely wrong in the conversation. * In a webhook response when youdetermine that the customer issue can only be handled by a human.

func (GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1ResponseMessageMixedAudioadded inv0.79.0

type GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio struct {// Segments: Segments this audio response is composed of.Segments []*GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment `json:"segments,omitempty"`// ForceSendFields is a list of field names (e.g. "Segments") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio: Represents an audiomessage that is composed of both segments synthesized from the Dialogflowagent prompts and ones hosted externally at the specified URIs.

func (GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio)MarshalJSONadded inv0.79.0

typeGoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegmentadded inv0.79.0

type GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment struct {// AllowPlaybackInterruption: 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.AllowPlaybackInterruptionbool `json:"allowPlaybackInterruption,omitempty"`// Audio: Raw audio synthesized from the Dialogflow agent's response using the// output config specified in the request.Audiostring `json:"audio,omitempty"`// Uri: Client-specific URI that points to an audio clip accessible to the// client.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "AllowPlaybackInterruption")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment: Represents onesegment of audio.

func (GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment)MarshalJSONadded inv0.79.0

typeGoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCalladded inv0.58.0

type GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall struct {// PhoneNumber: Transfer the call to a phone number in E.164 format// (https://en.wikipedia.org/wiki/E.164).PhoneNumberstring `json:"phoneNumber,omitempty"`// SipUri: Transfer the call to a SIP endpoint.SipUristring `json:"sipUri,omitempty"`// ForceSendFields is a list of field names (e.g. "PhoneNumber") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall: Representsthe signal that telles the client to transfer the phone call connected tothe agent to a third-party endpoint.

func (GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall)MarshalJSONadded inv0.58.0

typeGoogleCloudDialogflowV2beta1ResponseMessageTextadded inv0.42.0

type GoogleCloudDialogflowV2beta1ResponseMessageText struct {// Text: A collection of text response variants. If multiple variants are// defined, only one text response variant is returned at runtime.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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ResponseMessageText: The text response message.

func (GoogleCloudDialogflowV2beta1ResponseMessageText)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1RestoreAgentRequest

type GoogleCloudDialogflowV2beta1RestoreAgentRequest struct {// AgentContent: Zip compressed raw byte content for agent.AgentContentstring `json:"agentContent,omitempty"`// AgentUri: The URI to a Google Cloud Storage file containing the agent to// restore. Note: The URI must start with "gs://". Dialogflow performs a read// operation for the Cloud Storage object on the caller's behalf, so your// request authentication must have read permissions for the object. For more// information, see Dialogflow access control// (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).AgentUristring `json:"agentUri,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentContent") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1RestoreAgentRequest: The request message forAgents.RestoreAgent.

func (GoogleCloudDialogflowV2beta1RestoreAgentRequest)MarshalJSON

typeGoogleCloudDialogflowV2beta1SearchAgentsResponse

type GoogleCloudDialogflowV2beta1SearchAgentsResponse 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 []*GoogleCloudDialogflowV2beta1Agent `json:"agents,omitempty"`// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SearchAgentsResponse: The response message forAgents.SearchAgents.

func (GoogleCloudDialogflowV2beta1SearchAgentsResponse)MarshalJSON

typeGoogleCloudDialogflowV2beta1SearchKnowledgeAnsweradded inv0.139.0

type GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer struct {// Answer: The piece of text from the knowledge base documents that answers the// search queryAnswerstring `json:"answer,omitempty"`// AnswerRecord: The name of the answer record. Format:// `projects//locations//answer Records/`AnswerRecordstring `json:"answerRecord,omitempty"`// AnswerSources: All sources used to generate the answer.AnswerSources []*GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource `json:"answerSources,omitempty"`// AnswerType: The type of the answer.//// Possible values://   "ANSWER_TYPE_UNSPECIFIED" - The answer has a unspecified type.//   "FAQ" - The answer is from FAQ documents.//   "GENERATIVE" - The answer is from generative model.//   "INTENT" - The answer is from intent matching.AnswerTypestring `json:"answerType,omitempty"`// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer: Represents aSearchKnowledge answer.

func (GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer)MarshalJSONadded inv0.139.0

typeGoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSourceadded inv0.139.0

type GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource struct {// Metadata: Metadata associated with the article.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Snippet: The relevant snippet of the article.Snippetstring `json:"snippet,omitempty"`// Title: The title of the article.Titlestring `json:"title,omitempty"`// Uri: The URI of the article.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "Metadata") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource: The sourcesof the answers.

func (GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource)MarshalJSONadded inv0.139.0

typeGoogleCloudDialogflowV2beta1SearchKnowledgeRequestadded inv0.139.0

type GoogleCloudDialogflowV2beta1SearchKnowledgeRequest struct {// Conversation: Optional. The conversation (between human agent and end user)// where the search request is triggered. Format:// `projects//locations//conversations/`.Conversationstring `json:"conversation,omitempty"`// ConversationProfile: Required. The conversation profile used to configure// the search. Format: `projects//locations//conversationProfiles/`.ConversationProfilestring `json:"conversationProfile,omitempty"`// EndUserMetadata: Optional. Information about the end-user to improve the// relevance and accuracy of generative answers. This will be interpreted and// used by a language model, so, for good results, the data should be// self-descriptive, and in a simple structure. Example: “`json {// "subscription plan": "Business Premium Plus", "devices owned": [ {"model":// "Google Pixel 7"}, {"model": "Google Pixel Tablet"} ] } “`EndUserMetadatagoogleapi.RawMessage `json:"endUserMetadata,omitempty"`// ExactSearch: Optional. Whether to search the query exactly without query// rewrite.ExactSearchbool `json:"exactSearch,omitempty"`// LatestMessage: Optional. The name of the latest conversation message when// the request is triggered. Format:// `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// Parent: Required. The parent resource contains the conversation profile// Format: 'projects/' or `projects//locations/`.Parentstring `json:"parent,omitempty"`// Query: Required. The natural language text query for knowledge search.Query *GoogleCloudDialogflowV2beta1TextInput `json:"query,omitempty"`// QuerySource: Optional. The source of the query in the request.//// Possible values://   "QUERY_SOURCE_UNSPECIFIED" - Unknown query source.//   "AGENT_QUERY" - The query is from agents.//   "SUGGESTED_QUERY" - The query is a suggested query from// Participants.SuggestKnowledgeAssist.QuerySourcestring `json:"querySource,omitempty"`// SearchConfig: Optional. Configuration specific to search queries with data// stores.SearchConfig *GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfig `json:"searchConfig,omitempty"`// SessionId: Required. The ID of the search session. The session_id can be// combined with Dialogflow V3 Agent ID retrieved from conversation profile or// on its own to identify a search session. The search history of the same// session will impact the search result. It's up to the API caller to choose// an appropriate `Session ID`. It can be a random number or some type of// session identifiers (preferably hashed). The length must not exceed 36// characters.SessionIdstring `json:"sessionId,omitempty"`// ForceSendFields is a list of field names (e.g. "Conversation") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SearchKnowledgeRequest: The request message forConversations.SearchKnowledge.

func (GoogleCloudDialogflowV2beta1SearchKnowledgeRequest)MarshalJSONadded inv0.139.0

typeGoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigadded inv0.204.0

type GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfig struct {// BoostSpecs: Optional. Boost specifications for data stores.BoostSpecs []*GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecs `json:"boostSpecs,omitempty"`// FilterSpecs: Optional. Filter specification for data store queries. Maps// from datastore name to the filter expression for that datastore. Do not// specify more than one FilterSpecs for each datastore name. If multiple// FilterSpecs are provided for the same datastore name, the behavior is// undefined.FilterSpecs []*GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigFilterSpecs `json:"filterSpecs,omitempty"`// ForceSendFields is a list of field names (e.g. "BoostSpecs") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BoostSpecs") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfig:Configuration specific to search queries with data stores.

func (GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfig)MarshalJSONadded inv0.204.0

typeGoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsadded inv0.204.0

type GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecs struct {// DataStores: Optional. Data Stores where the boosting configuration is// applied. The full names of the referenced data stores. Formats:// `projects/{project}/locations/{location}/collections/{collection}/dataStores/// {data_store}`// `projects/{project}/locations/{location}/dataStores/{data_store}`DataStores []string `json:"dataStores,omitempty"`// Spec: Optional. A list of boosting specifications.Spec []*GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpec `json:"spec,omitempty"`// ForceSendFields is a list of field names (e.g. "DataStores") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DataStores") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecs:Boost specifications for data stores. Maps from datastore name to theirboost configuration. Do not specify more than one BoostSpecs for eachdatastore name. If multiple BoostSpecs are provided for the same datastorename, the behavior is undefined.

func (GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecs)MarshalJSONadded inv0.204.0

typeGoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecadded inv0.204.0

type GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpec struct {// ConditionBoostSpecs: Optional. Condition boost specifications. If a document// matches multiple conditions in the specifications, boost scores from these// specifications are all applied and combined in a non-linear way. Maximum// number of specifications is 20.ConditionBoostSpecs []*GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpec `json:"conditionBoostSpecs,omitempty"`// ForceSendFields is a list of field names (e.g. "ConditionBoostSpecs") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConditionBoostSpecs") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpec: Boost specification to boost certain documents. A copy ofgoogle.cloud.discoveryengine.v1main.BoostSpec, field documentation isavailable athttps://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/BoostSpec

func (GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpec)MarshalJSONadded inv0.204.0

typeGoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecadded inv0.204.0

type GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpec struct {// Boost: Optional. Strength of the condition boost, which should be in [-1,// 1]. Negative boost means demotion. Default is 0.0. Setting to 1.0 gives the// document a big promotion. However, it does not necessarily mean that the// boosted document will be the top result at all times, nor that other// documents will be excluded. Results could still be shown even when none of// them matches the condition. And results that are significantly more relevant// to the search query can still trump your heavily favored but irrelevant// documents. Setting to -1.0 gives the document a big demotion. However,// results that are deeply relevant might still be shown. The document will// have an upstream battle to get a fairly high ranking, but it is not blocked// out completely. Setting to 0.0 means no boost applied. The boosting// condition is ignored.Boostfloat64 `json:"boost,omitempty"`// BoostControlSpec: Optional. Complex specification for custom ranking based// on customer defined attribute value.BoostControlSpec *GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpec `json:"boostControlSpec,omitempty"`// Condition: Optional. An expression which specifies a boost condition. The// syntax and supported fields are the same as a filter expression. Examples: *// To boost documents with document ID "doc_1" or "doc_2", and color "Red" or// "Blue": * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue"))Conditionstring `json:"condition,omitempty"`// ForceSendFields is a list of field names (e.g. "Boost") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpec: Boost applies to documents which match a condition.

func (GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpec)MarshalJSONadded inv0.204.0

func (*GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpec)UnmarshalJSONadded inv0.204.0

typeGoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecadded inv0.204.0

type GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpec struct {// AttributeType: Optional. The attribute type to be used to determine the// boost amount. The attribute value can be derived from the field value of the// specified field_name. In the case of numerical it is straightforward i.e.// attribute_value = numerical_field_value. In the case of freshness however,// attribute_value = (time.now() - datetime_field_value).//// Possible values://   "ATTRIBUTE_TYPE_UNSPECIFIED" - Unspecified AttributeType.//   "NUMERICAL" - The value of the numerical field will be used to dynamically// update the boost amount. In this case, the attribute_value (the x value) of// the control point will be the actual value of the numerical field for which// the boost_amount is specified.//   "FRESHNESS" - For the freshness use case the attribute value will be the// duration between the current time and the date in the datetime field// specified. The value must be formatted as an XSD `dayTimeDuration` value (a// restricted subset of an ISO 8601 duration value). The pattern for this is:// `nDnM]`. E.g. `5D`, `3DT12H30M`, `T24H`.AttributeTypestring `json:"attributeType,omitempty"`// ControlPoints: Optional. The control points used to define the curve. The// monotonic function (defined through the interpolation_type above) passes// through the control points listed here.ControlPoints []*GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint `json:"controlPoints,omitempty"`// FieldName: Optional. The name of the field whose value will be used to// determine the boost amount.FieldNamestring `json:"fieldName,omitempty"`// InterpolationType: Optional. The interpolation type to be applied to connect// the control points listed below.//// Possible values://   "INTERPOLATION_TYPE_UNSPECIFIED" - Interpolation type is unspecified. In// this case, it defaults to Linear.//   "LINEAR" - Piecewise linear interpolation will be applied.InterpolationTypestring `json:"interpolationType,omitempty"`// ForceSendFields is a list of field names (e.g. "AttributeType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AttributeType") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpec: Specification for custom rankingbased on customer specified attribute value. It provides more controls forcustomized ranking than the simple (condition, boost) combination above.

func (GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpec)MarshalJSONadded inv0.204.0

typeGoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPointadded inv0.204.0

type GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint struct {// AttributeValue: Optional. Can be one of: 1. The numerical field value. 2.// The duration spec for freshness: The value must be formatted as an XSD// `dayTimeDuration` value (a restricted subset of an ISO 8601 duration value).// The pattern for this is: `nDnM]`.AttributeValuestring `json:"attributeValue,omitempty"`// BoostAmount: Optional. The value between -1 to 1 by which to boost the score// if the attribute_value evaluates to the value specified above.BoostAmountfloat64 `json:"boostAmount,omitempty"`// ForceSendFields is a list of field names (e.g. "AttributeValue") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AttributeValue") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint: The control points usedto define the curve. The curve defined through these control points can onlybe monotonically increasing or decreasing(constant values are acceptable).

func (GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint)MarshalJSONadded inv0.204.0

func (*GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint)UnmarshalJSONadded inv0.204.0

typeGoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigFilterSpecsadded inv0.204.0

type GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigFilterSpecs struct {// DataStores: Optional. The data store where the filter configuration is// applied. Full resource name of data store, such as// projects/{project}/locations/{location}/collections/{collectionId}/// dataStores/{dataStoreId}.DataStores []string `json:"dataStores,omitempty"`// Filter: Optional. The filter expression to be applied. Expression syntax is// documented at//https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntaxFilterstring `json:"filter,omitempty"`// ForceSendFields is a list of field names (e.g. "DataStores") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DataStores") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigFilterSpecs:Filter specification for data store queries.

func (GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigFilterSpecs)MarshalJSONadded inv0.204.0

typeGoogleCloudDialogflowV2beta1SearchKnowledgeResponseadded inv0.139.0

type GoogleCloudDialogflowV2beta1SearchKnowledgeResponse struct {// Answers: Most relevant snippets extracted from articles in the given// knowledge base, ordered by confidence.Answers []*GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer `json:"answers,omitempty"`// RewrittenQuery: The rewritten query used to search knowledge.RewrittenQuerystring `json:"rewrittenQuery,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Answers") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SearchKnowledgeResponse: The response messagefor Conversations.SearchKnowledge.

func (GoogleCloudDialogflowV2beta1SearchKnowledgeResponse)MarshalJSONadded inv0.139.0

typeGoogleCloudDialogflowV2beta1Sentiment

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).Magnitudefloat64 `json:"magnitude,omitempty"`// Score: Sentiment score between -1.0 (negative sentiment) and 1.0 (positive// sentiment).Scorefloat64 `json:"score,omitempty"`// ForceSendFields is a list of field names (e.g. "Magnitude") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1Sentiment: The sentiment, such aspositive/negative feeling or association, for a unit of analysis, such asthe query text. See:https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_valuesfor how to interpret the result.

func (GoogleCloudDialogflowV2beta1Sentiment)MarshalJSON

func (*GoogleCloudDialogflowV2beta1Sentiment)UnmarshalJSON

func (s *GoogleCloudDialogflowV2beta1Sentiment) UnmarshalJSON(data []byte)error

typeGoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig

type GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig struct {// AnalyzeQueryTextSentiment: Instructs the service to perform sentiment// analysis on `query_text`. If not provided, sentiment analysis is not// performed on `query_text`.AnalyzeQueryTextSentimentbool `json:"analyzeQueryTextSentiment,omitempty"`// ForceSendFields is a list of field names (e.g. "AnalyzeQueryTextSentiment")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig: Configures thetypes of sentiment analysis to perform.

func (GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig)MarshalJSON

typeGoogleCloudDialogflowV2beta1SentimentAnalysisResult

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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SentimentAnalysisResult: The result of sentimentanalysis. Sentiment analysis inspects user input and identifies theprevailing subjective opinion, especially to determine a user's attitude aspositive, negative, or neutral. For Participants.DetectIntent, it needs tobe configured in DetectIntentRequest.query_params. ForParticipants.StreamingDetectIntent, it needs to be configured inStreamingDetectIntentRequest.query_params. And forParticipants.AnalyzeContent and Participants.StreamingAnalyzeContent, itneeds to be configured in ConversationProfile.human_agent_assistant_config

func (GoogleCloudDialogflowV2beta1SentimentAnalysisResult)MarshalJSON

typeGoogleCloudDialogflowV2beta1SessionEntityType

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.EntityOverrideModestring `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.Namestring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SessionEntityType: A session represents aconversation between a Dialogflow agent and an end-user. You can createspecial entities, called session entities, during a session. Sessionentities can extend or replace custom entity types and only exist during thesession that they were created for. All session data, including sessionentities, is stored by Dialogflow for 20 minutes. For more information, seethe session entity guide(https://cloud.google.com/dialogflow/docs/entities-session).

func (GoogleCloudDialogflowV2beta1SessionEntityType)MarshalJSON

typeGoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadataadded inv0.71.0

type GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata struct {// ConversationProfile: The resource name of the conversation profile. Format:// `projects//locations//conversationProfiles/`ConversationProfilestring `json:"conversationProfile,omitempty"`// CreateTime: Timestamp whe the request was created. The time is measured on// server side.CreateTimestring `json:"createTime,omitempty"`// ParticipantRole: Required. The participant role to add or update the// suggestion feature config. Only HUMAN_AGENT or END_USER can be used.//// 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.ParticipantRolestring `json:"participantRole,omitempty"`// SuggestionFeatureType: Required. The type of the suggestion feature to add// or update.//// Possible values://   "TYPE_UNSPECIFIED" - Unspecified feature type.//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.//   "FAQ" - Run FAQ model.//   "SMART_REPLY" - Run smart reply model for chat.//   "DIALOGFLOW_ASSIST" - Run Dialogflow assist model for chat, which will// return automated agent response as suggestion.//   "CONVERSATION_SUMMARIZATION" - Run conversation summarization model for// chat.//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or// text generated query.//   "KNOWLEDGE_ASSIST" - Run knowledge assist with automatic query generation.SuggestionFeatureTypestring `json:"suggestionFeatureType,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversationProfile") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationProfile") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata:Metadata for a ConversationProfile.SetSuggestionFeatureConfig operation.

func (GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequestadded inv0.71.0

type GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest struct {// ParticipantRole: Required. The participant role to add or update the// suggestion feature config. Only HUMAN_AGENT or END_USER can be used.//// 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.ParticipantRolestring `json:"participantRole,omitempty"`// SuggestionFeatureConfig: Required. The suggestion feature config to add or// update.SuggestionFeatureConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig `json:"suggestionFeatureConfig,omitempty"`// ForceSendFields is a list of field names (e.g. "ParticipantRole") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ParticipantRole") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest: The requestmessage for ConversationProfiles.SetSuggestionFeature.

func (GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest)MarshalJSONadded inv0.71.0

typeGoogleCloudDialogflowV2beta1SipTrunkadded inv0.205.0

type GoogleCloudDialogflowV2beta1SipTrunk struct {// Connections: Output only. Connections of the SIP trunk.Connections []*GoogleCloudDialogflowV2beta1Connection `json:"connections,omitempty"`// DisplayName: Optional. Human readable alias for this trunk.DisplayNamestring `json:"displayName,omitempty"`// ExpectedHostname: Required. The expected hostnames in the peer certificate// from partner that is used for TLS authentication.ExpectedHostname []string `json:"expectedHostname,omitempty"`// Name: Identifier. The unique identifier of the SIP trunk. Format:// `projects//locations//sipTrunks/`.Namestring `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. "Connections") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Connections") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SipTrunk: SipTrunk is the resource thatrepresents a SIP trunk to connect to Google Telephony platform SIP trunkingservice.

func (GoogleCloudDialogflowV2beta1SipTrunk)MarshalJSONadded inv0.205.0

typeGoogleCloudDialogflowV2beta1SmartReplyAnsweradded inv0.42.0

type GoogleCloudDialogflowV2beta1SmartReplyAnswer struct {// AnswerRecord: The name of answer record, in the format of// "projects//locations//answerRecords/"AnswerRecordstring `json:"answerRecord,omitempty"`// Confidence: Smart reply confidence. The system's confidence score that this// reply is a good match for this conversation, as a value from 0.0 (completely// uncertain) to 1.0 (completely certain).Confidencefloat64 `json:"confidence,omitempty"`// Reply: The content of the reply.Replystring `json:"reply,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerRecord") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerRecord") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SmartReplyAnswer: Represents a smart replyanswer.

func (GoogleCloudDialogflowV2beta1SmartReplyAnswer)MarshalJSONadded inv0.42.0

func (*GoogleCloudDialogflowV2beta1SmartReplyAnswer)UnmarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1SpeechContextadded inv0.8.0

type GoogleCloudDialogflowV2beta1SpeechContext 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.Boostfloat64 `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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SpeechContext: Hints for the speech recognizerto help with recognition in a specific conversation state.

func (GoogleCloudDialogflowV2beta1SpeechContext)MarshalJSONadded inv0.8.0

func (*GoogleCloudDialogflowV2beta1SpeechContext)UnmarshalJSONadded inv0.8.0

typeGoogleCloudDialogflowV2beta1SpeechToTextConfigadded inv0.42.0

type GoogleCloudDialogflowV2beta1SpeechToTextConfig struct {// AudioEncoding: 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.//   "AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio samples// using G.711 PCMU/a-law.AudioEncodingstring `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.EnableWordInfobool `json:"enableWordInfo,omitempty"`// LanguageCode: 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. If not// specified, the default language configured at ConversationProfile is used.LanguageCodestring `json:"languageCode,omitempty"`// Model: Which Speech model to select. Select the model best suited to your// domain to get best results. If a model is not explicitly specified, then// Dialogflow auto-selects a model based on other parameters in the// SpeechToTextConfig and Agent settings. 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#select-model) for more// details. If you specify a model, the following models typically have the// best performance: - phone_call (best for Agent Assist and telephony) -// latest_short (best for Dialogflow non-telephony) - command_and_search Leave// this field unspecified to use Agent Speech settings// (https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech)// for model selection.Modelstring `json:"model,omitempty"`// PhraseSets: List of names of Cloud Speech phrase sets that are used for// transcription. For phrase set limitations, please refer to Cloud Speech API// quotas and limits (https://cloud.google.com/speech-to-text/quotas#content).PhraseSets []string `json:"phraseSets,omitempty"`// SampleRateHertz: 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.SampleRateHertzint64 `json:"sampleRateHertz,omitempty"`// SpeechModelVariant: The speech model used in speech to text.// `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as// `USE_ENHANCED`. It can be overridden in AnalyzeContentRequest and// StreamingAnalyzeContentRequest request. If enhanced model variant is// specified and an enhanced version of the specified model for the language// does not exist, then it would emit an error.//// 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-models)// 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-models)// 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.SpeechModelVariantstring `json:"speechModelVariant,omitempty"`// UseTimeoutBasedEndpointing: Use timeout based endpointing, interpreting// endpointer sensitivity as seconds of timeout value.UseTimeoutBasedEndpointingbool `json:"useTimeoutBasedEndpointing,omitempty"`// ForceSendFields is a list of field names (e.g. "AudioEncoding") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SpeechToTextConfig: Configures speechtranscription for ConversationProfile.

func (GoogleCloudDialogflowV2beta1SpeechToTextConfig)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1SpeechWordInfoadded inv0.215.0

type GoogleCloudDialogflowV2beta1SpeechWordInfo struct {// Confidence: The Speech confidence between 0.0 and 1.0 for this word. A// higher number indicates an estimated greater likelihood that the recognized// word is correct. The default of 0.0 is a sentinel value indicating that// confidence was not set. This field is not guaranteed to be fully stable over// time for the same audio input. Users should also not rely on it to always be// provided.Confidencefloat64 `json:"confidence,omitempty"`// EndOffset: Time offset relative to the beginning of the audio that// corresponds to the end of the spoken word. This is an experimental feature// and the accuracy of the time offset can vary.EndOffsetstring `json:"endOffset,omitempty"`// StartOffset: Time offset relative to the beginning of the audio that// corresponds to the start of the spoken word. This is an experimental feature// and the accuracy of the time offset can vary.StartOffsetstring `json:"startOffset,omitempty"`// Word: The word this info is for.Wordstring `json:"word,omitempty"`// ForceSendFields is a list of field names (e.g. "Confidence") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Confidence") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SpeechWordInfo: Information for a wordrecognized by the speech recognizer.

func (GoogleCloudDialogflowV2beta1SpeechWordInfo)MarshalJSONadded inv0.215.0

func (*GoogleCloudDialogflowV2beta1SpeechWordInfo)UnmarshalJSONadded inv0.215.0

typeGoogleCloudDialogflowV2beta1StreamingRecognitionResultadded inv0.215.0

type GoogleCloudDialogflowV2beta1StreamingRecognitionResult struct {// Confidence: The Speech confidence between 0.0 and 1.0 for the current// portion of audio. 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 typically only// provided if `is_final` is true and you should not rely on it being accurate// or even set.Confidencefloat64 `json:"confidence,omitempty"`// DtmfDigits: DTMF digits. Populated if and only if `message_type` =// `DTMF_DIGITS`.DtmfDigits *GoogleCloudDialogflowV2beta1TelephonyDtmfEvents `json:"dtmfDigits,omitempty"`// IsFinal: If `false`, the `StreamingRecognitionResult` represents an interim// result that may change. If `true`, the recognizer will not return any// further hypotheses about this piece of the audio. May only be populated for// `message_type` = `TRANSCRIPT`.IsFinalbool `json:"isFinal,omitempty"`// LanguageCode: Detected language code for the transcript.LanguageCodestring `json:"languageCode,omitempty"`// MessageType: Type of the result message.//// Possible values://   "MESSAGE_TYPE_UNSPECIFIED" - Not specified. Should never be used.//   "TRANSCRIPT" - Message contains a (possibly partial) transcript.//   "END_OF_SINGLE_UTTERANCE" - This event indicates that the server has// detected the end of the user's speech utterance and expects no additional// speech. Therefore, the server will not process additional audio (although it// may subsequently return additional results). The client should stop sending// additional audio data, half-close the gRPC connection, and wait for any// additional results until the server closes the gRPC connection. This message// is only sent if `single_utterance` was set to `true`, and is not used// otherwise.//   "DTMF_DIGITS" - Message contains DTMF digits.//   "PARTIAL_DTMF_DIGITS" - Message contains DTMF digits. Before a message// with DTMF_DIGITS is sent, a message with PARTIAL_DTMF_DIGITS may be sent// with DTMF digits collected up to the time of sending, which represents an// intermediate result.MessageTypestring `json:"messageType,omitempty"`// SpeechEndOffset: Time offset of the end of this Speech recognition result// relative to the beginning of the audio. Only populated for `message_type` =// `TRANSCRIPT`.SpeechEndOffsetstring `json:"speechEndOffset,omitempty"`// SpeechWordInfo: Word-specific information for the words recognized by Speech// in transcript. Populated if and only if `message_type` = `TRANSCRIPT` and// [InputAudioConfig.enable_word_info] is set.SpeechWordInfo []*GoogleCloudDialogflowV2beta1SpeechWordInfo `json:"speechWordInfo,omitempty"`// Stability: An estimate of the likelihood that the speech recognizer will not// change its guess about this interim recognition result: * If the value is// unspecified or 0.0, Dialogflow didn't compute the stability. In particular,// Dialogflow will only provide stability for `TRANSCRIPT` results with// `is_final = false`. * Otherwise, the value is in (0.0, 1.0] where 0.0 means// completely unstable and 1.0 means completely stable.Stabilityfloat64 `json:"stability,omitempty"`// Transcript: Transcript text representing the words that the user spoke.// Populated if and only if `message_type` = `TRANSCRIPT`.Transcriptstring `json:"transcript,omitempty"`// ForceSendFields is a list of field names (e.g. "Confidence") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Confidence") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1StreamingRecognitionResult: Contains a speechrecognition result corresponding to a portion of the audio that is currentlybeing processed or an indication that this is the end of the singlerequested utterance. While end-user audio is being processed, Dialogflowsends a series of results. Each result may contain a `transcript` value. Atranscript represents a portion of the utterance. While the recognizer isprocessing audio, transcript values may be interim values or finalizedvalues. Once a transcript is finalized, the `is_final` value is set to trueand processing continues for the next transcript. If`StreamingDetectIntentRequest.query_input.audio_config.single_utterance` wastrue, and the recognizer has completed processing audio, the `message_type`value is set to `END_OF_SINGLE_UTTERANCE and the following (last) resultcontains the last finalized transcript. The complete end-user utterance isdetermined by concatenating the finalized transcript values received for theseries of results. In the following example, single utterance is enabled. Inthe case where single utterance is not enabled, result 7 would not occur.``` Num | transcript | message_type | is_final --- | -----------------------| ----------------------- | -------- 1 | "tube" | TRANSCRIPT | false 2 | "tobe a" | TRANSCRIPT | false 3 | "to be" | TRANSCRIPT | false 4 | "to be ornot to be" | TRANSCRIPT | true 5 | "that's" | TRANSCRIPT | false 6 | "thatis | TRANSCRIPT | false 7 | unset | END_OF_SINGLE_UTTERANCE | unset 8 | "that is the question" | TRANSCRIPT | true ``` Concatenating the finalizedtranscripts with `is_final` set to true, the complete utterance becomes "tobe or not to be that is the question".

func (GoogleCloudDialogflowV2beta1StreamingRecognitionResult)MarshalJSONadded inv0.215.0

func (*GoogleCloudDialogflowV2beta1StreamingRecognitionResult)UnmarshalJSONadded inv0.215.0

typeGoogleCloudDialogflowV2beta1SubAgentadded inv0.18.0

type GoogleCloudDialogflowV2beta1SubAgent struct {// Environment: Optional. The unique identifier (`environment name` in// dialogflow console) of this sub-agent environment. Assumes draft environment// if `environment` is not set.Environmentstring `json:"environment,omitempty"`// Project: Required. The project of this agent. Format: `projects/` or// `projects//locations/`.Projectstring `json:"project,omitempty"`// ForceSendFields is a list of field names (e.g. "Environment") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Environment") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SubAgent: Contains basic configuration for asub-agent.

func (GoogleCloudDialogflowV2beta1SubAgent)MarshalJSONadded inv0.18.0

typeGoogleCloudDialogflowV2beta1SuggestArticlesRequestadded inv0.42.0

type GoogleCloudDialogflowV2beta1SuggestArticlesRequest struct {// AssistQueryParams: Optional. Parameters for a human assist query.AssistQueryParams *GoogleCloudDialogflowV2beta1AssistQueryParameters `json:"assistQueryParams,omitempty"`// ContextSize: Optional. Max number of messages prior to and including// latest_message to use as context when compiling the suggestion. By default// 20 and at most 50.ContextSizeint64 `json:"contextSize,omitempty"`// LatestMessage: Optional. The name of the latest conversation message to// compile suggestion for. If empty, it will be the latest message of the// conversation. Format: `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// ForceSendFields is a list of field names (e.g. "AssistQueryParams") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AssistQueryParams") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SuggestArticlesRequest: The request message forParticipants.SuggestArticles.

func (GoogleCloudDialogflowV2beta1SuggestArticlesRequest)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1SuggestArticlesResponseadded inv0.42.0

type GoogleCloudDialogflowV2beta1SuggestArticlesResponse struct {// ArticleAnswers: Output only. Articles ordered by score in descending order.ArticleAnswers []*GoogleCloudDialogflowV2beta1ArticleAnswer `json:"articleAnswers,omitempty"`// ContextSize: Number of messages prior to and including latest_message to// compile the suggestion. It may be smaller than the// SuggestArticlesResponse.context_size field in the request if there aren't// that many messages in the conversation.ContextSizeint64 `json:"contextSize,omitempty"`// LatestMessage: The name of the latest conversation message used to compile// suggestion for. Format: `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ArticleAnswers") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ArticleAnswers") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SuggestArticlesResponse: The response messagefor Participants.SuggestArticles.

func (GoogleCloudDialogflowV2beta1SuggestArticlesResponse)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1SuggestConversationSummaryRequestadded inv0.96.0

type GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest struct {// AssistQueryParams: Optional. Parameters for a human assist query. Only used// for POC/demo purpose.AssistQueryParams *GoogleCloudDialogflowV2beta1AssistQueryParameters `json:"assistQueryParams,omitempty"`// ContextSize: Optional. Max number of messages prior to and including// [latest_message] to use as context when compiling the suggestion. By default// 500 and at most 1000.ContextSizeint64 `json:"contextSize,omitempty"`// LatestMessage: Optional. The name of the latest conversation message used as// context for compiling suggestion. If empty, the latest message of the// conversation will be used. Format:// `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// ForceSendFields is a list of field names (e.g. "AssistQueryParams") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AssistQueryParams") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest: The requestmessage for Conversations.SuggestConversationSummary.

func (GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest)MarshalJSONadded inv0.96.0

typeGoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseadded inv0.96.0

type GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse struct {// ContextSize: Number of messages prior to and including// last_conversation_message used to compile the suggestion. It may be smaller// than the SuggestSummaryRequest.context_size field in the request if there// weren't that many messages in the conversation.ContextSizeint64 `json:"contextSize,omitempty"`// LatestMessage: The name of the latest conversation message used as context// for compiling suggestion. Format:// `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// Summary: Generated summary.Summary *GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary `json:"summary,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ContextSize") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContextSize") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse: The responsemessage for Conversations.SuggestConversationSummary.

func (GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse)MarshalJSONadded inv0.96.0

typeGoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummaryadded inv0.96.0

type GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary struct {// AnswerRecord: The name of the answer record. Format:// "projects//answerRecords/"AnswerRecordstring `json:"answerRecord,omitempty"`// BaselineModelVersion: The baseline model version used to generate this// summary. It is empty if a baseline model was not used to generate this// summary.BaselineModelVersionstring `json:"baselineModelVersion,omitempty"`// Text: The summary content that is concatenated into one string.Textstring `json:"text,omitempty"`// TextSections: The summary content that is divided into sections. The key is// the section's name and the value is the section's content. There is no// specific format for the key or value.TextSections map[string]string `json:"textSections,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerRecord") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerRecord") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary:Generated summary for a conversation.

func (GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary)MarshalJSONadded inv0.96.0

typeGoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponseadded inv0.125.0

type GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse struct {// ContextSize: Number of messages prior to and including latest_message to// compile the suggestion. It may be smaller than the// SuggestDialogflowAssistsRequest.context_size field in the request if there// aren't that many messages in the conversation.ContextSizeint64 `json:"contextSize,omitempty"`// DialogflowAssistAnswers: Output only. Multiple reply options provided by// Dialogflow assist service. The order is based on the rank of the model// prediction.DialogflowAssistAnswers []*GoogleCloudDialogflowV2beta1DialogflowAssistAnswer `json:"dialogflowAssistAnswers,omitempty"`// LatestMessage: The name of the latest conversation message used to suggest// answer. Format: `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// ForceSendFields is a list of field names (e.g. "ContextSize") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContextSize") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse: The responsemessage for Participants.SuggestDialogflowAssists.

func (GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse)MarshalJSONadded inv0.125.0

typeGoogleCloudDialogflowV2beta1SuggestFaqAnswersRequestadded inv0.42.0

type GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest struct {// AssistQueryParams: Optional. Parameters for a human assist query.AssistQueryParams *GoogleCloudDialogflowV2beta1AssistQueryParameters `json:"assistQueryParams,omitempty"`// ContextSize: Optional. Max number of messages prior to and including// [latest_message] to use as context when compiling the suggestion. By default// 20 and at most 50.ContextSizeint64 `json:"contextSize,omitempty"`// LatestMessage: Optional. The name of the latest conversation message to// compile suggestion for. If empty, it will be the latest message of the// conversation. Format: `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// ForceSendFields is a list of field names (e.g. "AssistQueryParams") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AssistQueryParams") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest: The request messagefor Participants.SuggestFaqAnswers.

func (GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1SuggestFaqAnswersResponseadded inv0.42.0

type GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse struct {// ContextSize: Number of messages prior to and including latest_message to// compile the suggestion. It may be smaller than the// SuggestFaqAnswersRequest.context_size field in the request if there aren't// that many messages in the conversation.ContextSizeint64 `json:"contextSize,omitempty"`// FaqAnswers: Output only. Answers extracted from FAQ documents.FaqAnswers []*GoogleCloudDialogflowV2beta1FaqAnswer `json:"faqAnswers,omitempty"`// LatestMessage: The name of the latest conversation message used to compile// suggestion for. Format: `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ContextSize") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContextSize") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse: The request messagefor Participants.SuggestFaqAnswers.

func (GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1SuggestKnowledgeAssistRequestadded inv0.185.0

type GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistRequest struct {// ContextSize: Optional. Max number of messages prior to and including// latest_message to use as context when compiling the suggestion. The context// size is by default 100 and at most 100.ContextSizeint64 `json:"contextSize,omitempty"`// LatestMessage: Optional. The name of the latest conversation message to// compile suggestions for. If empty, it will be the latest message of the// conversation. Format: `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// PreviousSuggestedQuery: Optional. The previously suggested query for the// given conversation. This helps identify whether the next suggestion we// generate is reasonably different from the previous one. This is useful to// avoid similar suggestions within the conversation.PreviousSuggestedQuerystring `json:"previousSuggestedQuery,omitempty"`// ForceSendFields is a list of field names (e.g. "ContextSize") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContextSize") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistRequest: The requestmessage for Participants.SuggestKnowledgeAssist.

func (GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistRequest)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponseadded inv0.185.0

type GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse struct {// ContextSize: Number of messages prior to and including latest_message to// compile the suggestion. It may be smaller than the// SuggestKnowledgeAssistRequest.context_size field in the request if there are// fewer messages in the conversation.ContextSizeint64 `json:"contextSize,omitempty"`// KnowledgeAssistAnswer: Output only. Knowledge Assist suggestion.KnowledgeAssistAnswer *GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer `json:"knowledgeAssistAnswer,omitempty"`// LatestMessage: The name of the latest conversation message used to compile// suggestion for. Format: `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ContextSize") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContextSize") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse: The responsemessage for Participants.SuggestKnowledgeAssist.

func (GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse)MarshalJSONadded inv0.185.0

typeGoogleCloudDialogflowV2beta1SuggestSmartRepliesRequestadded inv0.42.0

type GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest struct {// ContextSize: Optional. Max number of messages prior to and including// [latest_message] to use as context when compiling the suggestion. By default// 20 and at most 50.ContextSizeint64 `json:"contextSize,omitempty"`// CurrentTextInput: The current natural language text segment to compile// suggestion for. This provides a way for user to get follow up smart reply// suggestion after a smart reply selection, without sending a text message.CurrentTextInput *GoogleCloudDialogflowV2beta1TextInput `json:"currentTextInput,omitempty"`// LatestMessage: The name of the latest conversation message to compile// suggestion for. If empty, it will be the latest message of the conversation.// Format: `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// ForceSendFields is a list of field names (e.g. "ContextSize") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContextSize") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest: The request messagefor Participants.SuggestSmartReplies.

func (GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1SuggestSmartRepliesResponseadded inv0.42.0

type GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse struct {// ContextSize: Number of messages prior to and including latest_message to// compile the suggestion. It may be smaller than the// SuggestSmartRepliesRequest.context_size field in the request if there aren't// that many messages in the conversation.ContextSizeint64 `json:"contextSize,omitempty"`// LatestMessage: The name of the latest conversation message used to compile// suggestion for. Format: `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// SmartReplyAnswers: Output only. Multiple reply options provided by smart// reply service. The order is based on the rank of the model prediction. The// maximum number of the returned replies is set in SmartReplyConfig.SmartReplyAnswers []*GoogleCloudDialogflowV2beta1SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ContextSize") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContextSize") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse: The responsemessage for Participants.SuggestSmartReplies.

func (GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1Suggestionadded inv0.42.0

type GoogleCloudDialogflowV2beta1Suggestion struct {// Articles: Output only. Articles ordered by score in descending order.Articles []*GoogleCloudDialogflowV2beta1SuggestionArticle `json:"articles,omitempty"`// CreateTime: Output only. The time the suggestion was created.CreateTimestring `json:"createTime,omitempty"`// FaqAnswers: Output only. Answers extracted from FAQ documents.FaqAnswers []*GoogleCloudDialogflowV2beta1SuggestionFaqAnswer `json:"faqAnswers,omitempty"`// LatestMessage: Output only. Latest message used as context to compile this// suggestion. Format: `projects//locations//conversations//messages/`.LatestMessagestring `json:"latestMessage,omitempty"`// Name: Output only. The name of this suggestion. Format:// `projects//locations//conversations//participants/*/suggestions/`.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Articles") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Articles") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1Suggestion: Represents a suggestion for a humanagent.

func (GoogleCloudDialogflowV2beta1Suggestion)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1SuggestionArticleadded inv0.42.0

type GoogleCloudDialogflowV2beta1SuggestionArticle struct {// AnswerRecord: Output only. The name of answer record, in the format of// "projects//locations//answerRecords/"AnswerRecordstring `json:"answerRecord,omitempty"`// Metadata: Output only. A map that contains metadata about the answer and the// document from which it originates.Metadata map[string]string `json:"metadata,omitempty"`// Snippets: Output only. Article snippets.Snippets []string `json:"snippets,omitempty"`// Title: Output only. The article title.Titlestring `json:"title,omitempty"`// Uri: Output only. The article URI.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "AnswerRecord") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnswerRecord") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SuggestionArticle: Represents suggested article.

func (GoogleCloudDialogflowV2beta1SuggestionArticle)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1SuggestionDedupingConfigadded inv0.252.0

type GoogleCloudDialogflowV2beta1SuggestionDedupingConfig struct {// EnableDeduping: Optional. Whether to enable suggestion deduping.EnableDedupingbool `json:"enableDeduping,omitempty"`// SimilarityThreshold: Optional. The threshold for similarity between two// suggestions. Acceptable value is [0.0, 1.0], default to 0.8SimilarityThresholdfloat64 `json:"similarityThreshold,omitempty"`// ForceSendFields is a list of field names (e.g. "EnableDeduping") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EnableDeduping") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SuggestionDedupingConfig: Config for suggestiondeduping. NEXT_ID: 3

func (GoogleCloudDialogflowV2beta1SuggestionDedupingConfig)MarshalJSONadded inv0.252.0

func (*GoogleCloudDialogflowV2beta1SuggestionDedupingConfig)UnmarshalJSONadded inv0.252.0

typeGoogleCloudDialogflowV2beta1SuggestionFaqAnsweradded inv0.42.0

type GoogleCloudDialogflowV2beta1SuggestionFaqAnswer struct {// Answer: Output only. The piece of text from the `source` knowledge base// document.Answerstring `json:"answer,omitempty"`// AnswerRecord: Output only. The name of answer record, in the format of// "projects//locations//answerRecords/"AnswerRecordstring `json:"answerRecord,omitempty"`// Confidence: The system's confidence score that this Knowledge answer is a// good match for this conversational query, range from 0.0 (completely// uncertain) to 1.0 (completely certain).Confidencefloat64 `json:"confidence,omitempty"`// Metadata: Output only. A map that contains metadata about the answer and the// document from which it originates.Metadata map[string]string `json:"metadata,omitempty"`// Question: Output only. The corresponding FAQ question.Questionstring `json:"question,omitempty"`// Source: Output only. Indicates which Knowledge Document this answer was// extracted from. Format:// `projects//locations//agent/knowledgeBases//documents/`.Sourcestring `json:"source,omitempty"`// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SuggestionFaqAnswer: Represents suggested answerfrom "frequently asked questions".

func (GoogleCloudDialogflowV2beta1SuggestionFaqAnswer)MarshalJSONadded inv0.42.0

func (*GoogleCloudDialogflowV2beta1SuggestionFaqAnswer)UnmarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1SuggestionFeatureadded inv0.42.0

type GoogleCloudDialogflowV2beta1SuggestionFeature struct {// Type: Type of Human Agent Assistant API feature to request.//// Possible values://   "TYPE_UNSPECIFIED" - Unspecified feature type.//   "ARTICLE_SUGGESTION" - Run article suggestion model for chat.//   "FAQ" - Run FAQ model.//   "SMART_REPLY" - Run smart reply model for chat.//   "DIALOGFLOW_ASSIST" - Run Dialogflow assist model for chat, which will// return automated agent response as suggestion.//   "CONVERSATION_SUMMARIZATION" - Run conversation summarization model for// chat.//   "KNOWLEDGE_SEARCH" - Run knowledge search with text input from agent or// text generated query.//   "KNOWLEDGE_ASSIST" - Run knowledge assist with automatic query generation.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Type") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SuggestionFeature: The type of Human AgentAssistant API suggestion to perform, and the maximum number of results toreturn for that type. Multiple `Feature` objects can be specified in the`features` list.

func (GoogleCloudDialogflowV2beta1SuggestionFeature)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1SuggestionInputadded inv0.125.0

type GoogleCloudDialogflowV2beta1SuggestionInput struct {// Action: Optional. The type of action to take with the tool.//// Possible values://   "ACTION_UNSPECIFIED" - Action not specified.//   "CANCEL" - Indicates the user chooses to not make the tool call. It is// only applicable to tool calls that are waiting for user confirmation.//   "REVISE" - Makes the tool call with provided parameters. This action is// intended for tool calls that only read but not write data.//   "CONFIRM" - Makes the tool call with provided parameters. This action is// intended for tool calls that may write data.Actionstring `json:"action,omitempty"`// AnswerRecord: Required. Format: `projects//locations//answerRecords/` The// answer record associated with the tool call.AnswerRecordstring `json:"answerRecord,omitempty"`// IntentInput: The intent to be triggered on V3 agent.IntentInput *GoogleCloudDialogflowV2beta1IntentInput `json:"intentInput,omitempty"`// Parameters: Parameters to be used for the tool call. If not provided, the// tool will be called without any parameters.Parametersgoogleapi.RawMessage `json:"parameters,omitempty"`// SendTime: Optional. Time when the current suggest input is sent. For tool// calls, this timestamp (along with the answer record) will be included in the// corresponding tool call result so that it can be identified.SendTimestring `json:"sendTime,omitempty"`// TextOverride: Optional. If the customer edited the suggestion before using// it, include the revised text here.TextOverride *GoogleCloudDialogflowV2beta1TextInput `json:"textOverride,omitempty"`// ForceSendFields is a list of field names (e.g. "Action") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SuggestionInput: Represents the action to takefor a tool call that requires confirmation.

func (GoogleCloudDialogflowV2beta1SuggestionInput)MarshalJSONadded inv0.125.0

typeGoogleCloudDialogflowV2beta1SuggestionResultadded inv0.42.0

type GoogleCloudDialogflowV2beta1SuggestionResult struct {// Error: Error status if the request failed.Error *GoogleRpcStatus `json:"error,omitempty"`// GenerateSuggestionsResponse: Suggestions generated using generators// triggered by customer or agent messages.GenerateSuggestionsResponse *GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse `json:"generateSuggestionsResponse,omitempty"`// SuggestArticlesResponse: SuggestArticlesResponse if request is for// ARTICLE_SUGGESTION.SuggestArticlesResponse *GoogleCloudDialogflowV2beta1SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`// SuggestDialogflowAssistsResponse: SuggestDialogflowAssistsResponse if// request is for DIALOGFLOW_ASSIST.SuggestDialogflowAssistsResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestDialogflowAssistsResponse,omitempty"`// SuggestEntityExtractionResponse: SuggestDialogflowAssistsResponse if request// is for ENTITY_EXTRACTION.SuggestEntityExtractionResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestEntityExtractionResponse,omitempty"`// SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is for// FAQ_ANSWER.SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`// SuggestKnowledgeAssistResponse: SuggestKnowledgeAssistResponse if request is// for KNOWLEDGE_ASSIST.SuggestKnowledgeAssistResponse *GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse `json:"suggestKnowledgeAssistResponse,omitempty"`// SuggestSmartRepliesResponse: SuggestSmartRepliesResponse if request is for// SMART_REPLY.SuggestSmartRepliesResponse *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`// ForceSendFields is a list of field names (e.g. "Error") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Error") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SuggestionResult: One response of different typeof suggestion response which is used in the response ofParticipants.AnalyzeContent and Participants.AnalyzeContent, as well asHumanAgentAssistantEvent.

func (GoogleCloudDialogflowV2beta1SuggestionResult)MarshalJSONadded inv0.42.0

typeGoogleCloudDialogflowV2beta1SummarizationContextadded inv0.183.0

type GoogleCloudDialogflowV2beta1SummarizationContext struct {// FewShotExamples: Optional. List of few shot examples.FewShotExamples []*GoogleCloudDialogflowV2beta1FewShotExample `json:"fewShotExamples,omitempty"`// OutputLanguageCode: Optional. The target language of the generated summary.// The language code for conversation will be used if this field is empty.// Supported 2.0 and later versions.OutputLanguageCodestring `json:"outputLanguageCode,omitempty"`// SummarizationSections: Optional. List of sections. Note it contains both// predefined section sand customer defined sections.SummarizationSections []*GoogleCloudDialogflowV2beta1SummarizationSection `json:"summarizationSections,omitempty"`// Version: Optional. Version of the feature. If not set, default to latest// version. Current candidates are ["1.0"].Versionstring `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "FewShotExamples") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FewShotExamples") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SummarizationContext: Summarization context thatcustomer can configure.

func (GoogleCloudDialogflowV2beta1SummarizationContext)MarshalJSONadded inv0.183.0

typeGoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsadded inv0.250.0

type GoogleCloudDialogflowV2beta1SummarizationEvaluationMetrics struct {// ConversationDetails: Output only. List of conversation details.ConversationDetails []*GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetail `json:"conversationDetails,omitempty"`// OverallMetrics: Output only. A list of aggregated(average) scores per metric// section.OverallMetrics []*GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsOverallScoresByMetric `json:"overallMetrics,omitempty"`// OverallSectionTokens: Output only. Overall token per section. This is an// aggregated(sum) result of input token of summary acorss all conversations// that are selected for summarization evaluation.OverallSectionTokens []*GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsSectionToken `json:"overallSectionTokens,omitempty"`// SummarizationEvaluationMergedResultsUri: Output only. User bucket uri for// merged evaluation score and aggregation score csv.SummarizationEvaluationMergedResultsUristring `json:"summarizationEvaluationMergedResultsUri,omitempty"`// SummarizationEvaluationResults: Output only. A list of evaluation results// per conversation(&summary), metric and section.SummarizationEvaluationResults []*GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsSummarizationEvaluationResult `json:"summarizationEvaluationResults,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversationDetails") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversationDetails") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SummarizationEvaluationMetrics: Evaluationmetrics for summarization generator.

func (GoogleCloudDialogflowV2beta1SummarizationEvaluationMetrics)MarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsAccuracyDecompositionadded inv0.250.0

type GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsAccuracyDecomposition struct {// AccuracyReasoning: Output only. The accuracy reasoning of the breakdown// point.AccuracyReasoningstring `json:"accuracyReasoning,omitempty"`// IsAccurate: Output only. Whether the breakdown point is accurate or not.IsAccuratebool `json:"isAccurate,omitempty"`// Point: Output only. The breakdown point of the summary.Pointstring `json:"point,omitempty"`// ForceSendFields is a list of field names (e.g. "AccuracyReasoning") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccuracyReasoning") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsAccuracyDecomposition: Decomposition details for accuracy.

func (GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsAccuracyDecomposition)MarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsAdherenceDecompositionadded inv0.250.0

type GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsAdherenceDecomposition struct {// AdherenceReasoning: Output only. The adherence reasoning of the breakdown// point.AdherenceReasoningstring `json:"adherenceReasoning,omitempty"`// IsAdherent: Output only. Whether the breakdown point is adherent or not.IsAdherentbool `json:"isAdherent,omitempty"`// Point: Output only. The breakdown point of the given instructions.Pointstring `json:"point,omitempty"`// ForceSendFields is a list of field names (e.g. "AdherenceReasoning") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdherenceReasoning") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsAdherenceDecomposition: Decomposition details for adherence.

func (GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsAdherenceDecomposition)MarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsAdherenceRubricadded inv0.250.0

type GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsAdherenceRubric struct {// IsAddressed: Output only. A boolean that indicates whether the rubric// question is addressed or not.IsAddressedbool `json:"isAddressed,omitempty"`// Question: Output only. The question generated from instruction that used to// evaluate summary.Questionstring `json:"question,omitempty"`// Reasoning: Output only. The reasoning of the rubric question is addressed or// not.Reasoningstring `json:"reasoning,omitempty"`// ForceSendFields is a list of field names (e.g. "IsAddressed") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IsAddressed") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsAdherenceRubric:Rubric result of the adherence evaluation. A rubric is ued to determine ifthe summary adheres to all aspects of the given instructions.

func (GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsAdherenceRubric)MarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsCompletenessRubricadded inv0.250.0

type GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsCompletenessRubric struct {// IsAddressed: Output only. A boolean that indicates whether the rubric// question is addressed or not.IsAddressedbool `json:"isAddressed,omitempty"`// Question: Output only. The question generated from instruction that used to// evaluate summary.Questionstring `json:"question,omitempty"`// ForceSendFields is a list of field names (e.g. "IsAddressed") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IsAddressed") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsCompletenessRubric:

Rubric details of the completeness evaluation result.

func (GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsCompletenessRubric)MarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetailadded inv0.250.0

type GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetail struct {// MessageEntries: Output only. Conversation transcript that used for// summarization evaluation as a reference.MessageEntries []*GoogleCloudDialogflowV2beta1MessageEntry `json:"messageEntries,omitempty"`// MetricDetails: Output only. List of metric details.MetricDetails []*GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetailMetricDetail `json:"metricDetails,omitempty"`// SectionTokens: Output only. Conversation level token count per section. This// is an aggregated(sum) result of input token of summary acorss all metrics// for a single conversation.SectionTokens []*GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsSectionToken `json:"sectionTokens,omitempty"`// SummarySections: Output only. Summary sections that used for summarization// evaluation as a reference.SummarySections []*GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection `json:"summarySections,omitempty"`// ForceSendFields is a list of field names (e.g. "MessageEntries") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MessageEntries") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetail:

Aggregated evaluation result on conversation level. This contains

evaluation results of all the metrics and sections.

func (GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetail)MarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetailMetricDetailadded inv0.250.0

type GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetailMetricDetail struct {// Metric: Output only. Metrics name. e.g. accuracy, adherence, completeness.Metricstring `json:"metric,omitempty"`// Score: Output only. Aggregated(average) score on this metric across all// sections.Scorefloat64 `json:"score,omitempty"`// SectionDetails: Output only. List of section details.SectionDetails []*GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetailMetricDetailSectionDetail `json:"sectionDetails,omitempty"`// ForceSendFields is a list of field names (e.g. "Metric") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Metric") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetailMetricDetail: Aggregated result on metric level. This contains the evaluationresults of all the sections.

func (GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetailMetricDetail)MarshalJSONadded inv0.250.0

func (*GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetailMetricDetail)UnmarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetailMetricDetailSectionDetailadded inv0.250.0

type GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetailMetricDetailSectionDetail struct {// EvaluationResults: Output only. List of evaluation result. The list only// contains one kind of the evaluation result.EvaluationResults []*GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsEvaluationResult `json:"evaluationResults,omitempty"`// Score: Output only. Aggregated(average) score on this section across all// evaluation results. Either decompositions or rubrics.Scorefloat64 `json:"score,omitempty"`// Section: Output only. The name of the summary instruction.Sectionstring `json:"section,omitempty"`// SectionSummary: Output only. Summary for this sectionSectionSummarystring `json:"sectionSummary,omitempty"`// ForceSendFields is a list of field names (e.g. "EvaluationResults") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EvaluationResults") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetailMetricDetailSectionDetail: Section level result.

func (GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetailMetricDetailSectionDetail)MarshalJSONadded inv0.250.0

func (*GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetailMetricDetailSectionDetail)UnmarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsDecompositionadded inv0.250.0

type GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsDecomposition struct {// AccuracyDecomposition: only available for accuracy metric.AccuracyDecomposition *GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsAccuracyDecomposition `json:"accuracyDecomposition,omitempty"`// AdherenceDecomposition: only available for adherence metric.AdherenceDecomposition *GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsAdherenceDecomposition `json:"adherenceDecomposition,omitempty"`// ForceSendFields is a list of field names (e.g. "AccuracyDecomposition") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccuracyDecomposition") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsDecomposition:Decomposition details

func (GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsDecomposition)MarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsEvaluationResultadded inv0.250.0

type GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsEvaluationResult struct {// AccuracyDecomposition: Only available for accuracy metric.AccuracyDecomposition *GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsAccuracyDecomposition `json:"accuracyDecomposition,omitempty"`// AdherenceRubric: Only available for adherence metric.AdherenceRubric *GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsAdherenceRubric `json:"adherenceRubric,omitempty"`// CompletenessRubric: Only available for completeness metric.CompletenessRubric *GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsCompletenessRubric `json:"completenessRubric,omitempty"`// ForceSendFields is a list of field names (e.g. "AccuracyDecomposition") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccuracyDecomposition") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsEvaluationResult:Evaluation result that contains one of accuracy, adherence or completenessevaluation result.

func (GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsEvaluationResult)MarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsOverallScoresByMetricadded inv0.250.0

type GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsOverallScoresByMetric struct {// Metric: Output only. Metric name. e.g. accuracy, adherence, completeness.Metricstring `json:"metric,omitempty"`// ForceSendFields is a list of field names (e.g. "Metric") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Metric") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsOverallScoresByMetric: Overall performance per metric. This is the aggregated score for eachmetric across all conversations that are selected for summarizationevaluation.

func (GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsOverallScoresByMetric)MarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsSectionTokenadded inv0.250.0

type GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsSectionToken struct {// Section: Output only. The name of the summary instruction.Sectionstring `json:"section,omitempty"`// TokenCount: Output only. Token count.TokenCountint64 `json:"tokenCount,omitempty,string"`// ForceSendFields is a list of field names (e.g. "Section") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Section") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsSectionToken: Apair of section name and input token count of the input summary section.

func (GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsSectionToken)MarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsSummarizationEvaluationResultadded inv0.250.0

type GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsSummarizationEvaluationResult struct {// Decompositions: Output only. List of decompostion detailsDecompositions []*GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsDecomposition `json:"decompositions,omitempty"`// EvaluationResults: Output only. List of evaluation results.EvaluationResults []*GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsEvaluationResult `json:"evaluationResults,omitempty"`// Metric: Output only. metric name, e.g. accuracy, completeness, adherence,// etc.Metricstring `json:"metric,omitempty"`// Score: Output only. score calculated from decompositionsScorefloat64 `json:"score,omitempty"`// Section: Output only. section/task name, e.g. action, situation, etcSectionstring `json:"section,omitempty"`// SectionSummary: Output only. Summary of this sectionSectionSummarystring `json:"sectionSummary,omitempty"`// SessionId: Output only. conversation session idSessionIdstring `json:"sessionId,omitempty"`// ForceSendFields is a list of field names (e.g. "Decompositions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Decompositions") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsSummarizationEvaluationResult: Evaluation result per conversation(&summary), metric andsection.

func (GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsSummarizationEvaluationResult)MarshalJSONadded inv0.250.0

func (*GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsSummarizationEvaluationResult)UnmarshalJSONadded inv0.250.0

typeGoogleCloudDialogflowV2beta1SummarizationSectionadded inv0.183.0

type GoogleCloudDialogflowV2beta1SummarizationSection struct {// Definition: Optional. Definition of the section, for example, "what the// customer needs help with or has question about."Definitionstring `json:"definition,omitempty"`// Key: Optional. Name of the section, for example, "situation".Keystring `json:"key,omitempty"`// Type: Optional. Type of the summarization section.//// Possible values://   "TYPE_UNSPECIFIED" - Undefined section type, does not return anything.//   "SITUATION" - What the customer needs help with or has question about.// Section name: "situation".//   "ACTION" - What the agent does to help the customer. Section name:// "action".//   "RESOLUTION" - Result of the customer service. A single word describing// the result of the conversation. Section name: "resolution".//   "REASON_FOR_CANCELLATION" - Reason for cancellation if the customer// requests for a cancellation. "N/A" otherwise. Section name:// "reason_for_cancellation".//   "CUSTOMER_SATISFACTION" - "Unsatisfied" or "Satisfied" depending on the// customer's feelings at the end of the conversation. Section name:// "customer_satisfaction".//   "ENTITIES" - Key entities extracted from the conversation, such as ticket// number, order number, dollar amount, etc. Section names are prefixed by// "entities/".//   "CUSTOMER_DEFINED" - Customer defined sections.//   "SITUATION_CONCISE" - Concise version of the situation section. This type// is only available if type SITUATION is not selected.//   "ACTION_CONCISE" - Concise version of the action section. This type is// only available if type ACTION is not selected.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Definition") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Definition") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SummarizationSection: Represents the section ofsummarization.

func (GoogleCloudDialogflowV2beta1SummarizationSection)MarshalJSONadded inv0.183.0

typeGoogleCloudDialogflowV2beta1SummarizationSectionListadded inv0.183.0

type GoogleCloudDialogflowV2beta1SummarizationSectionList struct {// SummarizationSections: Optional. Summarization sections.SummarizationSections []*GoogleCloudDialogflowV2beta1SummarizationSection `json:"summarizationSections,omitempty"`// ForceSendFields is a list of field names (e.g. "SummarizationSections") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "SummarizationSections") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SummarizationSectionList: List of summarizationsections.

func (GoogleCloudDialogflowV2beta1SummarizationSectionList)MarshalJSONadded inv0.183.0

typeGoogleCloudDialogflowV2beta1SummarySuggestionadded inv0.183.0

type GoogleCloudDialogflowV2beta1SummarySuggestion struct {// SummarySections: Required. All the parts of generated summary.SummarySections []*GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection `json:"summarySections,omitempty"`// ForceSendFields is a list of field names (e.g. "SummarySections") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "SummarySections") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SummarySuggestion: Suggested summary of theconversation.

func (GoogleCloudDialogflowV2beta1SummarySuggestion)MarshalJSONadded inv0.183.0

typeGoogleCloudDialogflowV2beta1SummarySuggestionSummarySectionadded inv0.183.0

type GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection struct {// Section: Required. Name of the section.Sectionstring `json:"section,omitempty"`// Summary: Required. Summary text for the section.Summarystring `json:"summary,omitempty"`// ForceSendFields is a list of field names (e.g. "Section") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Section") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection: A component ofthe generated summary.

func (GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection)MarshalJSONadded inv0.183.0

typeGoogleCloudDialogflowV2beta1SynthesizeSpeechConfig

type GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig 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.Pitchfloat64 `json:"pitch,omitempty"`// Pronunciations: Optional. The custom pronunciations for the synthesized// audio.Pronunciations []*GoogleCloudDialogflowV2beta1CustomPronunciationParams `json:"pronunciations,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.SpeakingRatefloat64 `json:"speakingRate,omitempty"`// Voice: Optional. The desired voice of the synthesized audio.Voice *GoogleCloudDialogflowV2beta1VoiceSelectionParams `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.VolumeGainDbfloat64 `json:"volumeGainDb,omitempty"`// ForceSendFields is a list of field names (e.g. "EffectsProfileId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig: Configuration of howspeech should be synthesized.

func (GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig)MarshalJSON

func (*GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig)UnmarshalJSON

typeGoogleCloudDialogflowV2beta1TelephonyDtmfEventsadded inv0.43.0

type GoogleCloudDialogflowV2beta1TelephonyDtmfEvents struct {// DtmfEvents: A sequence of TelephonyDtmf digits.//// Possible values://   "TELEPHONY_DTMF_UNSPECIFIED" - Not specified. This value may be used to// indicate an absent digit.//   "DTMF_ONE" - Number: '1'.//   "DTMF_TWO" - Number: '2'.//   "DTMF_THREE" - Number: '3'.//   "DTMF_FOUR" - Number: '4'.//   "DTMF_FIVE" - Number: '5'.//   "DTMF_SIX" - Number: '6'.//   "DTMF_SEVEN" - Number: '7'.//   "DTMF_EIGHT" - Number: '8'.//   "DTMF_NINE" - Number: '9'.//   "DTMF_ZERO" - Number: '0'.//   "DTMF_A" - Letter: 'A'.//   "DTMF_B" - Letter: 'B'.//   "DTMF_C" - Letter: 'C'.//   "DTMF_D" - Letter: 'D'.//   "DTMF_STAR" - Asterisk/star: '*'.//   "DTMF_POUND" - Pound/diamond/hash/square/gate/octothorpe: '#'.DtmfEvents []string `json:"dtmfEvents,omitempty"`// ForceSendFields is a list of field names (e.g. "DtmfEvents") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DtmfEvents") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1TelephonyDtmfEvents: A wrapper of repeatedTelephonyDtmf digits.

func (GoogleCloudDialogflowV2beta1TelephonyDtmfEvents)MarshalJSONadded inv0.43.0

typeGoogleCloudDialogflowV2beta1TextInput

type GoogleCloudDialogflowV2beta1TextInput 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.LanguageCodestring `json:"languageCode,omitempty"`// Text: Required. The UTF-8 encoded natural language text to be processed.// Text length must not exceed 256 characters for virtual agent interactions.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "LanguageCode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1TextInput: Represents the natural language textto be processed.

func (GoogleCloudDialogflowV2beta1TextInput)MarshalJSON

typeGoogleCloudDialogflowV2beta1TextToSpeechSettingsadded inv0.46.0

type GoogleCloudDialogflowV2beta1TextToSpeechSettings struct {// EnableTextToSpeech: Optional. Indicates whether text to speech is enabled.// Even when this field is false, other settings in this proto are still// retained.EnableTextToSpeechbool `json:"enableTextToSpeech,omitempty"`// OutputAudioEncoding: 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_MP3_64_KBPS" - MP3 audio at 64kbps.//   "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.//   "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio// samples using G.711 PCMU/mu-law.//   "OUTPUT_AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio// samples using G.711 PCMU/a-law.OutputAudioEncodingstring `json:"outputAudioEncoding,omitempty"`// SampleRateHertz: Optional. 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).SampleRateHertzint64 `json:"sampleRateHertz,omitempty"`// SynthesizeSpeechConfigs: Optional. Configuration of how speech should be// synthesized, mapping from language// (https://cloud.google.com/dialogflow/docs/reference/language) to// SynthesizeSpeechConfig.SynthesizeSpeechConfigs map[string]GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig `json:"synthesizeSpeechConfigs,omitempty"`// ForceSendFields is a list of field names (e.g. "EnableTextToSpeech") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EnableTextToSpeech") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1TextToSpeechSettings: Instructs the speechsynthesizer on how to generate the output audio content.

func (GoogleCloudDialogflowV2beta1TextToSpeechSettings)MarshalJSONadded inv0.46.0

typeGoogleCloudDialogflowV2beta1Tooladded inv0.253.0

type GoogleCloudDialogflowV2beta1Tool struct {// ActionConfirmationRequirement: Optional. Confirmation requirement for the// actions. Each key is an action name in the action_schemas. If an action's// confirmation requirement is unspecified (either the key is not present, or// its value is CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is// inferred from the action's method_type - confirmation is not required if and// only if method_type is GET.ActionConfirmationRequirement map[string]string `json:"actionConfirmationRequirement,omitempty"`// ConnectorSpec: Integration connectors tool specification.ConnectorSpec *GoogleCloudDialogflowV2beta1ToolConnectorTool `json:"connectorSpec,omitempty"`// CreateTime: Output only. Creation time of this tool.CreateTimestring `json:"createTime,omitempty"`// Description: Optional. A human readable description of the tool.Descriptionstring `json:"description,omitempty"`// DisplayName: Optional. A human readable short name of the tool, to be shown// on the UI.DisplayNamestring `json:"displayName,omitempty"`// ExtensionSpec: Vertex extension tool specification.ExtensionSpec *GoogleCloudDialogflowV2beta1ToolExtensionTool `json:"extensionSpec,omitempty"`// FunctionSpec: Client side executed function specification.FunctionSpec *GoogleCloudDialogflowV2beta1ToolFunctionTool `json:"functionSpec,omitempty"`// Name: Output only. Identifier. The resource name of the tool. Format:// `projects//locations//tools/`.Namestring `json:"name,omitempty"`// OpenApiSpec: OpenAPI tool.OpenApiSpec *GoogleCloudDialogflowV2beta1ToolOpenApiTool `json:"openApiSpec,omitempty"`// SatisfiesPzi: Output only. A read only boolean field reflecting Zone// Isolation status of the tool. If the field is absent, it means the status is// unknown.SatisfiesPzibool `json:"satisfiesPzi,omitempty"`// SatisfiesPzs: Output only. A read only boolean field reflecting Zone// Separation status of the tool. If the field is absent, it means the status// is unknown.SatisfiesPzsbool `json:"satisfiesPzs,omitempty"`// ToolKey: Required. A human readable short name of the tool, which should be// unique within the project. It should only contain letters, numbers, and// underscores, and it will be used by LLM to identify the tool.ToolKeystring `json:"toolKey,omitempty"`// UpdateTime: Output only. Update time of this tool.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g.// "ActionConfirmationRequirement") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ActionConfirmationRequirement")// to include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1Tool: Represents a tool.

func (GoogleCloudDialogflowV2beta1Tool)MarshalJSONadded inv0.253.0

func (sGoogleCloudDialogflowV2beta1Tool) MarshalJSON() ([]byte,error)

typeGoogleCloudDialogflowV2beta1ToolAuthenticationadded inv0.253.0

type GoogleCloudDialogflowV2beta1ToolAuthentication struct {// ApiKeyConfig: Config for API key auth.ApiKeyConfig *GoogleCloudDialogflowV2beta1ToolAuthenticationApiKeyConfig `json:"apiKeyConfig,omitempty"`// BearerTokenConfig: Config for bearer token auth.BearerTokenConfig *GoogleCloudDialogflowV2beta1ToolAuthenticationBearerTokenConfig `json:"bearerTokenConfig,omitempty"`// OauthConfig: Config for OAuth.OauthConfig *GoogleCloudDialogflowV2beta1ToolAuthenticationOAuthConfig `json:"oauthConfig,omitempty"`// ServiceAgentAuthConfig: Config for Diglogflow service agent// (https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)// auth.ServiceAgentAuthConfig *GoogleCloudDialogflowV2beta1ToolAuthenticationServiceAgentAuthConfig `json:"serviceAgentAuthConfig,omitempty"`// ForceSendFields is a list of field names (e.g. "ApiKeyConfig") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApiKeyConfig") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ToolAuthentication: Authentication informationrequired for API calls

func (GoogleCloudDialogflowV2beta1ToolAuthentication)MarshalJSONadded inv0.253.0

typeGoogleCloudDialogflowV2beta1ToolAuthenticationApiKeyConfigadded inv0.253.0

type GoogleCloudDialogflowV2beta1ToolAuthenticationApiKeyConfig struct {// ApiKey: Optional. The API key. If the `secret_version_for_api_key` field is// set, this field will be ignored.ApiKeystring `json:"apiKey,omitempty"`// KeyName: Required. The parameter name or the header name of the API key.// E.g., If the API request is "https://example.com/act?X-Api-Key=",// "X-Api-Key" would be the parameter name.KeyNamestring `json:"keyName,omitempty"`// RequestLocation: Required. Key location in the request.//// Possible values://   "REQUEST_LOCATION_UNSPECIFIED" - Default value. This value is unused.//   "HEADER" - Represents the key in http header.//   "QUERY_STRING" - Represents the key in query string.RequestLocationstring `json:"requestLocation,omitempty"`// SecretVersionForApiKey: Optional. The name of the SecretManager secret// version resource storing the API key. If this field is set, the `api_key`// field will be ignored. Format:// `projects/{project}/secrets/{secret}/versions/{version}`SecretVersionForApiKeystring `json:"secretVersionForApiKey,omitempty"`// ForceSendFields is a list of field names (e.g. "ApiKey") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApiKey") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ToolAuthenticationApiKeyConfig: Config forauthentication with API key.

func (GoogleCloudDialogflowV2beta1ToolAuthenticationApiKeyConfig)MarshalJSONadded inv0.253.0

typeGoogleCloudDialogflowV2beta1ToolAuthenticationBearerTokenConfigadded inv0.253.0

type GoogleCloudDialogflowV2beta1ToolAuthenticationBearerTokenConfig struct {// SecretVersionForToken: Optional. The name of the SecretManager secret// version resource storing the Bearer token. If this field is set, the `token`// field will be ignored. Format:// `projects/{project}/secrets/{secret}/versions/{version}`SecretVersionForTokenstring `json:"secretVersionForToken,omitempty"`// Token: Optional. The text token appended to the text `Bearer` to the request// Authorization header. Session parameters reference// (https://cloud.google.com/dialogflow/cx/docs/concept/parameter#session-ref)// can be used to pass the token dynamically, e.g.// `$session.params.parameter-id`.Tokenstring `json:"token,omitempty"`// ForceSendFields is a list of field names (e.g. "SecretVersionForToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "SecretVersionForToken") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ToolAuthenticationBearerTokenConfig: Config forauthentication using bearer token.

func (GoogleCloudDialogflowV2beta1ToolAuthenticationBearerTokenConfig)MarshalJSONadded inv0.253.0

typeGoogleCloudDialogflowV2beta1ToolAuthenticationOAuthConfigadded inv0.253.0

type GoogleCloudDialogflowV2beta1ToolAuthenticationOAuthConfig struct {// ClientId: Required. The client ID from the OAuth provider.ClientIdstring `json:"clientId,omitempty"`// ClientSecret: Optional. The client secret from the OAuth provider. If the// `secret_version_for_client_secret` field is set, this field will be ignored.ClientSecretstring `json:"clientSecret,omitempty"`// OauthGrantType: Required. OAuth grant types.//// Possible values://   "OAUTH_GRANT_TYPE_UNSPECIFIED" - Default value. This value is unused.//   "CLIENT_CREDENTIAL" - Represents the [client credential// flow](https://oauth.net/2/grant-types/client-credentials).OauthGrantTypestring `json:"oauthGrantType,omitempty"`// Scopes: Optional. The OAuth scopes to grant.Scopes []string `json:"scopes,omitempty"`// SecretVersionForClientSecret: Optional. The name of the SecretManager secret// version resource storing the client secret. If this field is set, the// `client_secret` field will be ignored. Format:// `projects/{project}/secrets/{secret}/versions/{version}`SecretVersionForClientSecretstring `json:"secretVersionForClientSecret,omitempty"`// TokenEndpoint: Required. The token endpoint in the OAuth provider to// exchange for an access token.TokenEndpointstring `json:"tokenEndpoint,omitempty"`// ForceSendFields is a list of field names (e.g. "ClientId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ClientId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ToolAuthenticationOAuthConfig: Config forauthentication with OAuth.

func (GoogleCloudDialogflowV2beta1ToolAuthenticationOAuthConfig)MarshalJSONadded inv0.253.0

typeGoogleCloudDialogflowV2beta1ToolAuthenticationServiceAgentAuthConfigadded inv0.253.0

type GoogleCloudDialogflowV2beta1ToolAuthenticationServiceAgentAuthConfig struct {// ServiceAgentAuth: Optional. Indicate the auth token type generated from the// Diglogflow service agent// (https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).// The generated token is sent in the Authorization header.//// Possible values://   "SERVICE_AGENT_AUTH_UNSPECIFIED" - Service agent auth type unspecified.// Default to ID_TOKEN.//   "ID_TOKEN" - Use [ID// token](https://cloud.google.com/docs/authentication/token-types#id)// generated from service agent. This can be used to access Cloud Function and// Cloud Run after you grant Invoker role to// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.//   "ACCESS_TOKEN" - Use [access// token](https://cloud.google.com/docs/authentication/token-types#access)// generated from service agent. This can be used to access other Google Cloud// APIs after you grant required roles to// `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`.ServiceAgentAuthstring `json:"serviceAgentAuth,omitempty"`// ForceSendFields is a list of field names (e.g. "ServiceAgentAuth") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ServiceAgentAuth") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ToolAuthenticationServiceAgentAuthConfig: Configfor auth using Dialogflow service agent(https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).

func (GoogleCloudDialogflowV2beta1ToolAuthenticationServiceAgentAuthConfig)MarshalJSONadded inv0.253.0

typeGoogleCloudDialogflowV2beta1ToolCalladded inv0.229.0

type GoogleCloudDialogflowV2beta1ToolCall struct {// Action: Optional. The name of the tool's action associated with this call.Actionstring `json:"action,omitempty"`// AnswerRecord: Optional. The answer record associated with this tool call.AnswerRecordstring `json:"answerRecord,omitempty"`// CreateTime: Output only. Create time of the tool call.CreateTimestring `json:"createTime,omitempty"`// InputParameters: Optional. The action's input parameters.InputParametersgoogleapi.RawMessage `json:"inputParameters,omitempty"`// State: Output only. State of the tool call//// Possible values://   "STATE_UNSPECIFIED" - Default value.//   "TRIGGERED" - The tool call has been triggered.//   "NEEDS_CONFIRMATION" - The tool call requires confirmation from a human.Statestring `json:"state,omitempty"`// Tool: Optional. The tool associated with this call. Format:// `projects//locations//tools/`.Toolstring `json:"tool,omitempty"`// ToolDisplayDetails: Optional. A human readable description of the tool.ToolDisplayDetailsstring `json:"toolDisplayDetails,omitempty"`// ToolDisplayName: Optional. A human readable short name of the tool, to be// shown on the UI.ToolDisplayNamestring `json:"toolDisplayName,omitempty"`// ForceSendFields is a list of field names (e.g. "Action") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ToolCall: Represents a call of a specific tool'saction with the specified inputs.

func (GoogleCloudDialogflowV2beta1ToolCall)MarshalJSONadded inv0.229.0

typeGoogleCloudDialogflowV2beta1ToolCallResultadded inv0.229.0

type GoogleCloudDialogflowV2beta1ToolCallResult struct {// Action: Optional. The name of the tool's action associated with this call.Actionstring `json:"action,omitempty"`// AnswerRecord: Optional. The answer record associated with this tool call// result.AnswerRecordstring `json:"answerRecord,omitempty"`// Content: Only populated if the response content is utf-8 encoded.Contentstring `json:"content,omitempty"`// CreateTime: Output only. Create time of the tool call result.CreateTimestring `json:"createTime,omitempty"`// Error: The tool call's error.Error *GoogleCloudDialogflowV2beta1ToolCallResultError `json:"error,omitempty"`// RawContent: Only populated if the response content is not utf-8 encoded. (by// definition byte fields are base64 encoded).RawContentstring `json:"rawContent,omitempty"`// Tool: Optional. The tool associated with this call. Format:// `projects//locations//tools/`.Toolstring `json:"tool,omitempty"`// ForceSendFields is a list of field names (e.g. "Action") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ToolCallResult: The result of calling a tool'saction.

func (GoogleCloudDialogflowV2beta1ToolCallResult)MarshalJSONadded inv0.229.0

typeGoogleCloudDialogflowV2beta1ToolCallResultErroradded inv0.229.0

type GoogleCloudDialogflowV2beta1ToolCallResultError struct {// Message: Optional. The error message of the function.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Message") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Message") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ToolCallResultError: An error produced by thetool call.

func (GoogleCloudDialogflowV2beta1ToolCallResultError)MarshalJSONadded inv0.229.0

typeGoogleCloudDialogflowV2beta1ToolConnectorTooladded inv0.253.0

type GoogleCloudDialogflowV2beta1ToolConnectorTool struct {// Actions: Required. Actions for the tool to use.Actions []*GoogleCloudDialogflowV2beta1ToolConnectorToolAction `json:"actions,omitempty"`// Name: Required. The full resource name of the referenced Integration// Connectors Connection. Format: 'projects/*/locations/*/connections/*'Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Actions") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ToolConnectorTool: A ConnectorTool enablingusing Integration Connectors Connections as tools.

func (GoogleCloudDialogflowV2beta1ToolConnectorTool)MarshalJSONadded inv0.253.0

typeGoogleCloudDialogflowV2beta1ToolConnectorToolActionadded inv0.253.0

type GoogleCloudDialogflowV2beta1ToolConnectorToolAction struct {// ConnectionActionId: ID of a Connection action for the tool to use.ConnectionActionIdstring `json:"connectionActionId,omitempty"`// EntityOperation: Entity operation configuration for the tool to use.EntityOperation *GoogleCloudDialogflowV2beta1ToolConnectorToolActionEntityOperation `json:"entityOperation,omitempty"`// InputFields: Optional. Entity fields to use as inputs for the operation. If// no fields are specified, all fields of the Entity will be used.InputFields []string `json:"inputFields,omitempty"`// OutputFields: Optional. Entity fields to return from the operation. If no// fields are specified, all fields of the Entity will be returned.OutputFields []string `json:"outputFields,omitempty"`// ForceSendFields is a list of field names (e.g. "ConnectionActionId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConnectionActionId") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ToolConnectorToolAction: Configuration of aConnection operation for the tool to use.

func (GoogleCloudDialogflowV2beta1ToolConnectorToolAction)MarshalJSONadded inv0.253.0

typeGoogleCloudDialogflowV2beta1ToolConnectorToolActionEntityOperationadded inv0.253.0

type GoogleCloudDialogflowV2beta1ToolConnectorToolActionEntityOperation struct {// EntityId: Required. ID of the entity.EntityIdstring `json:"entityId,omitempty"`// Operation: Required. Operation to perform on the entity.//// Possible values://   "OPERATION_TYPE_UNSPECIFIED" - Operation type unspecified. Invalid,// ConnectorTool create/update will fail.//   "LIST" - List operation.//   "GET" - Get operation.//   "CREATE" - Create operation.//   "UPDATE" - Update operation.//   "DELETE" - Delete operation.Operationstring `json:"operation,omitempty"`// ForceSendFields is a list of field names (e.g. "EntityId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EntityId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ToolConnectorToolActionEntityOperation: EntityCRUD operation specification.

func (GoogleCloudDialogflowV2beta1ToolConnectorToolActionEntityOperation)MarshalJSONadded inv0.253.0

typeGoogleCloudDialogflowV2beta1ToolExtensionTooladded inv0.253.0

type GoogleCloudDialogflowV2beta1ToolExtensionTool struct {// Name: Required. The full name of the referenced vertex extension. Format:// `projects/{project}/locations/{location}/extensions/{extension}`Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ToolExtensionTool: An ExtensionTool is a way touse Vertex Extensions as a tool.

func (GoogleCloudDialogflowV2beta1ToolExtensionTool)MarshalJSONadded inv0.253.0

typeGoogleCloudDialogflowV2beta1ToolFunctionTooladded inv0.253.0

type GoogleCloudDialogflowV2beta1ToolFunctionTool struct {// InputSchema: Optional. The JSON schema is encapsulated in a// google.protobuf.Struct to describe the input of the function. This input is// a JSON object that contains the function's parameters as properties of the// object.InputSchemagoogleapi.RawMessage `json:"inputSchema,omitempty"`// MethodType: Optional. The method type of the function. If not specified, the// default value is GET.//// Possible values://   "METHOD_TYPE_UNSPECIFIED" - Unspecified.//   "GET" - GET method.//   "POST" - POST method.//   "PUT" - PUT method.//   "DELETE" - DELETE method.//   "PATCH" - PATCH method.MethodTypestring `json:"methodType,omitempty"`// OutputSchema: Optional. The JSON schema is encapsulated in a// google.protobuf.Struct to describe the output of the function. This output// is a JSON object that contains the function's parameters as properties of// the object.OutputSchemagoogleapi.RawMessage `json:"outputSchema,omitempty"`// ForceSendFields is a list of field names (e.g. "InputSchema") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InputSchema") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ToolFunctionTool: A Function tool describes thefunctions to be invoked on the client side.

func (GoogleCloudDialogflowV2beta1ToolFunctionTool)MarshalJSONadded inv0.253.0

typeGoogleCloudDialogflowV2beta1ToolOpenApiTooladded inv0.253.0

type GoogleCloudDialogflowV2beta1ToolOpenApiTool struct {// Authentication: Optional. Authentication information required by the API.Authentication *GoogleCloudDialogflowV2beta1ToolAuthentication `json:"authentication,omitempty"`// ServiceDirectoryConfig: Optional. Service Directory configuration.ServiceDirectoryConfig *GoogleCloudDialogflowV2beta1ToolServiceDirectoryConfig `json:"serviceDirectoryConfig,omitempty"`// TextSchema: Required. The OpenAPI schema specified as a text.TextSchemastring `json:"textSchema,omitempty"`// TlsConfig: Optional. TLS configuration for the HTTPS verification.TlsConfig *GoogleCloudDialogflowV2beta1ToolTLSConfig `json:"tlsConfig,omitempty"`// ForceSendFields is a list of field names (e.g. "Authentication") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Authentication") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ToolOpenApiTool: An OpenAPI tool is a way toprovide the Tool specifications in the Open API schema format.

func (GoogleCloudDialogflowV2beta1ToolOpenApiTool)MarshalJSONadded inv0.253.0

typeGoogleCloudDialogflowV2beta1ToolServiceDirectoryConfigadded inv0.253.0

type GoogleCloudDialogflowV2beta1ToolServiceDirectoryConfig struct {// Service: Required. The name of Service Directory// (https://cloud.google.com/service-directory) service. Format:// `projects//locations//namespaces//services/`. `LocationID` of the service// directory must be the same as the location of the tool.Servicestring `json:"service,omitempty"`// ForceSendFields is a list of field names (e.g. "Service") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Service") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ToolServiceDirectoryConfig: Configuration fortools using Service Directory.

func (GoogleCloudDialogflowV2beta1ToolServiceDirectoryConfig)MarshalJSONadded inv0.253.0

typeGoogleCloudDialogflowV2beta1ToolTLSConfigadded inv0.253.0

type GoogleCloudDialogflowV2beta1ToolTLSConfig struct {// CaCerts: Required. Specifies a list of allowed custom CA certificates for// HTTPS verification.CaCerts []*GoogleCloudDialogflowV2beta1ToolTLSConfigCACert `json:"caCerts,omitempty"`// ForceSendFields is a list of field names (e.g. "CaCerts") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CaCerts") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ToolTLSConfig: The TLS configuration.

func (GoogleCloudDialogflowV2beta1ToolTLSConfig)MarshalJSONadded inv0.253.0

typeGoogleCloudDialogflowV2beta1ToolTLSConfigCACertadded inv0.253.0

type GoogleCloudDialogflowV2beta1ToolTLSConfigCACert struct {// Cert: Required. The allowed custom CA certificates (in DER format) for HTTPS// verification. This overrides the default SSL trust store. If this is empty// or unspecified, Dialogflow will use Google's default trust store to verify// certificates. N.B. Make sure the HTTPS server certificates are signed with// "subject alt name". For instance a certificate can be self-signed using the// following command, “` openssl x509 -req -days 200 -in example.com.csr \// -signkey example.com.key \ -out example.com.crt \ -extfile <(printf// "\nsubjectAltName='DNS:www.example.com'") “`Certstring `json:"cert,omitempty"`// DisplayName: Required. The name of the allowed custom CA certificates. This// can be used to disambiguate the custom CA certificates.DisplayNamestring `json:"displayName,omitempty"`// ForceSendFields is a list of field names (e.g. "Cert") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Cert") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ToolTLSConfigCACert: The CA certificate.

func (GoogleCloudDialogflowV2beta1ToolTLSConfigCACert)MarshalJSONadded inv0.253.0

typeGoogleCloudDialogflowV2beta1TrainAgentRequest

type GoogleCloudDialogflowV2beta1TrainAgentRequest struct {}

GoogleCloudDialogflowV2beta1TrainAgentRequest: The request message forAgents.TrainAgent.

typeGoogleCloudDialogflowV2beta1UndeletePhoneNumberRequestadded inv0.223.0

type GoogleCloudDialogflowV2beta1UndeletePhoneNumberRequest struct {}

GoogleCloudDialogflowV2beta1UndeletePhoneNumberRequest: The request messagefor PhoneNumbers.UndeletePhoneNumber.

typeGoogleCloudDialogflowV2beta1ValidationErroradded inv0.11.0

type GoogleCloudDialogflowV2beta1ValidationError 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 message.ErrorMessagestring `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 practices.//   "WARNING" - The agent may not behave as expected.//   "ERROR" - The agent may experience partial failures.//   "CRITICAL" - The agent may completely fail.Severitystring `json:"severity,omitempty"`// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ValidationError: Represents a single validationerror.

func (GoogleCloudDialogflowV2beta1ValidationError)MarshalJSONadded inv0.11.0

typeGoogleCloudDialogflowV2beta1ValidationResultadded inv0.11.0

type GoogleCloudDialogflowV2beta1ValidationResult struct {// ValidationErrors: Contains all validation errors.ValidationErrors []*GoogleCloudDialogflowV2beta1ValidationError `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1ValidationResult: Represents the output of agentvalidation.

func (GoogleCloudDialogflowV2beta1ValidationResult)MarshalJSONadded inv0.11.0

typeGoogleCloudDialogflowV2beta1Versionadded inv0.18.0

type GoogleCloudDialogflowV2beta1Version struct {// CreateTime: Output only. The creation time of this version. This field is// read-only, i.e., it cannot be set by create and update methods.CreateTimestring `json:"createTime,omitempty"`// Description: Optional. The developer-provided description of this version.Descriptionstring `json:"description,omitempty"`// Name: Output only. The unique identifier of this agent version. Supported// formats: - `projects//agent/versions/` -// `projects//locations//agent/versions/`Namestring `json:"name,omitempty"`// Status: Output only. The status of this version. This field is read-only and// cannot be set by create and update methods.//// Possible values://   "VERSION_STATUS_UNSPECIFIED" - Not specified. This value is not used.//   "IN_PROGRESS" - Version is not ready to serve (e.g. training is in// progress).//   "READY" - Version is ready to serve.//   "FAILED" - Version training failed.Statusstring `json:"status,omitempty"`// VersionNumber: Output only. The sequential number of this version. This// field is read-only which means it cannot be set by create and update// methods.VersionNumberint64 `json:"versionNumber,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreateTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1Version: You can create multiple versions ofyour agent and publish them to separate environments. When you edit anagent, you are editing the draft agent. At any point, you can save the draftagent 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 environmentsguide (https://cloud.google.com/dialogflow/docs/agents-versions).

func (GoogleCloudDialogflowV2beta1Version)MarshalJSONadded inv0.18.0

typeGoogleCloudDialogflowV2beta1VoiceSelectionParams

type GoogleCloudDialogflowV2beta1VoiceSelectionParams 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.// For the list of available voices, please refer to Supported voices and// languages (https://cloud.google.com/text-to-speech/docs/voices).Namestring `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.SsmlGenderstring `json:"ssmlGender,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1VoiceSelectionParams: Description of which voiceto use for speech synthesis.

func (GoogleCloudDialogflowV2beta1VoiceSelectionParams)MarshalJSON

typeGoogleCloudDialogflowV2beta1WebhookRequest

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`.ResponseIdstring `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/`,Sessionstring `json:"session,omitempty"`// ForceSendFields is a list of field names (e.g. "AlternativeQueryResults") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1WebhookRequest: The request message for awebhook call.

func (GoogleCloudDialogflowV2beta1WebhookRequest)MarshalJSON

typeGoogleCloudDialogflowV2beta1WebhookResponse

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.EndInteractionbool `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.FulfillmentTextstring `json:"fulfillmentText,omitempty"`// LiveAgentHandoff: Indicates that a live agent should be brought in to handle// the interaction with the user. In most cases, when you set this flag to// true, you would also want to set end_interaction to true as well. Default is// false.LiveAgentHandoffbool `json:"liveAgentHandoff,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/dialogflow-webhook-json)Payloadgoogleapi.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.Sourcestring `json:"source,omitempty"`// ForceSendFields is a list of field names (e.g. "EndInteraction") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV2beta1WebhookResponse: The response message for awebhook call. This response is validated by the Dialogflow server. Ifvalidation fails, an error will be returned in theQueryResult.diagnostic_info field. Setting JSON fields to an empty valuewith the wrong type is a common error. To avoid this error: - Use "" forempty strings - Use `{}` or `null` for empty objects - Use `[]` or `null`for empty arrays For more information, see the Protocol Buffers LanguageGuide (https://developers.google.com/protocol-buffers/docs/proto3#json).

func (GoogleCloudDialogflowV2beta1WebhookResponse)MarshalJSON

typeGoogleCloudDialogflowV3alpha1ConversationSignalsadded inv0.107.0

type GoogleCloudDialogflowV3alpha1ConversationSignals struct {// TurnSignals: Required. Turn signals for the current turn.TurnSignals *GoogleCloudDialogflowV3alpha1TurnSignals `json:"turnSignals,omitempty"`// ForceSendFields is a list of field names (e.g. "TurnSignals") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "TurnSignals") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV3alpha1ConversationSignals: This message is used tohold all the Conversation Signals data, which will be converted to JSON andexported to BigQuery.

func (GoogleCloudDialogflowV3alpha1ConversationSignals)MarshalJSONadded inv0.107.0

typeGoogleCloudDialogflowV3alpha1TurnSignalsadded inv0.107.0

type GoogleCloudDialogflowV3alpha1TurnSignals struct {// AgentEscalated: Whether agent responded with LiveAgentHandoff fulfillment.AgentEscalatedbool `json:"agentEscalated,omitempty"`// DtmfUsed: Whether user was using DTMF input.DtmfUsedbool `json:"dtmfUsed,omitempty"`// FailureReasons: Failure reasons of the turn.//// Possible values://   "FAILURE_REASON_UNSPECIFIED" - Failure reason is not assigned.//   "FAILED_INTENT" - Whether NLU failed to recognize user intent.//   "FAILED_WEBHOOK" - Whether webhook failed during the turn.FailureReasons []string `json:"failureReasons,omitempty"`// NoMatch: Whether NLU predicted NO_MATCH.NoMatchbool `json:"noMatch,omitempty"`// NoUserInput: Whether user provided no input.NoUserInputbool `json:"noUserInput,omitempty"`// ReachedEndPage: Whether turn resulted in End Session page.ReachedEndPagebool `json:"reachedEndPage,omitempty"`// SentimentMagnitude: Sentiment magnitude of the user utterance if sentiment// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.SentimentMagnitudefloat64 `json:"sentimentMagnitude,omitempty"`// SentimentScore: Sentiment score of the user utterance if sentiment// (https://cloud.google.com/dialogflow/cx/docs/concept/sentiment) was enabled.SentimentScorefloat64 `json:"sentimentScore,omitempty"`// TriggeredAbandonmentEvent: Whether agent has triggered the event// corresponding to user abandoning the conversation.TriggeredAbandonmentEventbool `json:"triggeredAbandonmentEvent,omitempty"`// UserEscalated: Whether user was specifically asking for a live agent.UserEscalatedbool `json:"userEscalated,omitempty"`// WebhookStatuses: Human-readable statuses of the webhooks triggered during// this turn.WebhookStatuses []string `json:"webhookStatuses,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentEscalated") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentEscalated") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudDialogflowV3alpha1TurnSignals: Collection of all signals thatwere extracted for a single turn of the conversation.

func (GoogleCloudDialogflowV3alpha1TurnSignals)MarshalJSONadded inv0.107.0

func (*GoogleCloudDialogflowV3alpha1TurnSignals)UnmarshalJSONadded inv0.123.0

func (s *GoogleCloudDialogflowV3alpha1TurnSignals) UnmarshalJSON(data []byte)error

typeGoogleCloudLocationListLocationsResponseadded inv0.53.0

type GoogleCloudLocationListLocationsResponse struct {// Locations: A list of locations that matches the specified filter in the// request.Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"`// NextPageToken: The standard List next-page token.NextPageTokenstring `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. "Locations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Locations") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudLocationListLocationsResponse: The response message forLocations.ListLocations.

func (GoogleCloudLocationListLocationsResponse)MarshalJSONadded inv0.53.0

typeGoogleCloudLocationLocationadded inv0.53.0

type GoogleCloudLocationLocation struct {// DisplayName: The friendly name for this location, typically a nearby city// name. For example, "Tokyo".DisplayNamestring `json:"displayName,omitempty"`// Labels: Cross-service attributes for the location. For example// {"cloud.googleapis.com/region": "us-east1"}Labels map[string]string `json:"labels,omitempty"`// LocationId: The canonical id for this location. For example: "us-east1".LocationIdstring `json:"locationId,omitempty"`// Metadata: Service-specific metadata. For example the available capacity at// the given location.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: Resource name for the location, which may vary between// implementations. For example:// "projects/example-project/locations/us-east1"Namestring `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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleCloudLocationLocation: A resource that represents a Google Cloudlocation.

func (GoogleCloudLocationLocation)MarshalJSONadded inv0.53.0

func (sGoogleCloudLocationLocation) MarshalJSON() ([]byte,error)

typeGoogleLongrunningListOperationsResponseadded inv0.8.0

type GoogleLongrunningListOperationsResponse struct {// NextPageToken: The standard List next-page token.NextPageTokenstring `json:"nextPageToken,omitempty"`// Operations: A list of operations that matches the specified filter in the// request.Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`// Unreachable: Unordered list. Unreachable resources. Populated when the// request sets `ListOperationsRequest.return_partial_success` and reads across// collections e.g. when attempting to list all resources across all supported// locations.Unreachable []string `json:"unreachable,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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleLongrunningListOperationsResponse: The response message forOperations.ListOperations.

func (GoogleLongrunningListOperationsResponse)MarshalJSONadded inv0.8.0

typeGoogleLongrunningOperation

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.Donebool `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.Metadatagoogleapi.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}`.Namestring `json:"name,omitempty"`// Response: The normal, successful response of the operation. 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`.Responsegoogleapi.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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleLongrunningOperation: This resource represents a long-runningoperation that is the result of a network API call.

func (GoogleLongrunningOperation)MarshalJSON

func (sGoogleLongrunningOperation) MarshalJSON() ([]byte,error)

typeGoogleProtobufEmpty

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 avoiddefining duplicated empty messages in your APIs. A typical example is to useit as the request or the response type of an API method. For instance:service Foo { rpc Bar(google.protobuf.Empty) returns(google.protobuf.Empty); }

typeGoogleRpcStatus

type GoogleRpcStatus struct {// Code: The status code, which should be an enum value of google.rpc.Code.Codeint64 `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.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleRpcStatus: The `Status` type defines a logical error model that issuitable for different programming environments, including REST APIs and RPCAPIs. It is used by gRPC (https://github.com/grpc). Each `Status` messagecontains 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 theAPI Design Guide (https://cloud.google.com/apis/design/errors).

func (GoogleRpcStatus)MarshalJSON

func (sGoogleRpcStatus) MarshalJSON() ([]byte,error)

typeGoogleTypeLatLng

type GoogleTypeLatLng struct {// Latitude: The latitude in degrees. It must be in the range [-90.0, +90.0].Latitudefloat64 `json:"latitude,omitempty"`// Longitude: The longitude in degrees. It must be in the range [-180.0,// +180.0].Longitudefloat64 `json:"longitude,omitempty"`// ForceSendFields is a list of field names (e.g. "Latitude") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleTypeLatLng: An object that represents a latitude/longitude pair. Thisis expressed as a pair of doubles to represent degrees latitude and degreeslongitude. Unless specified otherwise, this object must conform to the WGS84standard. Values must be within normalized ranges.

func (GoogleTypeLatLng)MarshalJSON

func (sGoogleTypeLatLng) MarshalJSON() ([]byte,error)

func (*GoogleTypeLatLng)UnmarshalJSON

func (s *GoogleTypeLatLng) UnmarshalJSON(data []byte)error

typeProjectsAgentEntityTypesBatchDeleteCall

type ProjectsAgentEntityTypesBatchDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEntityTypesBatchDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEntityTypesBatchDeleteCall)Do

Do executes the "dialogflow.projects.agent.entityTypes.batchDelete" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEntityTypesBatchDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEntityTypesBatchDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentEntityTypesBatchUpdateCall

type ProjectsAgentEntityTypesBatchUpdateCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEntityTypesBatchUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEntityTypesBatchUpdateCall)Do

Do executes the "dialogflow.projects.agent.entityTypes.batchUpdate" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEntityTypesBatchUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEntityTypesBatchUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentEntityTypesCreateCall

type ProjectsAgentEntityTypesCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEntityTypesCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEntityTypesCreateCall)Do

Do executes the "dialogflow.projects.agent.entityTypes.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEntityTypesCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEntityTypesCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentEntityTypesCreateCall)LanguageCode

LanguageCode sets the optional parameter "languageCode": The language usedto access language-specific data. If not specified, the agent's defaultlanguage is used. For more information, see Multilingual intent and entitydata(https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).

typeProjectsAgentEntityTypesDeleteCall

type ProjectsAgentEntityTypesDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEntityTypesDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEntityTypesDeleteCall)Do

Do executes the "dialogflow.projects.agent.entityTypes.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsAgentEntityTypesDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEntityTypesDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentEntityTypesEntitiesBatchCreateCall

type ProjectsAgentEntityTypesEntitiesBatchCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEntityTypesEntitiesBatchCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEntityTypesEntitiesBatchCreateCall)Do

Do executes the "dialogflow.projects.agent.entityTypes.entities.batchCreate" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEntityTypesEntitiesBatchCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEntityTypesEntitiesBatchCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentEntityTypesEntitiesBatchDeleteCall

type ProjectsAgentEntityTypesEntitiesBatchDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEntityTypesEntitiesBatchDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEntityTypesEntitiesBatchDeleteCall)Do

Do executes the "dialogflow.projects.agent.entityTypes.entities.batchDelete" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEntityTypesEntitiesBatchDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEntityTypesEntitiesBatchDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentEntityTypesEntitiesBatchUpdateCall

type ProjectsAgentEntityTypesEntitiesBatchUpdateCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEntityTypesEntitiesBatchUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEntityTypesEntitiesBatchUpdateCall)Do

Do executes the "dialogflow.projects.agent.entityTypes.entities.batchUpdate" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEntityTypesEntitiesBatchUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEntityTypesEntitiesBatchUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentEntityTypesEntitiesService

type ProjectsAgentEntityTypesEntitiesService struct {// contains filtered or unexported fields}

func (*ProjectsAgentEntityTypesEntitiesService)BatchCreate

BatchCreate: Creates multiple new entities in the specified entity type.This method is a long-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)Note: You should always train an agent prior to sending it queries. See thetraining documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The name of the entity type to create entities in. Supportedformats: - `projects//agent/entityTypes/` -`projects//locations//agent/entityTypes/`.

func (*ProjectsAgentEntityTypesEntitiesService)BatchDelete

BatchDelete: Deletes entities in the specified entity type. This method is along-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)Note: You should always train an agent prior to sending it queries. See thetraining documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The name of the entity type to delete entries for. Supportedformats: - `projects//agent/entityTypes/` -`projects//locations//agent/entityTypes/`.

func (*ProjectsAgentEntityTypesEntitiesService)BatchUpdate

BatchUpdate: Updates or creates multiple entities in the specified entitytype. This method does not affect entities in the entity type that aren'texplicitly specified in the request. Note: You should always train an agentprior to sending it queries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training). This method is along-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

  • parent: The name of the entity type to update or create entities in.Supported formats: - `projects//agent/entityTypes/` -`projects//locations//agent/entityTypes/`.

typeProjectsAgentEntityTypesGetCall

type ProjectsAgentEntityTypesGetCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEntityTypesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEntityTypesGetCall)Do

Do executes the "dialogflow.projects.agent.entityTypes.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEntityTypesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEntityTypesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentEntityTypesGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsAgentEntityTypesGetCall)LanguageCode

LanguageCode sets the optional parameter "languageCode": The language usedto access language-specific data. If not specified, the agent's defaultlanguage is used. For more information, see Multilingual intent and entitydata(https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).

typeProjectsAgentEntityTypesListCall

type ProjectsAgentEntityTypesListCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEntityTypesListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEntityTypesListCall)Do

Do executes the "dialogflow.projects.agent.entityTypes.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListEntityTypesResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEntityTypesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEntityTypesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentEntityTypesListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsAgentEntityTypesListCall)LanguageCode

LanguageCode sets the optional parameter "languageCode": The language usedto access language-specific data. If not specified, the agent's defaultlanguage is used. For more information, see Multilingual intent and entitydata(https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).

func (*ProjectsAgentEntityTypesListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsAgentEntityTypesListCall)PageToken

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsAgentEntityTypesListCall)Pages

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.

typeProjectsAgentEntityTypesPatchCall

type ProjectsAgentEntityTypesPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEntityTypesPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEntityTypesPatchCall)Do

Do executes the "dialogflow.projects.agent.entityTypes.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEntityTypesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEntityTypesPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentEntityTypesPatchCall)LanguageCode

LanguageCode sets the optional parameter "languageCode": The language usedto access language-specific data. If not specified, the agent's defaultlanguage is used. For more information, see Multilingual intent and entitydata(https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).

func (*ProjectsAgentEntityTypesPatchCall)UpdateMask

UpdateMask sets the optional parameter "updateMask": The mask to controlwhich fields get updated.

typeProjectsAgentEntityTypesService

type ProjectsAgentEntityTypesService struct {Entities *ProjectsAgentEntityTypesEntitiesService// contains filtered or unexported fields}

funcNewProjectsAgentEntityTypesService

func NewProjectsAgentEntityTypesService(s *Service) *ProjectsAgentEntityTypesService

func (*ProjectsAgentEntityTypesService)BatchDelete

func (r *ProjectsAgentEntityTypesService) BatchDelete(parentstring, googleclouddialogflowv2beta1batchdeleteentitytypesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest) *ProjectsAgentEntityTypesBatchDeleteCall

BatchDelete: Deletes entity types in the specified agent. This method is along-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)Note: You should always train an agent prior to sending it queries. See thetraining documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The name of the agent to delete all entities types for. Supportedformats: - `projects//agent`, - `projects//locations//agent`.

func (*ProjectsAgentEntityTypesService)BatchUpdate

func (r *ProjectsAgentEntityTypesService) BatchUpdate(parentstring, googleclouddialogflowv2beta1batchupdateentitytypesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest) *ProjectsAgentEntityTypesBatchUpdateCall

BatchUpdate: Updates/Creates multiple entity types in the specified agent.This method is a long-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: BatchUpdateEntityTypesResponse Note: You should always trainan agent prior to sending it queries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The name of the agent to update or create entity types in.Supported formats: - `projects//agent` - `projects//locations//agent`.

func (*ProjectsAgentEntityTypesService)Create

Create: Creates an entity type in the specified agent. Note: You shouldalways train an agent prior to sending it queries. See the trainingdocumentation (https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The agent to create a entity type for. Supported formats: -`projects//agent` - `projects//locations//agent`.

func (*ProjectsAgentEntityTypesService)Delete

Delete: Deletes the specified entity type. Note: You should always train anagent prior to sending it queries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • name: The name of the entity type to delete. Supported formats: -`projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`.

func (*ProjectsAgentEntityTypesService)Get

Get: Retrieves the specified entity type.

  • name: The name of the entity type. Supported formats: -`projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`.

func (*ProjectsAgentEntityTypesService)List

List: Returns the list of all entity types in the specified agent.

  • parent: The agent to list all entity types from. Supported formats: -`projects//agent` - `projects//locations//agent`.

func (*ProjectsAgentEntityTypesService)Patch

Patch: Updates the specified entity type. Note: You should always train anagent prior to sending it queries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • name: The unique identifier of the entity type. Required forEntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypesmethods. Supported formats: - `projects//agent/entityTypes/` -`projects//locations//agent/entityTypes/`.

typeProjectsAgentEnvironmentsCreateCalladded inv0.18.0

type ProjectsAgentEnvironmentsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsCreateCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsCreateCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.agent.environments.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEnvironmentsCreateCall)EnvironmentIdadded inv0.18.0

EnvironmentId sets the optional parameter "environmentId": Required. Theunique id of the new environment.

func (*ProjectsAgentEnvironmentsCreateCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsCreateCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentEnvironmentsDeleteCalladded inv0.18.0

type ProjectsAgentEnvironmentsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsDeleteCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsDeleteCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.agent.environments.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsAgentEnvironmentsDeleteCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsDeleteCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentEnvironmentsGetCalladded inv0.18.0

type ProjectsAgentEnvironmentsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsGetCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsGetCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.agent.environments.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEnvironmentsGetCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsGetCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentEnvironmentsGetCall)IfNoneMatchadded inv0.18.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsAgentEnvironmentsGetHistoryCalladded inv0.18.0

type ProjectsAgentEnvironmentsGetHistoryCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsGetHistoryCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsGetHistoryCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.agent.environments.getHistory" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1EnvironmentHistory.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEnvironmentsGetHistoryCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsGetHistoryCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentEnvironmentsGetHistoryCall)IfNoneMatchadded inv0.18.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsAgentEnvironmentsGetHistoryCall)PageSizeadded inv0.18.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsAgentEnvironmentsGetHistoryCall)PageTokenadded inv0.18.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsAgentEnvironmentsGetHistoryCall)Pagesadded inv0.18.0

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.

typeProjectsAgentEnvironmentsIntentsListCalladded inv0.41.0

type ProjectsAgentEnvironmentsIntentsListCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsIntentsListCall)Contextadded inv0.41.0

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsIntentsListCall)Doadded inv0.41.0

Do executes the "dialogflow.projects.agent.environments.intents.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListIntentsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEnvironmentsIntentsListCall)Fieldsadded inv0.41.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsIntentsListCall)Headeradded inv0.41.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentEnvironmentsIntentsListCall)IfNoneMatchadded inv0.41.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsAgentEnvironmentsIntentsListCall)IntentViewadded inv0.41.0

IntentView sets the optional parameter "intentView": The resource view toapply 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 (*ProjectsAgentEnvironmentsIntentsListCall)LanguageCodeadded inv0.41.0

LanguageCode sets the optional parameter "languageCode": The language usedto access language-specific data. If not specified, the agent's defaultlanguage is used. For more information, see Multilingual intent and entitydata(https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).

func (*ProjectsAgentEnvironmentsIntentsListCall)PageSizeadded inv0.41.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsAgentEnvironmentsIntentsListCall)PageTokenadded inv0.41.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsAgentEnvironmentsIntentsListCall)Pagesadded inv0.41.0

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.

typeProjectsAgentEnvironmentsIntentsServiceadded inv0.41.0

type ProjectsAgentEnvironmentsIntentsService struct {// contains filtered or unexported fields}

funcNewProjectsAgentEnvironmentsIntentsServiceadded inv0.41.0

func NewProjectsAgentEnvironmentsIntentsService(s *Service) *ProjectsAgentEnvironmentsIntentsService

func (*ProjectsAgentEnvironmentsIntentsService)Listadded inv0.41.0

List: Returns the list of all intents in the specified agent.

  • parent: The agent to list all intents from. Format: `projects//agent` or`projects//locations//agent`. Alternatively, you can specify theenvironment to list intents for. Format: `projects//agent/environments/`or `projects//locations//agent/environments/`. Note: training phrases ofthe intents will not be returned for non-draft environment.

typeProjectsAgentEnvironmentsListCalladded inv0.18.0

type ProjectsAgentEnvironmentsListCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsListCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsListCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.agent.environments.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListEnvironmentsResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEnvironmentsListCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsListCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentEnvironmentsListCall)IfNoneMatchadded inv0.18.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsAgentEnvironmentsListCall)PageSizeadded inv0.18.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsAgentEnvironmentsListCall)PageTokenadded inv0.18.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsAgentEnvironmentsListCall)Pagesadded inv0.18.0

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.

typeProjectsAgentEnvironmentsPatchCalladded inv0.18.0

type ProjectsAgentEnvironmentsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsPatchCall)AllowLoadToDraftAndDiscardChangesadded inv0.46.0

func (c *ProjectsAgentEnvironmentsPatchCall) AllowLoadToDraftAndDiscardChanges(allowLoadToDraftAndDiscardChangesbool) *ProjectsAgentEnvironmentsPatchCall

AllowLoadToDraftAndDiscardChanges sets the optional parameter"allowLoadToDraftAndDiscardChanges": This field is used to preventaccidental overwrite of the draft environment, which is an operation thatcannot be undone. To confirm that the caller desires this overwrite, thisfield must be explicitly set to true when updating the draft environment(environment ID = `-`).

func (*ProjectsAgentEnvironmentsPatchCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsPatchCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.agent.environments.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEnvironmentsPatchCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsPatchCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentEnvironmentsPatchCall)UpdateMaskadded inv0.18.0

UpdateMask sets the optional parameter "updateMask": Required. The mask tocontrol which fields get updated.

typeProjectsAgentEnvironmentsService

type ProjectsAgentEnvironmentsService struct {Intents *ProjectsAgentEnvironmentsIntentsServiceUsers *ProjectsAgentEnvironmentsUsersService// contains filtered or unexported fields}

funcNewProjectsAgentEnvironmentsService

func NewProjectsAgentEnvironmentsService(s *Service) *ProjectsAgentEnvironmentsService

func (*ProjectsAgentEnvironmentsService)Createadded inv0.18.0

Create: Creates an agent environment.

  • parent: The agent to create an environment for. Supported formats: -`projects//agent` - `projects//locations//agent`.

func (*ProjectsAgentEnvironmentsService)Deleteadded inv0.18.0

Delete: Deletes the specified agent environment.

  • name: The name of the environment to delete. / Format: -`projects//agent/environments/` -`projects//locations//agent/environments/`.

func (*ProjectsAgentEnvironmentsService)Getadded inv0.18.0

Get: Retrieves the specified agent environment.

  • name: The name of the environment. Supported formats: -`projects//agent/environments/` -`projects//locations//agent/environments/`.

func (*ProjectsAgentEnvironmentsService)GetHistoryadded inv0.18.0

GetHistory: Gets the history of the specified environment.

  • parent: The name of the environment to retrieve history for. Supportedformats: - `projects//agent/environments/` -`projects//locations//agent/environments/`.

func (*ProjectsAgentEnvironmentsService)Listadded inv0.18.0

List: Returns the list of all non-draft environments of the specified agent.

  • parent: The agent to list all environments from. Format: -`projects//agent` - `projects//locations//agent`.

func (*ProjectsAgentEnvironmentsService)Patchadded inv0.18.0

Patch: Updates the specified agent environment. This method allows you todeploy new agent versions into the environment. When an environment ispointed to a new agent version by setting `environment.agent_version`, theenvironment is temporarily set to the `LOADING` state. During that time, theenvironment keeps on serving the previous version of the agent. After thenew agent version is done loading, the environment is set back to the`RUNNING` state. You can use "-" as Environment ID in environment name toupdate version in "draft" environment. WARNING: this will negate all recentchanges to draft and can't be undone. You may want to save the draft to aversion before calling this function.

  • name: Output only. The unique identifier of this agent environment.Supported formats: - `projects//agent/environments/` -`projects//locations//agent/environments/`.

typeProjectsAgentEnvironmentsUsersService

type ProjectsAgentEnvironmentsUsersService struct {Sessions *ProjectsAgentEnvironmentsUsersSessionsService// contains filtered or unexported fields}

typeProjectsAgentEnvironmentsUsersSessionsContextsCreateCall

type ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall)Do

Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall

type ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall)Do

Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentEnvironmentsUsersSessionsContextsGetCall

type ProjectsAgentEnvironmentsUsersSessionsContextsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsUsersSessionsContextsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsGetCall)Do

Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsAgentEnvironmentsUsersSessionsContextsListCall

type ProjectsAgentEnvironmentsUsersSessionsContextsListCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsUsersSessionsContextsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsListCall)Do

Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListContextsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsListCall)PageToken

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsListCall)Pages

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.

typeProjectsAgentEnvironmentsUsersSessionsContextsPatchCall

type ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall)Do

Do executes the "dialogflow.projects.agent.environments.users.sessions.contexts.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall)UpdateMask

UpdateMask sets the optional parameter "updateMask": The mask to controlwhich fields get updated.

typeProjectsAgentEnvironmentsUsersSessionsContextsService

type ProjectsAgentEnvironmentsUsersSessionsContextsService struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsUsersSessionsContextsService)Create

Create: Creates a context. If the specified context already exists,overrides the context.

  • parent: The session to create a context for. Supported formats: -`projects//agent/sessions/, - `projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsService)Delete

Delete: Deletes the specified context.

  • name: The name of the context to delete. Supported formats: -`projects//agent/sessions//contexts/`, -`projects//locations//agent/sessions//contexts/`, -`projects//agent/environments//users//sessions//contexts/`, -`projects//locations//agent/environments//users//sessions//contexts/`, 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.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsService)Get

Get: Retrieves the specified context.

  • name: The name 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/`, 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.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsService)List

List: Returns the list of all contexts in the specified session.

  • parent: The session to list all contexts from. Supported formats: -`projects//agent/sessions/, - `projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsAgentEnvironmentsUsersSessionsContextsService)Patch

Patch: Updates the specified context.

  • name: 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 charactersin `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` isnot specified, we assume default '-' user. The following context names arereserved for internal use by Dialogflow. You should not use these contextsor create contexts with these names: * `__system_counters__` *`*_id_dialog_context` * `*_dialog_params_size`.

typeProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall

type ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall)Do

Do executes the "dialogflow.projects.agent.environments.users.sessions.deleteContexts" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentEnvironmentsUsersSessionsDetectIntentCall

type ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall)Do

Do executes the "dialogflow.projects.agent.environments.users.sessions.detectIntent" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1DetectIntentResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall

type ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall)Do

Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall

type ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall)Do

Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall

type ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall)Do

Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall

type ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall)Do

Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall)PageToken

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall)Pages

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.

typeProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall

type ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall)Do

Do executes the "dialogflow.projects.agent.environments.users.sessions.entityTypes.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall)UpdateMask

UpdateMask sets the optional parameter "updateMask": The mask to controlwhich fields get updated.

typeProjectsAgentEnvironmentsUsersSessionsEntityTypesService

type ProjectsAgentEnvironmentsUsersSessionsEntityTypesService struct {// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesService)Create

Create: Creates a session entity type. If the specified session entity typealready exists, overrides the session entity type. This method doesn't workwith Google Assistant integration. Contact Dialogflow support if you need touse session entities with Google Assistant integration.

  • parent: The session to create a session entity type for. Supportedformats: - `projects//agent/sessions/, -`projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesService)Delete

Delete: Deletes the specified session entity type. This method doesn't workwith Google Assistant integration. Contact Dialogflow support if you need touse session entities with Google Assistant integration.

  • name: The name of the entity type to delete. 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.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesService)Get

Get: Retrieves the specified session entity type. This method doesn't workwith Google Assistant integration. Contact Dialogflow support if you need touse session entities with Google Assistant integration.

  • name: The name of the 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.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesService)List

List: Returns the list of all session entity types in the specified session.This method doesn't work with Google Assistant integration. ContactDialogflow support if you need to use session entities with Google Assistantintegration.

  • parent: The session to list all session entity types from. Supportedformats: - `projects//agent/sessions/, -`projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsAgentEnvironmentsUsersSessionsEntityTypesService)Patch

Patch: Updates the specified session entity type. This method doesn't workwith Google Assistant integration. Contact Dialogflow support if you need touse session entities with Google Assistant integration.

  • name: The unique identifier of this session entity type. Supportedformats: - `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 thedisplay name of an existing entity type in the same agent that will beoverridden or supplemented.

typeProjectsAgentEnvironmentsUsersSessionsService

type ProjectsAgentEnvironmentsUsersSessionsService struct {Contexts *ProjectsAgentEnvironmentsUsersSessionsContextsServiceEntityTypes *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService// contains filtered or unexported fields}

func (*ProjectsAgentEnvironmentsUsersSessionsService)DeleteContexts

DeleteContexts: Deletes all active contexts in the specified session.

  • parent: The name of the session to delete all contexts from. Supportedformats: - `projects//agent/sessions/, -`projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsAgentEnvironmentsUsersSessionsService)DetectIntent

DetectIntent: Processes a natural language query and returns structured,actionable data as a result. This method is not idempotent, because it maycause contexts and session entity types to be updated, which in turn mightaffect results of future queries. If you might use Agent Assist(https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now orin the future, consider using AnalyzeContent instead of `DetectIntent`.`AnalyzeContent` has additional functionality for Agent Assist and otherCCAI products. Note: Always use agent versions for production traffic. SeeVersions and environments(https://cloud.google.com/dialogflow/es/docs/agents-versions).

- session: The name of the session this query is sent to. Supported formats:

  • `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment (`Environment ID`might be referred to as environment name at some places). If `User ID` isnot specified, we are using "-". It's up to the API caller to choose anappropriate `Session ID` and `User Id`. They can be a random number orsome type of user and session identifiers (preferably hashed). The lengthof the `Session ID` and `User ID` must not exceed 36 characters. For moreinformation, see the API interactions guide(https://cloud.google.com/dialogflow/docs/api-overview). Note: Always useagent versions for production traffic. See Versions and environments(https://cloud.google.com/dialogflow/es/docs/agents-versions).

typeProjectsAgentExportCall

type ProjectsAgentExportCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentExportCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentExportCall)Do

Do executes the "dialogflow.projects.agent.export" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentExportCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentExportCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentGetFulfillmentCalladded inv0.18.0

type ProjectsAgentGetFulfillmentCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentGetFulfillmentCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentGetFulfillmentCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.agent.getFulfillment" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Fulfillment.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentGetFulfillmentCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentGetFulfillmentCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentGetFulfillmentCall)IfNoneMatchadded inv0.18.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsAgentGetValidationResultCalladded inv0.11.0

type ProjectsAgentGetValidationResultCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentGetValidationResultCall)Contextadded inv0.11.0

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentGetValidationResultCall)Doadded inv0.11.0

Do executes the "dialogflow.projects.agent.getValidationResult" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ValidationResult.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentGetValidationResultCall)Fieldsadded inv0.11.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentGetValidationResultCall)Headeradded inv0.11.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentGetValidationResultCall)IfNoneMatchadded inv0.11.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsAgentGetValidationResultCall)LanguageCodeadded inv0.11.0

LanguageCode sets the optional parameter "languageCode": The language forwhich you want a validation result. If not specified, the agent's defaultlanguage 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.

typeProjectsAgentImportCall

type ProjectsAgentImportCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentImportCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentImportCall)Do

Do executes the "dialogflow.projects.agent.import" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentImportCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentImportCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentIntentsBatchDeleteCall

type ProjectsAgentIntentsBatchDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentIntentsBatchDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentIntentsBatchDeleteCall)Do

Do executes the "dialogflow.projects.agent.intents.batchDelete" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentIntentsBatchDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentIntentsBatchDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentIntentsBatchUpdateCall

type ProjectsAgentIntentsBatchUpdateCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentIntentsBatchUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentIntentsBatchUpdateCall)Do

Do executes the "dialogflow.projects.agent.intents.batchUpdate" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentIntentsBatchUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentIntentsBatchUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentIntentsCreateCall

type ProjectsAgentIntentsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentIntentsCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentIntentsCreateCall)Do

Do executes the "dialogflow.projects.agent.intents.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentIntentsCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentIntentsCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentIntentsCreateCall)IntentView

IntentView sets the optional parameter "intentView": The resource view toapply 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

LanguageCode sets the optional parameter "languageCode": The language usedto access language-specific data. If not specified, the agent's defaultlanguage is used. For more information, see Multilingual intent and entitydata(https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).

typeProjectsAgentIntentsDeleteCall

type ProjectsAgentIntentsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentIntentsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentIntentsDeleteCall)Do

Do executes the "dialogflow.projects.agent.intents.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsAgentIntentsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentIntentsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentIntentsGetCall

type ProjectsAgentIntentsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentIntentsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentIntentsGetCall)Do

Do executes the "dialogflow.projects.agent.intents.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentIntentsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentIntentsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentIntentsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsAgentIntentsGetCall)IntentView

IntentView sets the optional parameter "intentView": The resource view toapply 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

LanguageCode sets the optional parameter "languageCode": The language usedto access language-specific data. If not specified, the agent's defaultlanguage is used. For more information, see Multilingual intent and entitydata(https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).

typeProjectsAgentIntentsListCall

type ProjectsAgentIntentsListCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentIntentsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentIntentsListCall)Do

Do executes the "dialogflow.projects.agent.intents.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListIntentsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentIntentsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentIntentsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentIntentsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsAgentIntentsListCall)IntentView

IntentView sets the optional parameter "intentView": The resource view toapply 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

LanguageCode sets the optional parameter "languageCode": The language usedto access language-specific data. If not specified, the agent's defaultlanguage is used. For more information, see Multilingual intent and entitydata(https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).

func (*ProjectsAgentIntentsListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsAgentIntentsListCall)PageToken

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsAgentIntentsListCall)Pages

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.

typeProjectsAgentIntentsPatchCall

type ProjectsAgentIntentsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentIntentsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentIntentsPatchCall)Do

Do executes the "dialogflow.projects.agent.intents.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentIntentsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentIntentsPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentIntentsPatchCall)IntentView

IntentView sets the optional parameter "intentView": The resource view toapply 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

LanguageCode sets the optional parameter "languageCode": The language usedto access language-specific data. If not specified, the agent's defaultlanguage is used. For more information, see Multilingual intent and entitydata(https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).

func (*ProjectsAgentIntentsPatchCall)UpdateMask

UpdateMask sets the optional parameter "updateMask": The mask to controlwhich fields get updated.

typeProjectsAgentIntentsService

type ProjectsAgentIntentsService struct {// contains filtered or unexported fields}

funcNewProjectsAgentIntentsService

func NewProjectsAgentIntentsService(s *Service) *ProjectsAgentIntentsService

func (*ProjectsAgentIntentsService)BatchDelete

func (r *ProjectsAgentIntentsService) BatchDelete(parentstring, googleclouddialogflowv2beta1batchdeleteintentsrequest *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest) *ProjectsAgentIntentsBatchDeleteCall

BatchDelete: Deletes intents in the specified agent. This method is along-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)Note: You should always train an agent prior to sending it queries. See thetraining documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The name of the agent to delete all entities types for. Supportedformats: - `projects//agent` - `projects//locations//agent`.

func (*ProjectsAgentIntentsService)BatchUpdate

func (r *ProjectsAgentIntentsService) BatchUpdate(parentstring, googleclouddialogflowv2beta1batchupdateintentsrequest *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest) *ProjectsAgentIntentsBatchUpdateCall

BatchUpdate: Updates/Creates multiple intents in the specified agent. Thismethod is a long-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: BatchUpdateIntentsResponse Note: You should always train anagent prior to sending it queries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The name of the agent to update or create intents in. Supportedformats: - `projects//agent` - `projects//locations//agent`.

func (*ProjectsAgentIntentsService)Create

func (r *ProjectsAgentIntentsService) Create(parentstring, googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent) *ProjectsAgentIntentsCreateCall

Create: Creates an intent in the specified agent. Note: You should alwaystrain an agent prior to sending it queries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The agent to create a intent for. Supported formats: -`projects//agent` - `projects//locations//agent`.

func (*ProjectsAgentIntentsService)Delete

Delete: Deletes the specified intent and its direct or indirect followupintents. Note: You should always train an agent prior to sending it queries.See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • name: The name of the intent to delete. If this intent has direct orindirect followup intents, we also delete them. Supported formats: -`projects//agent/intents/` - `projects//locations//agent/intents/`.

func (*ProjectsAgentIntentsService)Get

Get: Retrieves the specified intent.

  • name: The name of the intent. Supported formats: -`projects//agent/intents/` - `projects//locations//agent/intents/`.

func (*ProjectsAgentIntentsService)List

List: Returns the list of all intents in the specified agent.

  • parent: The agent to list all intents from. Format: `projects//agent` or`projects//locations//agent`. Alternatively, you can specify theenvironment to list intents for. Format: `projects//agent/environments/`or `projects//locations//agent/environments/`. Note: training phrases ofthe intents will not be returned for non-draft environment.

func (*ProjectsAgentIntentsService)Patch

func (r *ProjectsAgentIntentsService) Patch(nameidstring, googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent) *ProjectsAgentIntentsPatchCall

Patch: Updates the specified intent. Note: You should always train an agentprior to sending it queries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • name: Optional. The unique identifier of this intent. Required forIntents.UpdateIntent and Intents.BatchUpdateIntents methods. Supportedformats: - `projects//agent/intents/` -`projects//locations//agent/intents/`.

typeProjectsAgentKnowledgeBasesCreateCall

type ProjectsAgentKnowledgeBasesCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentKnowledgeBasesCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentKnowledgeBasesCreateCall)Do

Do executes the "dialogflow.projects.agent.knowledgeBases.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentKnowledgeBasesCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentKnowledgeBasesCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentKnowledgeBasesDeleteCall

type ProjectsAgentKnowledgeBasesDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentKnowledgeBasesDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentKnowledgeBasesDeleteCall)Do

Do executes the "dialogflow.projects.agent.knowledgeBases.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsAgentKnowledgeBasesDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentKnowledgeBasesDeleteCall)Force

Force sets the optional parameter "force": Force deletes the knowledge base.When set to true, any documents in the knowledge base are also deleted.

func (*ProjectsAgentKnowledgeBasesDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentKnowledgeBasesDocumentsCreateCall

type ProjectsAgentKnowledgeBasesDocumentsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentKnowledgeBasesDocumentsCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentKnowledgeBasesDocumentsCreateCall)Do

Do executes the "dialogflow.projects.agent.knowledgeBases.documents.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentKnowledgeBasesDocumentsCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentKnowledgeBasesDocumentsCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentKnowledgeBasesDocumentsCreateCall)ImportGcsCustomMetadataadded inv0.36.0

ImportGcsCustomMetadata sets the optional parameter"importGcsCustomMetadata": Whether to import custom metadata from GoogleCloud Storage. Only valid when the document source is Google Cloud StorageURI.

typeProjectsAgentKnowledgeBasesDocumentsDeleteCall

type ProjectsAgentKnowledgeBasesDocumentsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentKnowledgeBasesDocumentsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentKnowledgeBasesDocumentsDeleteCall)Do

Do executes the "dialogflow.projects.agent.knowledgeBases.documents.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentKnowledgeBasesDocumentsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentKnowledgeBasesDocumentsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentKnowledgeBasesDocumentsGetCall

type ProjectsAgentKnowledgeBasesDocumentsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentKnowledgeBasesDocumentsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentKnowledgeBasesDocumentsGetCall)Do

Do executes the "dialogflow.projects.agent.knowledgeBases.documents.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Document.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentKnowledgeBasesDocumentsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentKnowledgeBasesDocumentsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentKnowledgeBasesDocumentsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsAgentKnowledgeBasesDocumentsListCall

type ProjectsAgentKnowledgeBasesDocumentsListCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentKnowledgeBasesDocumentsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentKnowledgeBasesDocumentsListCall)Do

Do executes the "dialogflow.projects.agent.knowledgeBases.documents.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListDocumentsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentKnowledgeBasesDocumentsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentKnowledgeBasesDocumentsListCall)Filteradded inv0.33.0

Filter sets the optional parameter "filter": The filter expression used tofilter documents returned by the list method. The expression has thefollowing syntax: [AND ] ... The following fields and operators aresupported: * knowledge_types with has(:) operator * display_name with has(:)operator * state with equals(=) operator Examples: * "knowledge_types:FAQ"matches documents with FAQ knowledge type. * "display_name:customer" matchesdocuments whose display name contains "customer". * "state=ACTIVE" matchesdocuments with ACTIVE state. * "knowledge_types:FAQ AND state=ACTIVE"matches all active FAQ documents. For more information about filtering, seeAPI Filtering (https://aip.dev/160).

func (*ProjectsAgentKnowledgeBasesDocumentsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentKnowledgeBasesDocumentsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsAgentKnowledgeBasesDocumentsListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 10 and at most 100.

func (*ProjectsAgentKnowledgeBasesDocumentsListCall)PageToken

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsAgentKnowledgeBasesDocumentsListCall)Pages

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.

typeProjectsAgentKnowledgeBasesDocumentsPatchCall

type ProjectsAgentKnowledgeBasesDocumentsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentKnowledgeBasesDocumentsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentKnowledgeBasesDocumentsPatchCall)Do

Do executes the "dialogflow.projects.agent.knowledgeBases.documents.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentKnowledgeBasesDocumentsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentKnowledgeBasesDocumentsPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentKnowledgeBasesDocumentsPatchCall)UpdateMask

UpdateMask sets the optional parameter "updateMask": Not specified means`update all`. Currently, only `display_name` can be updated, anInvalidArgument will be returned for attempting to update other fields.

typeProjectsAgentKnowledgeBasesDocumentsReloadCall

type ProjectsAgentKnowledgeBasesDocumentsReloadCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentKnowledgeBasesDocumentsReloadCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentKnowledgeBasesDocumentsReloadCall)Do

Do executes the "dialogflow.projects.agent.knowledgeBases.documents.reload" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentKnowledgeBasesDocumentsReloadCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentKnowledgeBasesDocumentsReloadCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentKnowledgeBasesDocumentsService

type ProjectsAgentKnowledgeBasesDocumentsService struct {// contains filtered or unexported fields}

func (*ProjectsAgentKnowledgeBasesDocumentsService)Create

Create: Creates a new document. This method is a long-running operation(https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).The returned `Operation` type has the following method-specific fields: -`metadata`: KnowledgeOperationMetadata - `response`: Document Note: The`projects.agent.knowledgeBases.documents` resource is deprecated; only use`projects.knowledgeBases.documents`.

  • parent: The knowledge base to create a document for. Format:`projects//locations//knowledgeBases/`.

func (*ProjectsAgentKnowledgeBasesDocumentsService)Delete

Delete: Deletes the specified document. This method is a long-runningoperation(https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).The returned `Operation` type has the following method-specific fields: -`metadata`: KnowledgeOperationMetadata - `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;only use `projects.knowledgeBases.documents`.

  • name: The name of the document to delete. Format:`projects//locations//knowledgeBases//documents/`.

func (*ProjectsAgentKnowledgeBasesDocumentsService)Get

Get: Retrieves the specified document. Note: The`projects.agent.knowledgeBases.documents` resource is deprecated; only use`projects.knowledgeBases.documents`.

  • name: The name of the document to retrieve. Format`projects//locations//knowledgeBases//documents/`.

func (*ProjectsAgentKnowledgeBasesDocumentsService)List

List: Returns the list of all documents of the knowledge base. Note: The`projects.agent.knowledgeBases.documents` resource is deprecated; only use`projects.knowledgeBases.documents`.

  • parent: The knowledge base to list all documents for. Format:`projects//locations//knowledgeBases/`.

func (*ProjectsAgentKnowledgeBasesDocumentsService)Patch

Patch: Updates the specified document. This method is a long-runningoperation(https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).The returned `Operation` type has the following method-specific fields: -`metadata`: KnowledgeOperationMetadata - `response`: Document Note: The`projects.agent.knowledgeBases.documents` resource is deprecated; only use`projects.knowledgeBases.documents`.

  • name: Optional. The document resource name. The name must be empty whencreating a document. Format:`projects//locations//knowledgeBases//documents/`.

func (*ProjectsAgentKnowledgeBasesDocumentsService)Reload

Reload: Reloads the specified document from its specified source,content_uri or content. The previously loaded content of the document willbe deleted. Note: Even when the content of the document has not changed,there still may be side effects because of internal implementation changes.Note: If the document source is Google Cloud Storage URI, its metadata willbe replaced with the custom metadata from Google Cloud Storage if the`import_gcs_custom_metadata` field is set to true in the request. Thismethod is a long-running operation(https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).The returned `Operation` type has the following method-specific fields: -`metadata`: KnowledgeOperationMetadata - `response`: Document Note: The`projects.agent.knowledgeBases.documents` resource is deprecated; only use`projects.knowledgeBases.documents`.

  • name: The name of the document to reload. Format:`projects//locations//knowledgeBases//documents/`.

typeProjectsAgentKnowledgeBasesGetCall

type ProjectsAgentKnowledgeBasesGetCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentKnowledgeBasesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentKnowledgeBasesGetCall)Do

Do executes the "dialogflow.projects.agent.knowledgeBases.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentKnowledgeBasesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentKnowledgeBasesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentKnowledgeBasesGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsAgentKnowledgeBasesListCall

type ProjectsAgentKnowledgeBasesListCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentKnowledgeBasesListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentKnowledgeBasesListCall)Do

Do executes the "dialogflow.projects.agent.knowledgeBases.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse.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 becausehttp.StatusNotModified was returned.

func (*ProjectsAgentKnowledgeBasesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentKnowledgeBasesListCall)Filteradded inv0.33.0

Filter sets the optional parameter "filter": The filter expression used tofilter knowledge bases returned by the list method. The expression has thefollowing syntax: [AND ] ... The following fields and operators aresupported: * display_name with has(:) operator * language_code withequals(=) operator Examples: * 'language_code=en-us' matches knowledge baseswith en-us language code. * 'display_name:articles' matches knowledge baseswhose display name contains "articles". * 'display_name:"Best Articles"'matches knowledge bases whose display name contains "Best Articles". *'language_code=en-gb AND display_name=articles' matches all knowledge baseswhose display name contains "articles" and whose language code is "en-gb".Note: An empty filter string (i.e. "") is a no-op and will result in nofiltering. For more information about filtering, see API Filtering(https://aip.dev/160).

func (*ProjectsAgentKnowledgeBasesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentKnowledgeBasesListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsAgentKnowledgeBasesListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 10 and at most 100.

func (*ProjectsAgentKnowledgeBasesListCall)PageToken

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsAgentKnowledgeBasesListCall)Pages

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.

typeProjectsAgentKnowledgeBasesPatchCall

type ProjectsAgentKnowledgeBasesPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentKnowledgeBasesPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentKnowledgeBasesPatchCall)Do

Do executes the "dialogflow.projects.agent.knowledgeBases.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentKnowledgeBasesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentKnowledgeBasesPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentKnowledgeBasesPatchCall)UpdateMask

UpdateMask sets the optional parameter "updateMask": Not specified means`update all`. Currently, only `display_name` can be updated, anInvalidArgument will be returned for attempting to update other fields.

typeProjectsAgentKnowledgeBasesService

type ProjectsAgentKnowledgeBasesService struct {Documents *ProjectsAgentKnowledgeBasesDocumentsService// contains filtered or unexported fields}

func (*ProjectsAgentKnowledgeBasesService)Create

Create: Creates a knowledge base. Note: The `projects.agent.knowledgeBases`resource is deprecated; only use `projects.knowledgeBases`.

  • parent: The project to create a knowledge base for. Format:`projects//locations/`.

func (*ProjectsAgentKnowledgeBasesService)Delete

Delete: Deletes the specified knowledge base. Note: The`projects.agent.knowledgeBases` resource is deprecated; only use`projects.knowledgeBases`.

  • name: The name of the knowledge base to delete. Format:`projects//locations//knowledgeBases/`.

func (*ProjectsAgentKnowledgeBasesService)Get

Get: Retrieves the specified knowledge base. Note: The`projects.agent.knowledgeBases` resource is deprecated; only use`projects.knowledgeBases`.

  • name: The name of the knowledge base to retrieve. Format`projects//locations//knowledgeBases/`.

func (*ProjectsAgentKnowledgeBasesService)List

List: Returns the list of all knowledge bases of the specified agent. Note:The `projects.agent.knowledgeBases` resource is deprecated; only use`projects.knowledgeBases`.

  • parent: The project to list of knowledge bases for. Format:`projects//locations/`.

func (*ProjectsAgentKnowledgeBasesService)Patch

Patch: Updates the specified knowledge base. Note: The`projects.agent.knowledgeBases` resource is deprecated; only use`projects.knowledgeBases`.

  • name: The knowledge base resource name. The name must be empty whencreating a knowledge base. Format: `projects//locations//knowledgeBases/`.

typeProjectsAgentRestoreCall

type ProjectsAgentRestoreCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentRestoreCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentRestoreCall)Do

Do executes the "dialogflow.projects.agent.restore" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentRestoreCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentRestoreCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentSearchCall

type ProjectsAgentSearchCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentSearchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentSearchCall)Do

Do executes the "dialogflow.projects.agent.search" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SearchAgentsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentSearchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentSearchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentSearchCall)IfNoneMatch

func (c *ProjectsAgentSearchCall) IfNoneMatch(entityTagstring) *ProjectsAgentSearchCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsAgentSearchCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsAgentSearchCall)PageToken

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsAgentSearchCall)Pages

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.

typeProjectsAgentService

type ProjectsAgentService struct {EntityTypes *ProjectsAgentEntityTypesServiceEnvironments *ProjectsAgentEnvironmentsServiceIntents *ProjectsAgentIntentsServiceKnowledgeBases *ProjectsAgentKnowledgeBasesServiceSessions *ProjectsAgentSessionsServiceVersions *ProjectsAgentVersionsService// contains filtered or unexported fields}

funcNewProjectsAgentService

func NewProjectsAgentService(s *Service) *ProjectsAgentService

func (*ProjectsAgentService)Export

func (r *ProjectsAgentService) Export(parentstring, googleclouddialogflowv2beta1exportagentrequest *GoogleCloudDialogflowV2beta1ExportAgentRequest) *ProjectsAgentExportCall

Export: Exports the specified agent to a ZIP file. This method is along-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: ExportAgentResponse

  • parent: The project that the agent to export is associated with. Format:`projects/` or `projects//locations/`.

func (*ProjectsAgentService)GetFulfillmentadded inv0.18.0

GetFulfillment: Retrieves the fulfillment.

  • name: The name of the fulfillment. Supported formats: -`projects//agent/fulfillment` - `projects//locations//agent/fulfillment`.

func (*ProjectsAgentService)GetValidationResultadded inv0.11.0

GetValidationResult: Gets agent validation result. Agent validation isperformed during training time and is updated automatically when training iscompleted.

  • parent: The project that the agent is associated with. Format: `projects/`or `projects//locations/`.

func (*ProjectsAgentService)Import

func (r *ProjectsAgentService) Import(parentstring, googleclouddialogflowv2beta1importagentrequest *GoogleCloudDialogflowV2beta1ImportAgentRequest) *ProjectsAgentImportCall

Import: Imports the specified agent from a ZIP file. Uploads new intents andentity types without deleting the existing ones. Intents and entity typeswith the same name are replaced with the new versions fromImportAgentRequest. After the import, the imported draft agent will betrained automatically (unless disabled in agent settings). However, once theimport is done, training may not be completed yet. Please call TrainAgentand wait for the operation it returns in order to train explicitly. Thismethod is a long-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)The operation only tracks when importing is complete, not when it is donetraining. Note: You should always train an agent prior to sending itqueries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The project that the agent to import is associated with. Format:`projects/` or `projects//locations/`.

func (*ProjectsAgentService)Restore

func (r *ProjectsAgentService) Restore(parentstring, googleclouddialogflowv2beta1restoreagentrequest *GoogleCloudDialogflowV2beta1RestoreAgentRequest) *ProjectsAgentRestoreCall

Restore: Restores the specified agent from a ZIP file. Replaces the currentagent version with a new one. All the intents and entity types in the olderversion are deleted. After the restore, the restored draft agent will betrained automatically (unless disabled in agent settings). However, once therestore is done, training may not be completed yet. Please call TrainAgentand wait for the operation it returns in order to train explicitly. Thismethod is a long-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)The operation only tracks when restoring is complete, not when it is donetraining. Note: You should always train an agent prior to sending itqueries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The project that the agent to restore is associated with. Format:`projects/` or `projects//locations/`.

func (*ProjectsAgentService)Search

Search: Returns the list of agents. Since there is at most oneconversational agent per project, this method is useful primarily forlisting all agents across projects the caller has access to. One can achievethat with a wildcard project collection id "-". Refer to ListSub-Collections(https://cloud.google.com/apis/design/design_patterns#list_sub-collections).

  • parent: The project to list agents from. Format: `projects/` or`projects//locations/`.

func (*ProjectsAgentService)Train

func (r *ProjectsAgentService) Train(parentstring, googleclouddialogflowv2beta1trainagentrequest *GoogleCloudDialogflowV2beta1TrainAgentRequest) *ProjectsAgentTrainCall

Train: Trains the specified agent. This method is a long-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)Note: You should always train an agent prior to sending it queries. See thetraining documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The project that the agent to train is associated with. Format:`projects/` or `projects//locations/`.

func (*ProjectsAgentService)UpdateFulfillmentadded inv0.18.0

func (r *ProjectsAgentService) UpdateFulfillment(nameidstring, googleclouddialogflowv2beta1fulfillment *GoogleCloudDialogflowV2beta1Fulfillment) *ProjectsAgentUpdateFulfillmentCall

UpdateFulfillment: Updates the fulfillment.

  • name: The unique identifier of the fulfillment. Supported formats: -`projects//agent/fulfillment` - `projects//locations//agent/fulfillment`This field is not used for Fulfillment in an Environment.

typeProjectsAgentSessionsContextsCreateCall

type ProjectsAgentSessionsContextsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentSessionsContextsCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentSessionsContextsCreateCall)Do

Do executes the "dialogflow.projects.agent.sessions.contexts.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentSessionsContextsCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentSessionsContextsCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentSessionsContextsDeleteCall

type ProjectsAgentSessionsContextsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentSessionsContextsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentSessionsContextsDeleteCall)Do

Do executes the "dialogflow.projects.agent.sessions.contexts.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsAgentSessionsContextsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentSessionsContextsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentSessionsContextsGetCall

type ProjectsAgentSessionsContextsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentSessionsContextsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentSessionsContextsGetCall)Do

Do executes the "dialogflow.projects.agent.sessions.contexts.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentSessionsContextsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentSessionsContextsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentSessionsContextsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsAgentSessionsContextsListCall

type ProjectsAgentSessionsContextsListCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentSessionsContextsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentSessionsContextsListCall)Do

Do executes the "dialogflow.projects.agent.sessions.contexts.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListContextsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentSessionsContextsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentSessionsContextsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentSessionsContextsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsAgentSessionsContextsListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsAgentSessionsContextsListCall)PageToken

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsAgentSessionsContextsListCall)Pages

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.

typeProjectsAgentSessionsContextsPatchCall

type ProjectsAgentSessionsContextsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentSessionsContextsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentSessionsContextsPatchCall)Do

Do executes the "dialogflow.projects.agent.sessions.contexts.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentSessionsContextsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentSessionsContextsPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentSessionsContextsPatchCall)UpdateMask

UpdateMask sets the optional parameter "updateMask": The mask to controlwhich fields get updated.

typeProjectsAgentSessionsContextsService

type ProjectsAgentSessionsContextsService struct {// contains filtered or unexported fields}

func (*ProjectsAgentSessionsContextsService)Create

Create: Creates a context. If the specified context already exists,overrides the context.

  • parent: The session to create a context for. Supported formats: -`projects//agent/sessions/, - `projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsAgentSessionsContextsService)Delete

Delete: Deletes the specified context.

  • name: The name of the context to delete. Supported formats: -`projects//agent/sessions//contexts/`, -`projects//locations//agent/sessions//contexts/`, -`projects//agent/environments//users//sessions//contexts/`, -`projects//locations//agent/environments//users//sessions//contexts/`, 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.

func (*ProjectsAgentSessionsContextsService)Get

Get: Retrieves the specified context.

  • name: The name 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/`, 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.

func (*ProjectsAgentSessionsContextsService)List

List: Returns the list of all contexts in the specified session.

  • parent: The session to list all contexts from. Supported formats: -`projects//agent/sessions/, - `projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsAgentSessionsContextsService)Patch

Patch: Updates the specified context.

  • name: 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 charactersin `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` isnot specified, we assume default '-' user. The following context names arereserved for internal use by Dialogflow. You should not use these contextsor create contexts with these names: * `__system_counters__` *`*_id_dialog_context` * `*_dialog_params_size`.

typeProjectsAgentSessionsDeleteContextsCall

type ProjectsAgentSessionsDeleteContextsCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentSessionsDeleteContextsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentSessionsDeleteContextsCall)Do

Do executes the "dialogflow.projects.agent.sessions.deleteContexts" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsAgentSessionsDeleteContextsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentSessionsDeleteContextsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentSessionsDetectIntentCall

type ProjectsAgentSessionsDetectIntentCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentSessionsDetectIntentCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentSessionsDetectIntentCall)Do

Do executes the "dialogflow.projects.agent.sessions.detectIntent" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1DetectIntentResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentSessionsDetectIntentCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentSessionsDetectIntentCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentSessionsEntityTypesCreateCall

type ProjectsAgentSessionsEntityTypesCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentSessionsEntityTypesCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentSessionsEntityTypesCreateCall)Do

Do executes the "dialogflow.projects.agent.sessions.entityTypes.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentSessionsEntityTypesCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentSessionsEntityTypesCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentSessionsEntityTypesDeleteCall

type ProjectsAgentSessionsEntityTypesDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentSessionsEntityTypesDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentSessionsEntityTypesDeleteCall)Do

Do executes the "dialogflow.projects.agent.sessions.entityTypes.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsAgentSessionsEntityTypesDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentSessionsEntityTypesDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentSessionsEntityTypesGetCall

type ProjectsAgentSessionsEntityTypesGetCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentSessionsEntityTypesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentSessionsEntityTypesGetCall)Do

Do executes the "dialogflow.projects.agent.sessions.entityTypes.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentSessionsEntityTypesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentSessionsEntityTypesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentSessionsEntityTypesGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsAgentSessionsEntityTypesListCall

type ProjectsAgentSessionsEntityTypesListCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentSessionsEntityTypesListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentSessionsEntityTypesListCall)Do

Do executes the "dialogflow.projects.agent.sessions.entityTypes.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsAgentSessionsEntityTypesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentSessionsEntityTypesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentSessionsEntityTypesListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsAgentSessionsEntityTypesListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsAgentSessionsEntityTypesListCall)PageToken

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsAgentSessionsEntityTypesListCall)Pages

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.

typeProjectsAgentSessionsEntityTypesPatchCall

type ProjectsAgentSessionsEntityTypesPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentSessionsEntityTypesPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentSessionsEntityTypesPatchCall)Do

Do executes the "dialogflow.projects.agent.sessions.entityTypes.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentSessionsEntityTypesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentSessionsEntityTypesPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentSessionsEntityTypesPatchCall)UpdateMask

UpdateMask sets the optional parameter "updateMask": The mask to controlwhich fields get updated.

typeProjectsAgentSessionsEntityTypesService

type ProjectsAgentSessionsEntityTypesService struct {// contains filtered or unexported fields}

func (*ProjectsAgentSessionsEntityTypesService)Create

Create: Creates a session entity type. If the specified session entity typealready exists, overrides the session entity type. This method doesn't workwith Google Assistant integration. Contact Dialogflow support if you need touse session entities with Google Assistant integration.

  • parent: The session to create a session entity type for. Supportedformats: - `projects//agent/sessions/, -`projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsAgentSessionsEntityTypesService)Delete

Delete: Deletes the specified session entity type. This method doesn't workwith Google Assistant integration. Contact Dialogflow support if you need touse session entities with Google Assistant integration.

  • name: The name of the entity type to delete. 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.

func (*ProjectsAgentSessionsEntityTypesService)Get

Get: Retrieves the specified session entity type. This method doesn't workwith Google Assistant integration. Contact Dialogflow support if you need touse session entities with Google Assistant integration.

  • name: The name of the 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.

func (*ProjectsAgentSessionsEntityTypesService)List

List: Returns the list of all session entity types in the specified session.This method doesn't work with Google Assistant integration. ContactDialogflow support if you need to use session entities with Google Assistantintegration.

  • parent: The session to list all session entity types from. Supportedformats: - `projects//agent/sessions/, -`projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsAgentSessionsEntityTypesService)Patch

Patch: Updates the specified session entity type. This method doesn't workwith Google Assistant integration. Contact Dialogflow support if you need touse session entities with Google Assistant integration.

  • name: The unique identifier of this session entity type. Supportedformats: - `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 thedisplay name of an existing entity type in the same agent that will beoverridden or supplemented.

typeProjectsAgentSessionsService

type ProjectsAgentSessionsService struct {Contexts *ProjectsAgentSessionsContextsServiceEntityTypes *ProjectsAgentSessionsEntityTypesService// contains filtered or unexported fields}

funcNewProjectsAgentSessionsService

func NewProjectsAgentSessionsService(s *Service) *ProjectsAgentSessionsService

func (*ProjectsAgentSessionsService)DeleteContexts

DeleteContexts: Deletes all active contexts in the specified session.

  • parent: The name of the session to delete all contexts from. Supportedformats: - `projects//agent/sessions/, -`projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsAgentSessionsService)DetectIntent

func (r *ProjectsAgentSessionsService) DetectIntent(sessionidstring, googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest) *ProjectsAgentSessionsDetectIntentCall

DetectIntent: Processes a natural language query and returns structured,actionable data as a result. This method is not idempotent, because it maycause contexts and session entity types to be updated, which in turn mightaffect results of future queries. If you might use Agent Assist(https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now orin the future, consider using AnalyzeContent instead of `DetectIntent`.`AnalyzeContent` has additional functionality for Agent Assist and otherCCAI products. Note: Always use agent versions for production traffic. SeeVersions and environments(https://cloud.google.com/dialogflow/es/docs/agents-versions).

- session: The name of the session this query is sent to. Supported formats:

  • `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment (`Environment ID`might be referred to as environment name at some places). If `User ID` isnot specified, we are using "-". It's up to the API caller to choose anappropriate `Session ID` and `User Id`. They can be a random number orsome type of user and session identifiers (preferably hashed). The lengthof the `Session ID` and `User ID` must not exceed 36 characters. For moreinformation, see the API interactions guide(https://cloud.google.com/dialogflow/docs/api-overview). Note: Always useagent versions for production traffic. See Versions and environments(https://cloud.google.com/dialogflow/es/docs/agents-versions).

typeProjectsAgentTrainCall

type ProjectsAgentTrainCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentTrainCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentTrainCall)Do

Do executes the "dialogflow.projects.agent.train" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentTrainCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentTrainCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentUpdateFulfillmentCalladded inv0.18.0

type ProjectsAgentUpdateFulfillmentCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentUpdateFulfillmentCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentUpdateFulfillmentCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.agent.updateFulfillment" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Fulfillment.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentUpdateFulfillmentCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentUpdateFulfillmentCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentUpdateFulfillmentCall)UpdateMaskadded inv0.18.0

UpdateMask sets the optional parameter "updateMask": Required. The mask tocontrol which fields get updated. If the mask is not present, all fieldswill be updated.

typeProjectsAgentVersionsCreateCalladded inv0.18.0

type ProjectsAgentVersionsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentVersionsCreateCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentVersionsCreateCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.agent.versions.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentVersionsCreateCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentVersionsCreateCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentVersionsDeleteCalladded inv0.46.0

type ProjectsAgentVersionsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentVersionsDeleteCall)Contextadded inv0.46.0

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentVersionsDeleteCall)Doadded inv0.46.0

Do executes the "dialogflow.projects.agent.versions.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsAgentVersionsDeleteCall)Fieldsadded inv0.46.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentVersionsDeleteCall)Headeradded inv0.46.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsAgentVersionsGetCalladded inv0.18.0

type ProjectsAgentVersionsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentVersionsGetCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentVersionsGetCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.agent.versions.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentVersionsGetCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentVersionsGetCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentVersionsGetCall)IfNoneMatchadded inv0.18.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsAgentVersionsListCalladded inv0.18.0

type ProjectsAgentVersionsListCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentVersionsListCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentVersionsListCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.agent.versions.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListVersionsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentVersionsListCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentVersionsListCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentVersionsListCall)IfNoneMatchadded inv0.18.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsAgentVersionsListCall)PageSizeadded inv0.18.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsAgentVersionsListCall)PageTokenadded inv0.18.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsAgentVersionsListCall)Pagesadded inv0.18.0

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.

typeProjectsAgentVersionsPatchCalladded inv0.18.0

type ProjectsAgentVersionsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsAgentVersionsPatchCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsAgentVersionsPatchCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.agent.versions.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAgentVersionsPatchCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAgentVersionsPatchCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAgentVersionsPatchCall)UpdateMaskadded inv0.18.0

UpdateMask sets the optional parameter "updateMask": Required. The mask tocontrol which fields get updated.

typeProjectsAgentVersionsServiceadded inv0.18.0

type ProjectsAgentVersionsService struct {// contains filtered or unexported fields}

funcNewProjectsAgentVersionsServiceadded inv0.18.0

func NewProjectsAgentVersionsService(s *Service) *ProjectsAgentVersionsService

func (*ProjectsAgentVersionsService)Createadded inv0.18.0

Create: Creates an agent version. The new version points to the agentinstance in the "default" environment.

  • parent: The agent to create a version for. Supported formats: -`projects//agent` - `projects//locations//agent`.

func (*ProjectsAgentVersionsService)Deleteadded inv0.46.0

Delete: Delete the specified agent version.

  • name: The name of the version to delete. Supported formats: -`projects//agent/versions/` - `projects//locations//agent/versions/`.

func (*ProjectsAgentVersionsService)Getadded inv0.18.0

Get: Retrieves the specified agent version.

  • name: The name of the version. Supported formats: -`projects//agent/versions/` - `projects//locations//agent/versions/`.

func (*ProjectsAgentVersionsService)Listadded inv0.18.0

List: Returns the list of all versions of the specified agent.

  • parent: The agent to list all versions from. Supported formats: -`projects//agent` - `projects//locations//agent`.

func (*ProjectsAgentVersionsService)Patchadded inv0.18.0

Patch: Updates the specified agent version. Note that this method does notallow you to update the state of the agent the given version points to. Itallows you to update only mutable properties of the version resource.

  • name: Output only. The unique identifier of this agent version. Supportedformats: - `projects//agent/versions/` -`projects//locations//agent/versions/`.

typeProjectsAnswerRecordsGetCalladded inv0.42.0

type ProjectsAnswerRecordsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsAnswerRecordsGetCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsAnswerRecordsGetCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.answerRecords.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1AnswerRecord.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAnswerRecordsGetCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAnswerRecordsGetCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAnswerRecordsGetCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsAnswerRecordsListCalladded inv0.42.0

type ProjectsAnswerRecordsListCall struct {// contains filtered or unexported fields}

func (*ProjectsAnswerRecordsListCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsAnswerRecordsListCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.answerRecords.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAnswerRecordsListCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAnswerRecordsListCall)Filteradded inv0.89.0

Filter sets the optional parameter "filter": Filters to restrict results tospecific answer records. The expression has the following syntax: [AND ] ...The following fields and operators are supported: * conversation_id withequals(=) operator Examples: * "conversation_id=bar" matches answer recordsin the projects/foo/locations/global/conversations/bar conversation(assuming the parent is projects/foo/locations/global). For more informationabout filtering, see API Filtering (https://aip.dev/160).

func (*ProjectsAnswerRecordsListCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAnswerRecordsListCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsAnswerRecordsListCall)PageSizeadded inv0.42.0

PageSize sets the optional parameter "pageSize": The maximum number ofrecords to return in a single page. The server may return fewer records thanthis. If unspecified, we use 10. The maximum is 100.

func (*ProjectsAnswerRecordsListCall)PageTokenadded inv0.42.0

PageToken sets the optional parameter "pageToken": TheListAnswerRecordsResponse.next_page_token value returned from a previouslist request used to continue listing on the next page.

func (*ProjectsAnswerRecordsListCall)Pagesadded inv0.42.0

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.

typeProjectsAnswerRecordsPatchCalladded inv0.42.0

type ProjectsAnswerRecordsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsAnswerRecordsPatchCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsAnswerRecordsPatchCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.answerRecords.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1AnswerRecord.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsAnswerRecordsPatchCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsAnswerRecordsPatchCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsAnswerRecordsPatchCall)UpdateMaskadded inv0.42.0

UpdateMask sets the optional parameter "updateMask": Required. The mask tocontrol which fields get updated.

typeProjectsAnswerRecordsServiceadded inv0.42.0

type ProjectsAnswerRecordsService struct {// contains filtered or unexported fields}

funcNewProjectsAnswerRecordsServiceadded inv0.42.0

func NewProjectsAnswerRecordsService(s *Service) *ProjectsAnswerRecordsService

func (*ProjectsAnswerRecordsService)Getadded inv0.42.0

Get: Deprecated. Retrieves a specific answer record.

  • name: The name of the answer record to retrieve. Format:`projects//locations//answerRecords/`.

func (*ProjectsAnswerRecordsService)Listadded inv0.42.0

List: Returns the list of all answer records in the specified project inreverse chronological order.

  • parent: The project to list all answer records for in reversechronological order. Format: `projects//locations/`.

func (*ProjectsAnswerRecordsService)Patchadded inv0.42.0

func (r *ProjectsAnswerRecordsService) Patch(nameidstring, googleclouddialogflowv2beta1answerrecord *GoogleCloudDialogflowV2beta1AnswerRecord) *ProjectsAnswerRecordsPatchCall

Patch: Updates the specified answer record.

  • name: The unique identifier of this answer record. Required forAnswerRecords.UpdateAnswerRecord method. Format:`projects//locations//answerRecords/`.

typeProjectsConversationProfilesClearSuggestionFeatureConfigCalladded inv0.71.0

type ProjectsConversationProfilesClearSuggestionFeatureConfigCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationProfilesClearSuggestionFeatureConfigCall)Contextadded inv0.71.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationProfilesClearSuggestionFeatureConfigCall)Doadded inv0.71.0

Do executes the "dialogflow.projects.conversationProfiles.clearSuggestionFeatureConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationProfilesClearSuggestionFeatureConfigCall)Fieldsadded inv0.71.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationProfilesClearSuggestionFeatureConfigCall)Headeradded inv0.71.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsConversationProfilesCreateCalladded inv0.42.0

type ProjectsConversationProfilesCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationProfilesCreateCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationProfilesCreateCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversationProfiles.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationProfilesCreateCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationProfilesCreateCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsConversationProfilesDeleteCalladded inv0.42.0

type ProjectsConversationProfilesDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationProfilesDeleteCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationProfilesDeleteCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversationProfiles.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsConversationProfilesDeleteCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationProfilesDeleteCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsConversationProfilesGetCalladded inv0.42.0

type ProjectsConversationProfilesGetCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationProfilesGetCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationProfilesGetCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversationProfiles.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationProfilesGetCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationProfilesGetCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsConversationProfilesGetCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsConversationProfilesListCalladded inv0.42.0

type ProjectsConversationProfilesListCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationProfilesListCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationProfilesListCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversationProfiles.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListConversationProfilesResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsConversationProfilesListCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationProfilesListCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsConversationProfilesListCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsConversationProfilesListCall)PageSizeadded inv0.42.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsConversationProfilesListCall)PageTokenadded inv0.42.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsConversationProfilesListCall)Pagesadded inv0.42.0

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.

typeProjectsConversationProfilesPatchCalladded inv0.42.0

type ProjectsConversationProfilesPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationProfilesPatchCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationProfilesPatchCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversationProfiles.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationProfilesPatchCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationProfilesPatchCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsConversationProfilesPatchCall)UpdateMaskadded inv0.42.0

UpdateMask sets the optional parameter "updateMask": Required. The mask tocontrol which fields to update.

typeProjectsConversationProfilesServiceadded inv0.42.0

type ProjectsConversationProfilesService struct {// contains filtered or unexported fields}

funcNewProjectsConversationProfilesServiceadded inv0.42.0

func NewProjectsConversationProfilesService(s *Service) *ProjectsConversationProfilesService

func (*ProjectsConversationProfilesService)ClearSuggestionFeatureConfigadded inv0.71.0

func (r *ProjectsConversationProfilesService) ClearSuggestionFeatureConfig(conversationProfilestring, googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest) *ProjectsConversationProfilesClearSuggestionFeatureConfigCall

ClearSuggestionFeatureConfig: Clears a suggestion feature from aconversation profile for the given participant role. This method is along-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: ClearSuggestionFeatureConfigOperationMetadata - `response`:ConversationProfile

  • conversationProfile: The Conversation Profile to add or update thesuggestion feature config. Format:`projects//locations//conversationProfiles/`.

func (*ProjectsConversationProfilesService)Createadded inv0.42.0

Create: Creates a conversation profile in the specified project.ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren'tpopulated in the response. You can retrieve them via GetConversationProfileAPI.

  • parent: The project to create a conversation profile for. Format:`projects//locations/`.

func (*ProjectsConversationProfilesService)Deleteadded inv0.42.0

Delete: Deletes the specified conversation profile.

  • name: The name of the conversation profile to delete. Format:`projects//locations//conversationProfiles/`.

func (*ProjectsConversationProfilesService)Getadded inv0.42.0

Get: Retrieves the specified conversation profile.

  • name: The resource name of the conversation profile. Format:`projects//locations//conversationProfiles/`.

func (*ProjectsConversationProfilesService)Listadded inv0.42.0

List: Returns the list of all conversation profiles in the specifiedproject.

  • parent: The project to list all conversation profiles from. Format:`projects//locations/`.

func (*ProjectsConversationProfilesService)Patchadded inv0.42.0

Patch: Updates the specified conversation profile.ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren'tpopulated in the response. You can retrieve them via GetConversationProfileAPI.

  • name: The unique identifier of this conversation profile. Format:`projects//locations//conversationProfiles/`.

func (*ProjectsConversationProfilesService)SetSuggestionFeatureConfigadded inv0.71.0

func (r *ProjectsConversationProfilesService) SetSuggestionFeatureConfig(conversationProfilestring, googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest) *ProjectsConversationProfilesSetSuggestionFeatureConfigCall

SetSuggestionFeatureConfig: Adds or updates a suggestion feature in aconversation profile. If the conversation profile contains the type ofsuggestion feature for the participant role, it will update it. Otherwise itwill insert the suggestion feature. This method is a long-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: SetSuggestionFeatureConfigOperationMetadata - `response`:ConversationProfile If a long running operation to add or update suggestionfeature config for the same conversation profile, participant role andsuggestion feature type exists, please cancel the existing long runningoperation before sending such request, otherwise the request will berejected.

  • conversationProfile: The Conversation Profile to add or update thesuggestion feature config. Format:`projects//locations//conversationProfiles/`.

typeProjectsConversationProfilesSetSuggestionFeatureConfigCalladded inv0.71.0

type ProjectsConversationProfilesSetSuggestionFeatureConfigCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationProfilesSetSuggestionFeatureConfigCall)Contextadded inv0.71.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationProfilesSetSuggestionFeatureConfigCall)Doadded inv0.71.0

Do executes the "dialogflow.projects.conversationProfiles.setSuggestionFeatureConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationProfilesSetSuggestionFeatureConfigCall)Fieldsadded inv0.71.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationProfilesSetSuggestionFeatureConfigCall)Headeradded inv0.71.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsConversationsCompleteCalladded inv0.42.0

type ProjectsConversationsCompleteCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsCompleteCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsCompleteCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversations.complete" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationsCompleteCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsCompleteCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsConversationsCreateCalladded inv0.42.0

type ProjectsConversationsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsCreateCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsCreateCall)ConversationIdadded inv0.42.0

ConversationId sets the optional parameter "conversationId": Identifier ofthe conversation. Generally it's auto generated by Google. Only set it ifyou cannot wait for the response to return a auto-generated one to you. Theconversation ID must be compliant with the regression formula `a-zA-Z*` withthe characters length in range of [3,64]. If the field is provided, thecaller is responsible for 1. the uniqueness of the ID, otherwise the requestwill be rejected. 2. the consistency for whether to use custom ID or notunder a project to better ensure uniqueness.

func (*ProjectsConversationsCreateCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversations.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationsCreateCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsCreateCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsConversationsGetCalladded inv0.42.0

type ProjectsConversationsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsGetCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsGetCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversations.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationsGetCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsGetCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsConversationsGetCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsConversationsListCalladded inv0.42.0

type ProjectsConversationsListCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsListCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsListCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListConversationsResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationsListCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsListCall)Filteradded inv0.42.0

Filter sets the optional parameter "filter": A filter expression thatfilters conversations listed in the response. Only `lifecycle_state` can befiltered on in this way. For example, the following expression only returns`COMPLETED` conversations: `lifecycle_state = "COMPLETED" For moreinformation about filtering, see API Filtering (https://aip.dev/160).

func (*ProjectsConversationsListCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsConversationsListCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsConversationsListCall)PageSizeadded inv0.42.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsConversationsListCall)PageTokenadded inv0.42.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsConversationsListCall)Pagesadded inv0.42.0

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.

typeProjectsConversationsMessagesBatchCreateCalladded inv0.42.0

type ProjectsConversationsMessagesBatchCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsMessagesBatchCreateCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsMessagesBatchCreateCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversations.messages.batchCreate" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse.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 becausehttp.StatusNotModified was returned.

func (*ProjectsConversationsMessagesBatchCreateCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsMessagesBatchCreateCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsConversationsMessagesListCalladded inv0.42.0

type ProjectsConversationsMessagesListCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsMessagesListCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsMessagesListCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversations.messages.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListMessagesResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationsMessagesListCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsMessagesListCall)Filteradded inv0.42.0

Filter sets the optional parameter "filter": Filter on message fields.Currently predicates on `create_time` and `create_time_epoch_microseconds`are supported. `create_time` only support milliseconds accuracy. E.g.,`create_time_epoch_microseconds > 1551790877964485` or `create_time >"2017-01-15T01:30:15.01Z". For more information about filtering, see APIFiltering (https://aip.dev/160).

func (*ProjectsConversationsMessagesListCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsConversationsMessagesListCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsConversationsMessagesListCall)PageSizeadded inv0.42.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsConversationsMessagesListCall)PageTokenadded inv0.42.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsConversationsMessagesListCall)Pagesadded inv0.42.0

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.

typeProjectsConversationsMessagesServiceadded inv0.42.0

type ProjectsConversationsMessagesService struct {// contains filtered or unexported fields}

funcNewProjectsConversationsMessagesServiceadded inv0.42.0

func NewProjectsConversationsMessagesService(s *Service) *ProjectsConversationsMessagesService

func (*ProjectsConversationsMessagesService)BatchCreateadded inv0.42.0

BatchCreate: Batch ingests messages to conversation. Customers can use thisRPC to ingest historical messages to conversation.

  • parent: Resource identifier of the conversation to create message. Format:`projects//locations//conversations/`.

func (*ProjectsConversationsMessagesService)Listadded inv0.42.0

List: Lists messages that belong to a given conversation. `messages` areordered by `create_time` in descending order. To fetch updates withoutduplication, send request with filter `create_time_epoch_microseconds >[first item's create_time of previous request]` and empty page_token.

  • parent: The name of the conversation to list messages for. Format:`projects//locations//conversations/`.

typeProjectsConversationsParticipantsAnalyzeContentCalladded inv0.42.0

type ProjectsConversationsParticipantsAnalyzeContentCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsParticipantsAnalyzeContentCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsParticipantsAnalyzeContentCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversations.participants.analyzeContent" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1AnalyzeContentResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationsParticipantsAnalyzeContentCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsParticipantsAnalyzeContentCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsConversationsParticipantsCreateCalladded inv0.42.0

type ProjectsConversationsParticipantsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsParticipantsCreateCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsParticipantsCreateCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversations.participants.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationsParticipantsCreateCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsParticipantsCreateCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsConversationsParticipantsGetCalladded inv0.42.0

type ProjectsConversationsParticipantsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsParticipantsGetCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsParticipantsGetCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversations.participants.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationsParticipantsGetCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsParticipantsGetCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsConversationsParticipantsGetCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsConversationsParticipantsListCalladded inv0.42.0

type ProjectsConversationsParticipantsListCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsParticipantsListCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsParticipantsListCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversations.participants.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListParticipantsResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationsParticipantsListCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsParticipantsListCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsConversationsParticipantsListCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsConversationsParticipantsListCall)PageSizeadded inv0.42.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsConversationsParticipantsListCall)PageTokenadded inv0.42.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsConversationsParticipantsListCall)Pagesadded inv0.42.0

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.

typeProjectsConversationsParticipantsPatchCalladded inv0.42.0

type ProjectsConversationsParticipantsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsParticipantsPatchCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsParticipantsPatchCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversations.participants.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationsParticipantsPatchCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsParticipantsPatchCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsConversationsParticipantsPatchCall)UpdateMaskadded inv0.42.0

UpdateMask sets the optional parameter "updateMask": Required. The mask tospecify which fields to update.

typeProjectsConversationsParticipantsServiceadded inv0.42.0

type ProjectsConversationsParticipantsService struct {Suggestions *ProjectsConversationsParticipantsSuggestionsService// contains filtered or unexported fields}

funcNewProjectsConversationsParticipantsServiceadded inv0.42.0

func NewProjectsConversationsParticipantsService(s *Service) *ProjectsConversationsParticipantsService

func (*ProjectsConversationsParticipantsService)AnalyzeContentadded inv0.42.0

AnalyzeContent: Adds a text (chat, for example), or audio (phone recording,for example) message from a participant into the conversation. Note: Alwaysuse agent versions for production traffic sent to virtual agents. SeeVersions and environments(https://cloud.google.com/dialogflow/es/docs/agents-versions).

  • participant: The name of the participant this text comes from. Format:`projects//locations//conversations//participants/`.

func (*ProjectsConversationsParticipantsService)Createadded inv0.42.0

Create: Creates a new participant in a conversation.

  • parent: Resource identifier of the conversation adding the participant.Format: `projects//locations//conversations/`.

func (*ProjectsConversationsParticipantsService)Getadded inv0.42.0

Get: Retrieves a conversation participant.

  • name: The name of the participant. Format:`projects//locations//conversations//participants/`.

func (*ProjectsConversationsParticipantsService)Listadded inv0.42.0

List: Returns the list of all participants in the specified conversation.

  • parent: The conversation to list all participants from. Format:`projects//locations//conversations/`.

func (*ProjectsConversationsParticipantsService)Patchadded inv0.42.0

Patch: Updates the specified participant.

  • name: Optional. The unique identifier of this participant. Format:`projects//locations//conversations//participants/`.

typeProjectsConversationsParticipantsSuggestionsCompileCalladded inv0.42.0

type ProjectsConversationsParticipantsSuggestionsCompileCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsParticipantsSuggestionsCompileCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsParticipantsSuggestionsCompileCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversations.participants.suggestions.compile" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1CompileSuggestionResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationsParticipantsSuggestionsCompileCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsParticipantsSuggestionsCompileCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsConversationsParticipantsSuggestionsListCalladded inv0.42.0

type ProjectsConversationsParticipantsSuggestionsListCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsParticipantsSuggestionsListCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsParticipantsSuggestionsListCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversations.participants.suggestions.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListSuggestionsResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationsParticipantsSuggestionsListCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsParticipantsSuggestionsListCall)Filteradded inv0.42.0

Filter sets the optional parameter "filter": Filter on suggestions fields.Currently predicates on `create_time` and `create_time_epoch_microseconds`are supported. `create_time` only support milliseconds accuracy. E.g.,`create_time_epoch_microseconds > 1551790877964485` or `create_time >"2017-01-15T01:30:15.01Z" For more information about filtering, see APIFiltering (https://aip.dev/160).

func (*ProjectsConversationsParticipantsSuggestionsListCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsConversationsParticipantsSuggestionsListCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsConversationsParticipantsSuggestionsListCall)PageSizeadded inv0.42.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. The default value is 100; the maximum value is1000.

func (*ProjectsConversationsParticipantsSuggestionsListCall)PageTokenadded inv0.42.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsConversationsParticipantsSuggestionsListCall)Pagesadded inv0.42.0

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.

typeProjectsConversationsParticipantsSuggestionsServiceadded inv0.42.0

type ProjectsConversationsParticipantsSuggestionsService struct {// contains filtered or unexported fields}

funcNewProjectsConversationsParticipantsSuggestionsServiceadded inv0.42.0

func NewProjectsConversationsParticipantsSuggestionsService(s *Service) *ProjectsConversationsParticipantsSuggestionsService

func (*ProjectsConversationsParticipantsSuggestionsService)Compileadded inv0.42.0

Compile: Deprecated. use SuggestArticles and SuggestFaqAnswers instead. Getssuggestions for a participant based on specific historical messages. Notethat ListSuggestions will only list the auto-generated suggestions, whileCompileSuggestion will try to compile suggestion based on the providedconversation context in the real time.

  • parent: The name of the participant to fetch suggestion for. Format:`projects//locations//conversations//participants/`.

func (*ProjectsConversationsParticipantsSuggestionsService)Listadded inv0.42.0

List: Deprecated: Use inline suggestion, event based suggestion orSuggestion* API instead. See HumanAgentAssistantConfig.name for moredetails. Removal Date: 2020-09-01. Retrieves suggestions for live agents.This method should be used by human agent client software to fetch autogenerated suggestions in real-time, while the conversation with an end useris in progress. The functionality is implemented in terms of the listpagination(https://cloud.google.com/apis/design/design_patterns#list_pagination)design pattern. The client app should use the `next_page_token` field tofetch the next batch of suggestions. `suggestions` are sorted by`create_time` in descending order. To fetch latest suggestion, just set`page_size` to 1. To fetch new suggestions without duplication, send requestwith filter `create_time_epoch_microseconds > [first item's create_time ofprevious request]` and empty page_token.

  • parent: The name of the participant to fetch suggestions for. Format:`projects//locations//conversations//participants/`.

func (*ProjectsConversationsParticipantsSuggestionsService)SuggestArticlesadded inv0.42.0

SuggestArticles: Gets suggested articles for a participant based on specifichistorical messages. Note that ListSuggestions will only list theauto-generated suggestions, while CompileSuggestion will try to compilesuggestion based on the provided conversation context in the real time.

  • parent: The name of the participant to fetch suggestion for. Format:`projects//locations//conversations//participants/`.

func (*ProjectsConversationsParticipantsSuggestionsService)SuggestFaqAnswersadded inv0.42.0

SuggestFaqAnswers: Gets suggested faq answers for a participant based onspecific historical messages.

  • parent: The name of the participant to fetch suggestion for. Format:`projects//locations//conversations//participants/`.

func (*ProjectsConversationsParticipantsSuggestionsService)SuggestKnowledgeAssistadded inv0.185.0

SuggestKnowledgeAssist: Gets knowledge assist suggestions based onhistorical messages.

  • parent: The name of the participant to fetch suggestions for. Format:`projects//locations//conversations//participants/`.

func (*ProjectsConversationsParticipantsSuggestionsService)SuggestSmartRepliesadded inv0.42.0

SuggestSmartReplies: Gets smart replies for a participant based on specifichistorical messages.

  • parent: The name of the participant to fetch suggestion for. Format:`projects//locations//conversations//participants/`.

typeProjectsConversationsParticipantsSuggestionsSuggestArticlesCalladded inv0.42.0

type ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestArticles" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SuggestArticlesResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCalladded inv0.42.0

type ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestFaqAnswers" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsConversationsParticipantsSuggestionsSuggestKnowledgeAssistCalladded inv0.185.0

type ProjectsConversationsParticipantsSuggestionsSuggestKnowledgeAssistCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsParticipantsSuggestionsSuggestKnowledgeAssistCall)Contextadded inv0.185.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsParticipantsSuggestionsSuggestKnowledgeAssistCall)Doadded inv0.185.0

Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestKnowledgeAssist" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsConversationsParticipantsSuggestionsSuggestKnowledgeAssistCall)Fieldsadded inv0.185.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsParticipantsSuggestionsSuggestKnowledgeAssistCall)Headeradded inv0.185.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCalladded inv0.42.0

type ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.conversations.participants.suggestions.suggestSmartReplies" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse.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 becausehttp.StatusNotModified was returned.

func (*ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsConversationsServiceadded inv0.42.0

type ProjectsConversationsService struct {Messages *ProjectsConversationsMessagesServiceParticipants *ProjectsConversationsParticipantsServiceSuggestions *ProjectsConversationsSuggestionsService// contains filtered or unexported fields}

funcNewProjectsConversationsServiceadded inv0.42.0

func NewProjectsConversationsService(s *Service) *ProjectsConversationsService

func (*ProjectsConversationsService)Completeadded inv0.42.0

func (r *ProjectsConversationsService) Complete(nameidstring, googleclouddialogflowv2beta1completeconversationrequest *GoogleCloudDialogflowV2beta1CompleteConversationRequest) *ProjectsConversationsCompleteCall

Complete: Completes the specified conversation. Finished conversations arepurged from the database after 30 days.

  • name: Resource identifier of the conversation to close. Format:`projects//locations//conversations/`.

func (*ProjectsConversationsService)Createadded inv0.42.0

func (r *ProjectsConversationsService) Create(parentidstring, googleclouddialogflowv2beta1conversation *GoogleCloudDialogflowV2beta1Conversation) *ProjectsConversationsCreateCall

Create: Creates a new conversation. Conversations are auto-completed after24 hours. Conversation Lifecycle: There are two stages during aconversation: Automated Agent Stage and Assist Stage. For Automated AgentStage, there will be a dialogflow agent responding to user queries. ForAssist Stage, there's no dialogflow agent responding to user queries. But wewill provide suggestions which are generated from conversation. IfConversation.conversation_profile is configured for a dialogflow agent,conversation will start from `Automated Agent Stage`, otherwise, it willstart from `Assist Stage`. And during `Automated Agent Stage`, once anIntent with Intent.live_agent_handoff is triggered, conversation willtransfer to Assist Stage.

  • parent: Resource identifier of the project creating the conversation.Format: `projects//locations/`.

func (*ProjectsConversationsService)Getadded inv0.42.0

Get: Retrieves the specific conversation.

  • name: The name of the conversation. Format:`projects//locations//conversations/`.

func (*ProjectsConversationsService)Listadded inv0.42.0

List: Returns the list of all conversations in the specified project.

  • parent: The project from which to list all conversation. Format:`projects//locations/`.

typeProjectsConversationsSuggestionsGenerateCalladded inv0.226.0

type ProjectsConversationsSuggestionsGenerateCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsSuggestionsGenerateCall)Contextadded inv0.226.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsSuggestionsGenerateCall)Doadded inv0.226.0

Do executes the "dialogflow.projects.conversations.suggestions.generate" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse.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 becausehttp.StatusNotModified was returned.

func (*ProjectsConversationsSuggestionsGenerateCall)Fieldsadded inv0.226.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsSuggestionsGenerateCall)Headeradded inv0.226.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsConversationsSuggestionsSearchKnowledgeCalladded inv0.139.0

type ProjectsConversationsSuggestionsSearchKnowledgeCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsSuggestionsSearchKnowledgeCall)Contextadded inv0.139.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsSuggestionsSearchKnowledgeCall)Doadded inv0.139.0

Do executes the "dialogflow.projects.conversations.suggestions.searchKnowledge" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SearchKnowledgeResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsConversationsSuggestionsSearchKnowledgeCall)Fieldsadded inv0.139.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsSuggestionsSearchKnowledgeCall)Headeradded inv0.139.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsConversationsSuggestionsServiceadded inv0.96.0

type ProjectsConversationsSuggestionsService struct {// contains filtered or unexported fields}

funcNewProjectsConversationsSuggestionsServiceadded inv0.96.0

func NewProjectsConversationsSuggestionsService(s *Service) *ProjectsConversationsSuggestionsService

func (*ProjectsConversationsSuggestionsService)Generateadded inv0.226.0

Generate: Generates all the suggestions using generators configured in theconversation profile. A generator is used only if its trigger event ismatched.

  • conversation: The conversation for which the suggestions are generated.Format: `projects//locations//conversations/`. The conversation must becreated with a conversation profile which has generators configured in itto be able to get suggestions.

func (*ProjectsConversationsSuggestionsService)SearchKnowledgeadded inv0.139.0

SearchKnowledge: Get answers for the given query based on knowledgedocuments.

  • conversation: Optional. The conversation (between human agent and enduser) where the search request is triggered. Format:`projects//locations//conversations/`.

func (*ProjectsConversationsSuggestionsService)SuggestConversationSummaryadded inv0.96.0

func (r *ProjectsConversationsSuggestionsService) SuggestConversationSummary(conversationstring, googleclouddialogflowv2beta1suggestconversationsummaryrequest *GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest) *ProjectsConversationsSuggestionsSuggestConversationSummaryCall

SuggestConversationSummary: Suggest summary for a conversation based onspecific historical messages. The range of the messages to be used forsummary can be specified in the request.

  • conversation: The conversation to fetch suggestion for. Format:`projects//locations//conversations/`.

typeProjectsConversationsSuggestionsSuggestConversationSummaryCalladded inv0.96.0

type ProjectsConversationsSuggestionsSuggestConversationSummaryCall struct {// contains filtered or unexported fields}

func (*ProjectsConversationsSuggestionsSuggestConversationSummaryCall)Contextadded inv0.96.0

Context sets the context to be used in this call's Do method.

func (*ProjectsConversationsSuggestionsSuggestConversationSummaryCall)Doadded inv0.96.0

Do executes the "dialogflow.projects.conversations.suggestions.suggestConversationSummary" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsConversationsSuggestionsSuggestConversationSummaryCall)Fieldsadded inv0.96.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsConversationsSuggestionsSuggestConversationSummaryCall)Headeradded inv0.96.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsDeleteAgentCalladded inv0.7.0

type ProjectsDeleteAgentCall struct {// contains filtered or unexported fields}

func (*ProjectsDeleteAgentCall)Contextadded inv0.7.0

Context sets the context to be used in this call's Do method.

func (*ProjectsDeleteAgentCall)Doadded inv0.7.0

Do executes the "dialogflow.projects.deleteAgent" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsDeleteAgentCall)Fieldsadded inv0.7.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsDeleteAgentCall)Headeradded inv0.7.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsGeneratorsCreateCalladded inv0.183.0

type ProjectsGeneratorsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsGeneratorsCreateCall)Contextadded inv0.183.0

Context sets the context to be used in this call's Do method.

func (*ProjectsGeneratorsCreateCall)Doadded inv0.183.0

Do executes the "dialogflow.projects.generators.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Generator.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsGeneratorsCreateCall)Fieldsadded inv0.183.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsGeneratorsCreateCall)GeneratorIdadded inv0.183.0

GeneratorId sets the optional parameter "generatorId": The ID to use for thegenerator, which will become the final component of the generator's resourcename. The generator ID must be compliant with the regression formula`a-zA-Z*` with the characters length in range of [3,64]. If the field is notprovided, an Id will be auto-generated. If the field is provided, the calleris responsible for 1. the uniqueness of the ID, otherwise the request willbe rejected. 2. the consistency for whether to use custom ID or not under aproject to better ensure uniqueness.

func (*ProjectsGeneratorsCreateCall)Headeradded inv0.183.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsGeneratorsListCalladded inv0.183.0

type ProjectsGeneratorsListCall struct {// contains filtered or unexported fields}

func (*ProjectsGeneratorsListCall)Contextadded inv0.183.0

Context sets the context to be used in this call's Do method.

func (*ProjectsGeneratorsListCall)Doadded inv0.183.0

Do executes the "dialogflow.projects.generators.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListGeneratorsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsGeneratorsListCall)Fieldsadded inv0.183.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsGeneratorsListCall)Headeradded inv0.183.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsGeneratorsListCall)IfNoneMatchadded inv0.183.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsGeneratorsListCall)PageSizeadded inv0.183.0

PageSize sets the optional parameter "pageSize": Maximum number ofconversation models to return in a single page. Default to 10.

func (*ProjectsGeneratorsListCall)PageTokenadded inv0.183.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsGeneratorsListCall)Pagesadded inv0.183.0

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.

typeProjectsGeneratorsServiceadded inv0.183.0

type ProjectsGeneratorsService struct {// contains filtered or unexported fields}

funcNewProjectsGeneratorsServiceadded inv0.183.0

func NewProjectsGeneratorsService(s *Service) *ProjectsGeneratorsService

func (*ProjectsGeneratorsService)Createadded inv0.183.0

func (r *ProjectsGeneratorsService) Create(parentstring, googleclouddialogflowv2beta1generator *GoogleCloudDialogflowV2beta1Generator) *ProjectsGeneratorsCreateCall

Create: Creates a generator.

  • parent: The project/location to create generator for. Format:`projects//locations/`.

func (*ProjectsGeneratorsService)Listadded inv0.183.0

List: Lists generators.

  • parent: The project/location to list generators for. Format:`projects//locations/`.

typeProjectsGetAgentCall

type ProjectsGetAgentCall struct {// contains filtered or unexported fields}

func (*ProjectsGetAgentCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsGetAgentCall)Do

Do executes the "dialogflow.projects.getAgent" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Agent.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsGetAgentCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsGetAgentCall)Header

func (c *ProjectsGetAgentCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsGetAgentCall)IfNoneMatch

func (c *ProjectsGetAgentCall) IfNoneMatch(entityTagstring) *ProjectsGetAgentCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsKnowledgeBasesCreateCall

type ProjectsKnowledgeBasesCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsKnowledgeBasesCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsKnowledgeBasesCreateCall)Do

Do executes the "dialogflow.projects.knowledgeBases.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsKnowledgeBasesCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsKnowledgeBasesCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsKnowledgeBasesDeleteCall

type ProjectsKnowledgeBasesDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsKnowledgeBasesDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsKnowledgeBasesDeleteCall)Do

Do executes the "dialogflow.projects.knowledgeBases.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsKnowledgeBasesDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsKnowledgeBasesDeleteCall)Force

Force sets the optional parameter "force": Force deletes the knowledge base.When set to true, any documents in the knowledge base are also deleted.

func (*ProjectsKnowledgeBasesDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsKnowledgeBasesDocumentsCreateCall

type ProjectsKnowledgeBasesDocumentsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsKnowledgeBasesDocumentsCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsKnowledgeBasesDocumentsCreateCall)Do

Do executes the "dialogflow.projects.knowledgeBases.documents.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsKnowledgeBasesDocumentsCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsKnowledgeBasesDocumentsCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsKnowledgeBasesDocumentsCreateCall)ImportGcsCustomMetadataadded inv0.36.0

func (c *ProjectsKnowledgeBasesDocumentsCreateCall) ImportGcsCustomMetadata(importGcsCustomMetadatabool) *ProjectsKnowledgeBasesDocumentsCreateCall

ImportGcsCustomMetadata sets the optional parameter"importGcsCustomMetadata": Whether to import custom metadata from GoogleCloud Storage. Only valid when the document source is Google Cloud StorageURI.

typeProjectsKnowledgeBasesDocumentsDeleteCall

type ProjectsKnowledgeBasesDocumentsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsKnowledgeBasesDocumentsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsKnowledgeBasesDocumentsDeleteCall)Do

Do executes the "dialogflow.projects.knowledgeBases.documents.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsKnowledgeBasesDocumentsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsKnowledgeBasesDocumentsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsKnowledgeBasesDocumentsGetCall

type ProjectsKnowledgeBasesDocumentsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsKnowledgeBasesDocumentsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsKnowledgeBasesDocumentsGetCall)Do

Do executes the "dialogflow.projects.knowledgeBases.documents.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Document.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsKnowledgeBasesDocumentsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsKnowledgeBasesDocumentsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsKnowledgeBasesDocumentsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsKnowledgeBasesDocumentsImportCalladded inv0.42.0

type ProjectsKnowledgeBasesDocumentsImportCall struct {// contains filtered or unexported fields}

func (*ProjectsKnowledgeBasesDocumentsImportCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsKnowledgeBasesDocumentsImportCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.knowledgeBases.documents.import" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsKnowledgeBasesDocumentsImportCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsKnowledgeBasesDocumentsImportCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsKnowledgeBasesDocumentsListCall

type ProjectsKnowledgeBasesDocumentsListCall struct {// contains filtered or unexported fields}

func (*ProjectsKnowledgeBasesDocumentsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsKnowledgeBasesDocumentsListCall)Do

Do executes the "dialogflow.projects.knowledgeBases.documents.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListDocumentsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsKnowledgeBasesDocumentsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsKnowledgeBasesDocumentsListCall)Filteradded inv0.33.0

Filter sets the optional parameter "filter": The filter expression used tofilter documents returned by the list method. The expression has thefollowing syntax: [AND ] ... The following fields and operators aresupported: * knowledge_types with has(:) operator * display_name with has(:)operator * state with equals(=) operator Examples: * "knowledge_types:FAQ"matches documents with FAQ knowledge type. * "display_name:customer" matchesdocuments whose display name contains "customer". * "state=ACTIVE" matchesdocuments with ACTIVE state. * "knowledge_types:FAQ AND state=ACTIVE"matches all active FAQ documents. For more information about filtering, seeAPI Filtering (https://aip.dev/160).

func (*ProjectsKnowledgeBasesDocumentsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsKnowledgeBasesDocumentsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsKnowledgeBasesDocumentsListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 10 and at most 100.

func (*ProjectsKnowledgeBasesDocumentsListCall)PageToken

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsKnowledgeBasesDocumentsListCall)Pages

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.

typeProjectsKnowledgeBasesDocumentsPatchCall

type ProjectsKnowledgeBasesDocumentsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsKnowledgeBasesDocumentsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsKnowledgeBasesDocumentsPatchCall)Do

Do executes the "dialogflow.projects.knowledgeBases.documents.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsKnowledgeBasesDocumentsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsKnowledgeBasesDocumentsPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsKnowledgeBasesDocumentsPatchCall)UpdateMask

UpdateMask sets the optional parameter "updateMask": Not specified means`update all`. Currently, only `display_name` can be updated, anInvalidArgument will be returned for attempting to update other fields.

typeProjectsKnowledgeBasesDocumentsReloadCall

type ProjectsKnowledgeBasesDocumentsReloadCall struct {// contains filtered or unexported fields}

func (*ProjectsKnowledgeBasesDocumentsReloadCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsKnowledgeBasesDocumentsReloadCall)Do

Do executes the "dialogflow.projects.knowledgeBases.documents.reload" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsKnowledgeBasesDocumentsReloadCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsKnowledgeBasesDocumentsReloadCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsKnowledgeBasesDocumentsService

type ProjectsKnowledgeBasesDocumentsService struct {// contains filtered or unexported fields}

func (*ProjectsKnowledgeBasesDocumentsService)Create

Create: Creates a new document. This method is a long-running operation(https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).The returned `Operation` type has the following method-specific fields: -`metadata`: KnowledgeOperationMetadata - `response`: Document Note: The`projects.agent.knowledgeBases.documents` resource is deprecated; only use`projects.knowledgeBases.documents`.

  • parent: The knowledge base to create a document for. Format:`projects//locations//knowledgeBases/`.

func (*ProjectsKnowledgeBasesDocumentsService)Delete

Delete: Deletes the specified document. This method is a long-runningoperation(https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).The returned `Operation` type has the following method-specific fields: -`metadata`: KnowledgeOperationMetadata - `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;only use `projects.knowledgeBases.documents`.

  • name: The name of the document to delete. Format:`projects//locations//knowledgeBases//documents/`.

func (*ProjectsKnowledgeBasesDocumentsService)Get

Get: Retrieves the specified document. Note: The`projects.agent.knowledgeBases.documents` resource is deprecated; only use`projects.knowledgeBases.documents`.

  • name: The name of the document to retrieve. Format`projects//locations//knowledgeBases//documents/`.

func (*ProjectsKnowledgeBasesDocumentsService)Importadded inv0.42.0

Import: Create documents by importing data from external sources. Dialogflowsupports up to 350 documents in each request. If you try to import more,Dialogflow will return an error. This method is a long-running operation(https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).The returned `Operation` type has the following method-specific fields: -`metadata`: KnowledgeOperationMetadata - `response`: ImportDocumentsResponse

  • parent: The knowledge base to import documents into. Format:`projects//locations//knowledgeBases/`.

func (*ProjectsKnowledgeBasesDocumentsService)List

List: Returns the list of all documents of the knowledge base. Note: The`projects.agent.knowledgeBases.documents` resource is deprecated; only use`projects.knowledgeBases.documents`.

  • parent: The knowledge base to list all documents for. Format:`projects//locations//knowledgeBases/`.

func (*ProjectsKnowledgeBasesDocumentsService)Patch

Patch: Updates the specified document. This method is a long-runningoperation(https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).The returned `Operation` type has the following method-specific fields: -`metadata`: KnowledgeOperationMetadata - `response`: Document Note: The`projects.agent.knowledgeBases.documents` resource is deprecated; only use`projects.knowledgeBases.documents`.

  • name: Optional. The document resource name. The name must be empty whencreating a document. Format:`projects//locations//knowledgeBases//documents/`.

func (*ProjectsKnowledgeBasesDocumentsService)Reload

Reload: Reloads the specified document from its specified source,content_uri or content. The previously loaded content of the document willbe deleted. Note: Even when the content of the document has not changed,there still may be side effects because of internal implementation changes.Note: If the document source is Google Cloud Storage URI, its metadata willbe replaced with the custom metadata from Google Cloud Storage if the`import_gcs_custom_metadata` field is set to true in the request. Thismethod is a long-running operation(https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).The returned `Operation` type has the following method-specific fields: -`metadata`: KnowledgeOperationMetadata - `response`: Document Note: The`projects.agent.knowledgeBases.documents` resource is deprecated; only use`projects.knowledgeBases.documents`.

  • name: The name of the document to reload. Format:`projects//locations//knowledgeBases//documents/`.

typeProjectsKnowledgeBasesGetCall

type ProjectsKnowledgeBasesGetCall struct {// contains filtered or unexported fields}

func (*ProjectsKnowledgeBasesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsKnowledgeBasesGetCall)Do

Do executes the "dialogflow.projects.knowledgeBases.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsKnowledgeBasesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsKnowledgeBasesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsKnowledgeBasesGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsKnowledgeBasesListCall

type ProjectsKnowledgeBasesListCall struct {// contains filtered or unexported fields}

func (*ProjectsKnowledgeBasesListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsKnowledgeBasesListCall)Do

Do executes the "dialogflow.projects.knowledgeBases.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse.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 becausehttp.StatusNotModified was returned.

func (*ProjectsKnowledgeBasesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsKnowledgeBasesListCall)Filteradded inv0.33.0

Filter sets the optional parameter "filter": The filter expression used tofilter knowledge bases returned by the list method. The expression has thefollowing syntax: [AND ] ... The following fields and operators aresupported: * display_name with has(:) operator * language_code withequals(=) operator Examples: * 'language_code=en-us' matches knowledge baseswith en-us language code. * 'display_name:articles' matches knowledge baseswhose display name contains "articles". * 'display_name:"Best Articles"'matches knowledge bases whose display name contains "Best Articles". *'language_code=en-gb AND display_name=articles' matches all knowledge baseswhose display name contains "articles" and whose language code is "en-gb".Note: An empty filter string (i.e. "") is a no-op and will result in nofiltering. For more information about filtering, see API Filtering(https://aip.dev/160).

func (*ProjectsKnowledgeBasesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsKnowledgeBasesListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsKnowledgeBasesListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 10 and at most 100.

func (*ProjectsKnowledgeBasesListCall)PageToken

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsKnowledgeBasesListCall)Pages

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.

typeProjectsKnowledgeBasesPatchCall

type ProjectsKnowledgeBasesPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsKnowledgeBasesPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsKnowledgeBasesPatchCall)Do

Do executes the "dialogflow.projects.knowledgeBases.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsKnowledgeBasesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsKnowledgeBasesPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsKnowledgeBasesPatchCall)UpdateMask

UpdateMask sets the optional parameter "updateMask": Not specified means`update all`. Currently, only `display_name` can be updated, anInvalidArgument will be returned for attempting to update other fields.

typeProjectsKnowledgeBasesService

type ProjectsKnowledgeBasesService struct {Documents *ProjectsKnowledgeBasesDocumentsService// contains filtered or unexported fields}

funcNewProjectsKnowledgeBasesService

func NewProjectsKnowledgeBasesService(s *Service) *ProjectsKnowledgeBasesService

func (*ProjectsKnowledgeBasesService)Create

func (r *ProjectsKnowledgeBasesService) Create(parentstring, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsKnowledgeBasesCreateCall

Create: Creates a knowledge base. Note: The `projects.agent.knowledgeBases`resource is deprecated; only use `projects.knowledgeBases`.

  • parent: The project to create a knowledge base for. Format:`projects//locations/`.

func (*ProjectsKnowledgeBasesService)Delete

Delete: Deletes the specified knowledge base. Note: The`projects.agent.knowledgeBases` resource is deprecated; only use`projects.knowledgeBases`.

  • name: The name of the knowledge base to delete. Format:`projects//locations//knowledgeBases/`.

func (*ProjectsKnowledgeBasesService)Get

Get: Retrieves the specified knowledge base. Note: The`projects.agent.knowledgeBases` resource is deprecated; only use`projects.knowledgeBases`.

  • name: The name of the knowledge base to retrieve. Format`projects//locations//knowledgeBases/`.

func (*ProjectsKnowledgeBasesService)List

List: Returns the list of all knowledge bases of the specified agent. Note:The `projects.agent.knowledgeBases` resource is deprecated; only use`projects.knowledgeBases`.

  • parent: The project to list of knowledge bases for. Format:`projects//locations/`.

func (*ProjectsKnowledgeBasesService)Patch

Patch: Updates the specified knowledge base. Note: The`projects.agent.knowledgeBases` resource is deprecated; only use`projects.knowledgeBases`.

  • name: The knowledge base resource name. The name must be empty whencreating a knowledge base. Format: `projects//locations//knowledgeBases/`.

typeProjectsLocationsAgentEntityTypesBatchDeleteCalladded inv0.9.0

type ProjectsLocationsAgentEntityTypesBatchDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEntityTypesBatchDeleteCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEntityTypesBatchDeleteCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.entityTypes.batchDelete" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEntityTypesBatchDeleteCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEntityTypesBatchDeleteCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentEntityTypesBatchUpdateCalladded inv0.9.0

type ProjectsLocationsAgentEntityTypesBatchUpdateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEntityTypesBatchUpdateCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEntityTypesBatchUpdateCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.entityTypes.batchUpdate" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEntityTypesBatchUpdateCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEntityTypesBatchUpdateCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentEntityTypesCreateCalladded inv0.9.0

type ProjectsLocationsAgentEntityTypesCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEntityTypesCreateCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEntityTypesCreateCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.entityTypes.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEntityTypesCreateCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEntityTypesCreateCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentEntityTypesCreateCall)LanguageCodeadded inv0.9.0

LanguageCode sets the optional parameter "languageCode": The language usedto access language-specific data. If not specified, the agent's defaultlanguage is used. For more information, see Multilingual intent and entitydata(https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).

typeProjectsLocationsAgentEntityTypesDeleteCalladded inv0.9.0

type ProjectsLocationsAgentEntityTypesDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEntityTypesDeleteCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEntityTypesDeleteCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.entityTypes.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsAgentEntityTypesDeleteCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEntityTypesDeleteCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentEntityTypesEntitiesBatchCreateCalladded inv0.9.0

type ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchCreate" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCalladded inv0.9.0

type ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchDelete" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCalladded inv0.9.0

type ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.entityTypes.entities.batchUpdate" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentEntityTypesEntitiesServiceadded inv0.9.0

type ProjectsLocationsAgentEntityTypesEntitiesService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsAgentEntityTypesEntitiesServiceadded inv0.9.0

func NewProjectsLocationsAgentEntityTypesEntitiesService(s *Service) *ProjectsLocationsAgentEntityTypesEntitiesService

func (*ProjectsLocationsAgentEntityTypesEntitiesService)BatchCreateadded inv0.9.0

BatchCreate: Creates multiple new entities in the specified entity type.This method is a long-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)Note: You should always train an agent prior to sending it queries. See thetraining documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The name of the entity type to create entities in. Supportedformats: - `projects//agent/entityTypes/` -`projects//locations//agent/entityTypes/`.

func (*ProjectsLocationsAgentEntityTypesEntitiesService)BatchDeleteadded inv0.9.0

BatchDelete: Deletes entities in the specified entity type. This method is along-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)Note: You should always train an agent prior to sending it queries. See thetraining documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The name of the entity type to delete entries for. Supportedformats: - `projects//agent/entityTypes/` -`projects//locations//agent/entityTypes/`.

func (*ProjectsLocationsAgentEntityTypesEntitiesService)BatchUpdateadded inv0.9.0

BatchUpdate: Updates or creates multiple entities in the specified entitytype. This method does not affect entities in the entity type that aren'texplicitly specified in the request. Note: You should always train an agentprior to sending it queries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training). This method is along-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

  • parent: The name of the entity type to update or create entities in.Supported formats: - `projects//agent/entityTypes/` -`projects//locations//agent/entityTypes/`.

typeProjectsLocationsAgentEntityTypesGetCalladded inv0.9.0

type ProjectsLocationsAgentEntityTypesGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEntityTypesGetCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEntityTypesGetCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.entityTypes.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEntityTypesGetCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEntityTypesGetCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentEntityTypesGetCall)IfNoneMatchadded inv0.9.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsAgentEntityTypesGetCall)LanguageCodeadded inv0.9.0

LanguageCode sets the optional parameter "languageCode": The language usedto access language-specific data. If not specified, the agent's defaultlanguage is used. For more information, see Multilingual intent and entitydata(https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).

typeProjectsLocationsAgentEntityTypesListCalladded inv0.9.0

type ProjectsLocationsAgentEntityTypesListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEntityTypesListCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEntityTypesListCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.entityTypes.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListEntityTypesResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEntityTypesListCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEntityTypesListCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentEntityTypesListCall)IfNoneMatchadded inv0.9.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsAgentEntityTypesListCall)LanguageCodeadded inv0.9.0

LanguageCode sets the optional parameter "languageCode": The language usedto access language-specific data. If not specified, the agent's defaultlanguage is used. For more information, see Multilingual intent and entitydata(https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).

func (*ProjectsLocationsAgentEntityTypesListCall)PageSizeadded inv0.9.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsLocationsAgentEntityTypesListCall)PageTokenadded inv0.9.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsAgentEntityTypesListCall)Pagesadded inv0.9.0

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.

typeProjectsLocationsAgentEntityTypesPatchCalladded inv0.9.0

type ProjectsLocationsAgentEntityTypesPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEntityTypesPatchCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEntityTypesPatchCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.entityTypes.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1EntityType.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEntityTypesPatchCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEntityTypesPatchCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentEntityTypesPatchCall)LanguageCodeadded inv0.9.0

LanguageCode sets the optional parameter "languageCode": The language usedto access language-specific data. If not specified, the agent's defaultlanguage is used. For more information, see Multilingual intent and entitydata(https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).

func (*ProjectsLocationsAgentEntityTypesPatchCall)UpdateMaskadded inv0.9.0

UpdateMask sets the optional parameter "updateMask": The mask to controlwhich fields get updated.

typeProjectsLocationsAgentEntityTypesServiceadded inv0.9.0

type ProjectsLocationsAgentEntityTypesService struct {Entities *ProjectsLocationsAgentEntityTypesEntitiesService// contains filtered or unexported fields}

funcNewProjectsLocationsAgentEntityTypesServiceadded inv0.9.0

func NewProjectsLocationsAgentEntityTypesService(s *Service) *ProjectsLocationsAgentEntityTypesService

func (*ProjectsLocationsAgentEntityTypesService)BatchDeleteadded inv0.9.0

BatchDelete: Deletes entity types in the specified agent. This method is along-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)Note: You should always train an agent prior to sending it queries. See thetraining documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The name of the agent to delete all entities types for. Supportedformats: - `projects//agent`, - `projects//locations//agent`.

func (*ProjectsLocationsAgentEntityTypesService)BatchUpdateadded inv0.9.0

BatchUpdate: Updates/Creates multiple entity types in the specified agent.This method is a long-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: BatchUpdateEntityTypesResponse Note: You should always trainan agent prior to sending it queries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The name of the agent to update or create entity types in.Supported formats: - `projects//agent` - `projects//locations//agent`.

func (*ProjectsLocationsAgentEntityTypesService)Createadded inv0.9.0

Create: Creates an entity type in the specified agent. Note: You shouldalways train an agent prior to sending it queries. See the trainingdocumentation (https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The agent to create a entity type for. Supported formats: -`projects//agent` - `projects//locations//agent`.

func (*ProjectsLocationsAgentEntityTypesService)Deleteadded inv0.9.0

Delete: Deletes the specified entity type. Note: You should always train anagent prior to sending it queries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • name: The name of the entity type to delete. Supported formats: -`projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`.

func (*ProjectsLocationsAgentEntityTypesService)Getadded inv0.9.0

Get: Retrieves the specified entity type.

  • name: The name of the entity type. Supported formats: -`projects//agent/entityTypes/` - `projects//locations//agent/entityTypes/`.

func (*ProjectsLocationsAgentEntityTypesService)Listadded inv0.9.0

List: Returns the list of all entity types in the specified agent.

  • parent: The agent to list all entity types from. Supported formats: -`projects//agent` - `projects//locations//agent`.

func (*ProjectsLocationsAgentEntityTypesService)Patchadded inv0.9.0

Patch: Updates the specified entity type. Note: You should always train anagent prior to sending it queries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • name: The unique identifier of the entity type. Required forEntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypesmethods. Supported formats: - `projects//agent/entityTypes/` -`projects//locations//agent/entityTypes/`.

typeProjectsLocationsAgentEnvironmentsCreateCalladded inv0.18.0

type ProjectsLocationsAgentEnvironmentsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsCreateCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsCreateCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.locations.agent.environments.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEnvironmentsCreateCall)EnvironmentIdadded inv0.18.0

EnvironmentId sets the optional parameter "environmentId": Required. Theunique id of the new environment.

func (*ProjectsLocationsAgentEnvironmentsCreateCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsCreateCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentEnvironmentsDeleteCalladded inv0.18.0

type ProjectsLocationsAgentEnvironmentsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsDeleteCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsDeleteCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.locations.agent.environments.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsAgentEnvironmentsDeleteCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsDeleteCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentEnvironmentsGetCalladded inv0.18.0

type ProjectsLocationsAgentEnvironmentsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsGetCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsGetCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.locations.agent.environments.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEnvironmentsGetCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsGetCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentEnvironmentsGetCall)IfNoneMatchadded inv0.18.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsAgentEnvironmentsGetHistoryCalladded inv0.18.0

type ProjectsLocationsAgentEnvironmentsGetHistoryCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsGetHistoryCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsGetHistoryCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.locations.agent.environments.getHistory" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1EnvironmentHistory.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEnvironmentsGetHistoryCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsGetHistoryCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentEnvironmentsGetHistoryCall)IfNoneMatchadded inv0.18.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsAgentEnvironmentsGetHistoryCall)PageSizeadded inv0.18.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsLocationsAgentEnvironmentsGetHistoryCall)PageTokenadded inv0.18.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsAgentEnvironmentsGetHistoryCall)Pagesadded inv0.18.0

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.

typeProjectsLocationsAgentEnvironmentsIntentsListCalladded inv0.48.0

type ProjectsLocationsAgentEnvironmentsIntentsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsIntentsListCall)Contextadded inv0.48.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsIntentsListCall)Doadded inv0.48.0

Do executes the "dialogflow.projects.locations.agent.environments.intents.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListIntentsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEnvironmentsIntentsListCall)Fieldsadded inv0.48.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsIntentsListCall)Headeradded inv0.48.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentEnvironmentsIntentsListCall)IfNoneMatchadded inv0.48.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsAgentEnvironmentsIntentsListCall)IntentViewadded inv0.48.0

IntentView sets the optional parameter "intentView": The resource view toapply 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 (*ProjectsLocationsAgentEnvironmentsIntentsListCall)LanguageCodeadded inv0.48.0

LanguageCode sets the optional parameter "languageCode": The language usedto access language-specific data. If not specified, the agent's defaultlanguage is used. For more information, see Multilingual intent and entitydata(https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).

func (*ProjectsLocationsAgentEnvironmentsIntentsListCall)PageSizeadded inv0.48.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsLocationsAgentEnvironmentsIntentsListCall)PageTokenadded inv0.48.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsAgentEnvironmentsIntentsListCall)Pagesadded inv0.48.0

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.

typeProjectsLocationsAgentEnvironmentsIntentsServiceadded inv0.48.0

type ProjectsLocationsAgentEnvironmentsIntentsService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsAgentEnvironmentsIntentsServiceadded inv0.48.0

func NewProjectsLocationsAgentEnvironmentsIntentsService(s *Service) *ProjectsLocationsAgentEnvironmentsIntentsService

func (*ProjectsLocationsAgentEnvironmentsIntentsService)Listadded inv0.48.0

List: Returns the list of all intents in the specified agent.

  • parent: The agent to list all intents from. Format: `projects//agent` or`projects//locations//agent`. Alternatively, you can specify theenvironment to list intents for. Format: `projects//agent/environments/`or `projects//locations//agent/environments/`. Note: training phrases ofthe intents will not be returned for non-draft environment.

typeProjectsLocationsAgentEnvironmentsListCalladded inv0.18.0

type ProjectsLocationsAgentEnvironmentsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsListCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsListCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.locations.agent.environments.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListEnvironmentsResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEnvironmentsListCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsListCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentEnvironmentsListCall)IfNoneMatchadded inv0.18.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsAgentEnvironmentsListCall)PageSizeadded inv0.18.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsLocationsAgentEnvironmentsListCall)PageTokenadded inv0.18.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsAgentEnvironmentsListCall)Pagesadded inv0.18.0

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.

typeProjectsLocationsAgentEnvironmentsPatchCalladded inv0.18.0

type ProjectsLocationsAgentEnvironmentsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsPatchCall)AllowLoadToDraftAndDiscardChangesadded inv0.46.0

func (c *ProjectsLocationsAgentEnvironmentsPatchCall) AllowLoadToDraftAndDiscardChanges(allowLoadToDraftAndDiscardChangesbool) *ProjectsLocationsAgentEnvironmentsPatchCall

AllowLoadToDraftAndDiscardChanges sets the optional parameter"allowLoadToDraftAndDiscardChanges": This field is used to preventaccidental overwrite of the draft environment, which is an operation thatcannot be undone. To confirm that the caller desires this overwrite, thisfield must be explicitly set to true when updating the draft environment(environment ID = `-`).

func (*ProjectsLocationsAgentEnvironmentsPatchCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsPatchCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.locations.agent.environments.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Environment.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEnvironmentsPatchCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsPatchCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentEnvironmentsPatchCall)UpdateMaskadded inv0.18.0

UpdateMask sets the optional parameter "updateMask": Required. The mask tocontrol which fields get updated.

typeProjectsLocationsAgentEnvironmentsServiceadded inv0.9.0

type ProjectsLocationsAgentEnvironmentsService struct {Intents *ProjectsLocationsAgentEnvironmentsIntentsServiceUsers *ProjectsLocationsAgentEnvironmentsUsersService// contains filtered or unexported fields}

funcNewProjectsLocationsAgentEnvironmentsServiceadded inv0.9.0

func NewProjectsLocationsAgentEnvironmentsService(s *Service) *ProjectsLocationsAgentEnvironmentsService

func (*ProjectsLocationsAgentEnvironmentsService)Createadded inv0.18.0

Create: Creates an agent environment.

  • parent: The agent to create an environment for. Supported formats: -`projects//agent` - `projects//locations//agent`.

func (*ProjectsLocationsAgentEnvironmentsService)Deleteadded inv0.18.0

Delete: Deletes the specified agent environment.

  • name: The name of the environment to delete. / Format: -`projects//agent/environments/` -`projects//locations//agent/environments/`.

func (*ProjectsLocationsAgentEnvironmentsService)Getadded inv0.18.0

Get: Retrieves the specified agent environment.

  • name: The name of the environment. Supported formats: -`projects//agent/environments/` -`projects//locations//agent/environments/`.

func (*ProjectsLocationsAgentEnvironmentsService)GetHistoryadded inv0.18.0

GetHistory: Gets the history of the specified environment.

  • parent: The name of the environment to retrieve history for. Supportedformats: - `projects//agent/environments/` -`projects//locations//agent/environments/`.

func (*ProjectsLocationsAgentEnvironmentsService)Listadded inv0.18.0

List: Returns the list of all non-draft environments of the specified agent.

  • parent: The agent to list all environments from. Format: -`projects//agent` - `projects//locations//agent`.

func (*ProjectsLocationsAgentEnvironmentsService)Patchadded inv0.18.0

Patch: Updates the specified agent environment. This method allows you todeploy new agent versions into the environment. When an environment ispointed to a new agent version by setting `environment.agent_version`, theenvironment is temporarily set to the `LOADING` state. During that time, theenvironment keeps on serving the previous version of the agent. After thenew agent version is done loading, the environment is set back to the`RUNNING` state. You can use "-" as Environment ID in environment name toupdate version in "draft" environment. WARNING: this will negate all recentchanges to draft and can't be undone. You may want to save the draft to aversion before calling this function.

  • name: Output only. The unique identifier of this agent environment.Supported formats: - `projects//agent/environments/` -`projects//locations//agent/environments/`.

typeProjectsLocationsAgentEnvironmentsUsersServiceadded inv0.9.0

type ProjectsLocationsAgentEnvironmentsUsersService struct {Sessions *ProjectsLocationsAgentEnvironmentsUsersSessionsService// contains filtered or unexported fields}

funcNewProjectsLocationsAgentEnvironmentsUsersServiceadded inv0.9.0

func NewProjectsLocationsAgentEnvironmentsUsersService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersService

typeProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCalladded inv0.9.0

type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCalladded inv0.9.0

type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCalladded inv0.9.0

type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall)IfNoneMatchadded inv0.9.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCalladded inv0.9.0

type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListContextsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall)IfNoneMatchadded inv0.9.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall)PageSizeadded inv0.9.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall)PageTokenadded inv0.9.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall)Pagesadded inv0.9.0

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.

typeProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCalladded inv0.9.0

type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.contexts.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall)UpdateMaskadded inv0.9.0

UpdateMask sets the optional parameter "updateMask": The mask to controlwhich fields get updated.

typeProjectsLocationsAgentEnvironmentsUsersSessionsContextsServiceadded inv0.9.0

type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsAgentEnvironmentsUsersSessionsContextsServiceadded inv0.9.0

func NewProjectsLocationsAgentEnvironmentsUsersSessionsContextsService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService)Createadded inv0.9.0

Create: Creates a context. If the specified context already exists,overrides the context.

  • parent: The session to create a context for. Supported formats: -`projects//agent/sessions/, - `projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService)Deleteadded inv0.9.0

Delete: Deletes the specified context.

  • name: The name of the context to delete. Supported formats: -`projects//agent/sessions//contexts/`, -`projects//locations//agent/sessions//contexts/`, -`projects//agent/environments//users//sessions//contexts/`, -`projects//locations//agent/environments//users//sessions//contexts/`, 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.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService)Getadded inv0.9.0

Get: Retrieves the specified context.

  • name: The name 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/`, 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.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService)Listadded inv0.9.0

List: Returns the list of all contexts in the specified session.

  • parent: The session to list all contexts from. Supported formats: -`projects//agent/sessions/, - `projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService)Patchadded inv0.9.0

Patch: Updates the specified context.

  • name: 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 charactersin `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` isnot specified, we assume default '-' user. The following context names arereserved for internal use by Dialogflow. You should not use these contextsor create contexts with these names: * `__system_counters__` *`*_id_dialog_context` * `*_dialog_params_size`.

typeProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCalladded inv0.9.0

type ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.deleteContexts" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCalladded inv0.9.0

type ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.detectIntent" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1DetectIntentResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCalladded inv0.9.0

type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCalladded inv0.9.0

type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCalladded inv0.9.0

type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall)IfNoneMatchadded inv0.9.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCalladded inv0.9.0

type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall)IfNoneMatchadded inv0.9.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall)PageSizeadded inv0.9.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall)PageTokenadded inv0.9.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall)Pagesadded inv0.9.0

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.

typeProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCalladded inv0.9.0

type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall)UpdateMaskadded inv0.9.0

UpdateMask sets the optional parameter "updateMask": The mask to controlwhich fields get updated.

typeProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesServiceadded inv0.9.0

type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesServiceadded inv0.9.0

func NewProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService)Createadded inv0.9.0

Create: Creates a session entity type. If the specified session entity typealready exists, overrides the session entity type. This method doesn't workwith Google Assistant integration. Contact Dialogflow support if you need touse session entities with Google Assistant integration.

  • parent: The session to create a session entity type for. Supportedformats: - `projects//agent/sessions/, -`projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService)Deleteadded inv0.9.0

Delete: Deletes the specified session entity type. This method doesn't workwith Google Assistant integration. Contact Dialogflow support if you need touse session entities with Google Assistant integration.

  • name: The name of the entity type to delete. 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.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService)Getadded inv0.9.0

Get: Retrieves the specified session entity type. This method doesn't workwith Google Assistant integration. Contact Dialogflow support if you need touse session entities with Google Assistant integration.

  • name: The name of the 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.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService)Listadded inv0.9.0

List: Returns the list of all session entity types in the specified session.This method doesn't work with Google Assistant integration. ContactDialogflow support if you need to use session entities with Google Assistantintegration.

  • parent: The session to list all session entity types from. Supportedformats: - `projects//agent/sessions/, -`projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService)Patchadded inv0.9.0

Patch: Updates the specified session entity type. This method doesn't workwith Google Assistant integration. Contact Dialogflow support if you need touse session entities with Google Assistant integration.

  • name: The unique identifier of this session entity type. Supportedformats: - `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 thedisplay name of an existing entity type in the same agent that will beoverridden or supplemented.

typeProjectsLocationsAgentEnvironmentsUsersSessionsServiceadded inv0.9.0

type ProjectsLocationsAgentEnvironmentsUsersSessionsService struct {Contexts *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsServiceEntityTypes *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService// contains filtered or unexported fields}

funcNewProjectsLocationsAgentEnvironmentsUsersSessionsServiceadded inv0.9.0

func NewProjectsLocationsAgentEnvironmentsUsersSessionsService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsService

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsService)DeleteContextsadded inv0.9.0

DeleteContexts: Deletes all active contexts in the specified session.

  • parent: The name of the session to delete all contexts from. Supportedformats: - `projects//agent/sessions/, -`projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsLocationsAgentEnvironmentsUsersSessionsService)DetectIntentadded inv0.9.0

DetectIntent: Processes a natural language query and returns structured,actionable data as a result. This method is not idempotent, because it maycause contexts and session entity types to be updated, which in turn mightaffect results of future queries. If you might use Agent Assist(https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now orin the future, consider using AnalyzeContent instead of `DetectIntent`.`AnalyzeContent` has additional functionality for Agent Assist and otherCCAI products. Note: Always use agent versions for production traffic. SeeVersions and environments(https://cloud.google.com/dialogflow/es/docs/agents-versions).

- session: The name of the session this query is sent to. Supported formats:

  • `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment (`Environment ID`might be referred to as environment name at some places). If `User ID` isnot specified, we are using "-". It's up to the API caller to choose anappropriate `Session ID` and `User Id`. They can be a random number orsome type of user and session identifiers (preferably hashed). The lengthof the `Session ID` and `User ID` must not exceed 36 characters. For moreinformation, see the API interactions guide(https://cloud.google.com/dialogflow/docs/api-overview). Note: Always useagent versions for production traffic. See Versions and environments(https://cloud.google.com/dialogflow/es/docs/agents-versions).

typeProjectsLocationsAgentExportCalladded inv0.9.0

type ProjectsLocationsAgentExportCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentExportCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentExportCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.export" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentExportCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentExportCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentGetFulfillmentCalladded inv0.18.0

type ProjectsLocationsAgentGetFulfillmentCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentGetFulfillmentCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentGetFulfillmentCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.locations.agent.getFulfillment" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Fulfillment.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentGetFulfillmentCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentGetFulfillmentCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentGetFulfillmentCall)IfNoneMatchadded inv0.18.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsAgentGetValidationResultCalladded inv0.31.0

type ProjectsLocationsAgentGetValidationResultCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentGetValidationResultCall)Contextadded inv0.31.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentGetValidationResultCall)Doadded inv0.31.0

Do executes the "dialogflow.projects.locations.agent.getValidationResult" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ValidationResult.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentGetValidationResultCall)Fieldsadded inv0.31.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentGetValidationResultCall)Headeradded inv0.31.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentGetValidationResultCall)IfNoneMatchadded inv0.31.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsAgentGetValidationResultCall)LanguageCodeadded inv0.31.0

LanguageCode sets the optional parameter "languageCode": The language forwhich you want a validation result. If not specified, the agent's defaultlanguage 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.

typeProjectsLocationsAgentImportCalladded inv0.9.0

type ProjectsLocationsAgentImportCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentImportCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentImportCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.import" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentImportCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentImportCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentIntentsBatchDeleteCalladded inv0.9.0

type ProjectsLocationsAgentIntentsBatchDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentIntentsBatchDeleteCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentIntentsBatchDeleteCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.intents.batchDelete" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentIntentsBatchDeleteCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentIntentsBatchDeleteCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentIntentsBatchUpdateCalladded inv0.9.0

type ProjectsLocationsAgentIntentsBatchUpdateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentIntentsBatchUpdateCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentIntentsBatchUpdateCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.intents.batchUpdate" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentIntentsBatchUpdateCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentIntentsBatchUpdateCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentIntentsCreateCalladded inv0.9.0

type ProjectsLocationsAgentIntentsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentIntentsCreateCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentIntentsCreateCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.intents.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentIntentsCreateCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentIntentsCreateCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentIntentsCreateCall)IntentViewadded inv0.9.0

IntentView sets the optional parameter "intentView": The resource view toapply 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 (*ProjectsLocationsAgentIntentsCreateCall)LanguageCodeadded inv0.9.0

LanguageCode sets the optional parameter "languageCode": The language usedto access language-specific data. If not specified, the agent's defaultlanguage is used. For more information, see Multilingual intent and entitydata(https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).

typeProjectsLocationsAgentIntentsDeleteCalladded inv0.9.0

type ProjectsLocationsAgentIntentsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentIntentsDeleteCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentIntentsDeleteCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.intents.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsAgentIntentsDeleteCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentIntentsDeleteCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentIntentsGetCalladded inv0.9.0

type ProjectsLocationsAgentIntentsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentIntentsGetCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentIntentsGetCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.intents.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentIntentsGetCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentIntentsGetCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentIntentsGetCall)IfNoneMatchadded inv0.9.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsAgentIntentsGetCall)IntentViewadded inv0.9.0

IntentView sets the optional parameter "intentView": The resource view toapply 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 (*ProjectsLocationsAgentIntentsGetCall)LanguageCodeadded inv0.9.0

LanguageCode sets the optional parameter "languageCode": The language usedto access language-specific data. If not specified, the agent's defaultlanguage is used. For more information, see Multilingual intent and entitydata(https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).

typeProjectsLocationsAgentIntentsListCalladded inv0.9.0

type ProjectsLocationsAgentIntentsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentIntentsListCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentIntentsListCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.intents.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListIntentsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentIntentsListCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentIntentsListCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentIntentsListCall)IfNoneMatchadded inv0.9.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsAgentIntentsListCall)IntentViewadded inv0.9.0

IntentView sets the optional parameter "intentView": The resource view toapply 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 (*ProjectsLocationsAgentIntentsListCall)LanguageCodeadded inv0.9.0

LanguageCode sets the optional parameter "languageCode": The language usedto access language-specific data. If not specified, the agent's defaultlanguage is used. For more information, see Multilingual intent and entitydata(https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).

func (*ProjectsLocationsAgentIntentsListCall)PageSizeadded inv0.9.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsLocationsAgentIntentsListCall)PageTokenadded inv0.9.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsAgentIntentsListCall)Pagesadded inv0.9.0

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.

typeProjectsLocationsAgentIntentsPatchCalladded inv0.9.0

type ProjectsLocationsAgentIntentsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentIntentsPatchCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentIntentsPatchCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.intents.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Intent.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentIntentsPatchCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentIntentsPatchCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentIntentsPatchCall)IntentViewadded inv0.9.0

IntentView sets the optional parameter "intentView": The resource view toapply 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 (*ProjectsLocationsAgentIntentsPatchCall)LanguageCodeadded inv0.9.0

LanguageCode sets the optional parameter "languageCode": The language usedto access language-specific data. If not specified, the agent's defaultlanguage is used. For more information, see Multilingual intent and entitydata(https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).

func (*ProjectsLocationsAgentIntentsPatchCall)UpdateMaskadded inv0.9.0

UpdateMask sets the optional parameter "updateMask": The mask to controlwhich fields get updated.

typeProjectsLocationsAgentIntentsServiceadded inv0.9.0

type ProjectsLocationsAgentIntentsService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsAgentIntentsServiceadded inv0.9.0

func NewProjectsLocationsAgentIntentsService(s *Service) *ProjectsLocationsAgentIntentsService

func (*ProjectsLocationsAgentIntentsService)BatchDeleteadded inv0.9.0

BatchDelete: Deletes intents in the specified agent. This method is along-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)Note: You should always train an agent prior to sending it queries. See thetraining documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The name of the agent to delete all entities types for. Supportedformats: - `projects//agent` - `projects//locations//agent`.

func (*ProjectsLocationsAgentIntentsService)BatchUpdateadded inv0.9.0

BatchUpdate: Updates/Creates multiple intents in the specified agent. Thismethod is a long-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: BatchUpdateIntentsResponse Note: You should always train anagent prior to sending it queries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The name of the agent to update or create intents in. Supportedformats: - `projects//agent` - `projects//locations//agent`.

func (*ProjectsLocationsAgentIntentsService)Createadded inv0.9.0

Create: Creates an intent in the specified agent. Note: You should alwaystrain an agent prior to sending it queries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The agent to create a intent for. Supported formats: -`projects//agent` - `projects//locations//agent`.

func (*ProjectsLocationsAgentIntentsService)Deleteadded inv0.9.0

Delete: Deletes the specified intent and its direct or indirect followupintents. Note: You should always train an agent prior to sending it queries.See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • name: The name of the intent to delete. If this intent has direct orindirect followup intents, we also delete them. Supported formats: -`projects//agent/intents/` - `projects//locations//agent/intents/`.

func (*ProjectsLocationsAgentIntentsService)Getadded inv0.9.0

Get: Retrieves the specified intent.

  • name: The name of the intent. Supported formats: -`projects//agent/intents/` - `projects//locations//agent/intents/`.

func (*ProjectsLocationsAgentIntentsService)Listadded inv0.9.0

List: Returns the list of all intents in the specified agent.

  • parent: The agent to list all intents from. Format: `projects//agent` or`projects//locations//agent`. Alternatively, you can specify theenvironment to list intents for. Format: `projects//agent/environments/`or `projects//locations//agent/environments/`. Note: training phrases ofthe intents will not be returned for non-draft environment.

func (*ProjectsLocationsAgentIntentsService)Patchadded inv0.9.0

Patch: Updates the specified intent. Note: You should always train an agentprior to sending it queries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • name: Optional. The unique identifier of this intent. Required forIntents.UpdateIntent and Intents.BatchUpdateIntents methods. Supportedformats: - `projects//agent/intents/` -`projects//locations//agent/intents/`.

typeProjectsLocationsAgentRestoreCalladded inv0.9.0

type ProjectsLocationsAgentRestoreCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentRestoreCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentRestoreCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.restore" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentRestoreCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentRestoreCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentSearchCalladded inv0.26.0

type ProjectsLocationsAgentSearchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentSearchCall)Contextadded inv0.26.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentSearchCall)Doadded inv0.26.0

Do executes the "dialogflow.projects.locations.agent.search" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SearchAgentsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentSearchCall)Fieldsadded inv0.26.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentSearchCall)Headeradded inv0.26.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentSearchCall)IfNoneMatchadded inv0.26.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsAgentSearchCall)PageSizeadded inv0.26.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsLocationsAgentSearchCall)PageTokenadded inv0.26.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsAgentSearchCall)Pagesadded inv0.26.0

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.

typeProjectsLocationsAgentServiceadded inv0.9.0

type ProjectsLocationsAgentService struct {EntityTypes *ProjectsLocationsAgentEntityTypesServiceEnvironments *ProjectsLocationsAgentEnvironmentsServiceIntents *ProjectsLocationsAgentIntentsServiceSessions *ProjectsLocationsAgentSessionsServiceVersions *ProjectsLocationsAgentVersionsService// contains filtered or unexported fields}

funcNewProjectsLocationsAgentServiceadded inv0.9.0

func NewProjectsLocationsAgentService(s *Service) *ProjectsLocationsAgentService

func (*ProjectsLocationsAgentService)Exportadded inv0.9.0

func (r *ProjectsLocationsAgentService) Export(parentstring, googleclouddialogflowv2beta1exportagentrequest *GoogleCloudDialogflowV2beta1ExportAgentRequest) *ProjectsLocationsAgentExportCall

Export: Exports the specified agent to a ZIP file. This method is along-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: ExportAgentResponse

  • parent: The project that the agent to export is associated with. Format:`projects/` or `projects//locations/`.

func (*ProjectsLocationsAgentService)GetFulfillmentadded inv0.18.0

GetFulfillment: Retrieves the fulfillment.

  • name: The name of the fulfillment. Supported formats: -`projects//agent/fulfillment` - `projects//locations//agent/fulfillment`.

func (*ProjectsLocationsAgentService)GetValidationResultadded inv0.31.0

GetValidationResult: Gets agent validation result. Agent validation isperformed during training time and is updated automatically when training iscompleted.

  • parent: The project that the agent is associated with. Format: `projects/`or `projects//locations/`.

func (*ProjectsLocationsAgentService)Importadded inv0.9.0

func (r *ProjectsLocationsAgentService) Import(parentstring, googleclouddialogflowv2beta1importagentrequest *GoogleCloudDialogflowV2beta1ImportAgentRequest) *ProjectsLocationsAgentImportCall

Import: Imports the specified agent from a ZIP file. Uploads new intents andentity types without deleting the existing ones. Intents and entity typeswith the same name are replaced with the new versions fromImportAgentRequest. After the import, the imported draft agent will betrained automatically (unless disabled in agent settings). However, once theimport is done, training may not be completed yet. Please call TrainAgentand wait for the operation it returns in order to train explicitly. Thismethod is a long-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)The operation only tracks when importing is complete, not when it is donetraining. Note: You should always train an agent prior to sending itqueries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The project that the agent to import is associated with. Format:`projects/` or `projects//locations/`.

func (*ProjectsLocationsAgentService)Restoreadded inv0.9.0

func (r *ProjectsLocationsAgentService) Restore(parentstring, googleclouddialogflowv2beta1restoreagentrequest *GoogleCloudDialogflowV2beta1RestoreAgentRequest) *ProjectsLocationsAgentRestoreCall

Restore: Restores the specified agent from a ZIP file. Replaces the currentagent version with a new one. All the intents and entity types in the olderversion are deleted. After the restore, the restored draft agent will betrained automatically (unless disabled in agent settings). However, once therestore is done, training may not be completed yet. Please call TrainAgentand wait for the operation it returns in order to train explicitly. Thismethod is a long-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)The operation only tracks when restoring is complete, not when it is donetraining. Note: You should always train an agent prior to sending itqueries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The project that the agent to restore is associated with. Format:`projects/` or `projects//locations/`.

func (*ProjectsLocationsAgentService)Searchadded inv0.26.0

Search: Returns the list of agents. Since there is at most oneconversational agent per project, this method is useful primarily forlisting all agents across projects the caller has access to. One can achievethat with a wildcard project collection id "-". Refer to ListSub-Collections(https://cloud.google.com/apis/design/design_patterns#list_sub-collections).

  • parent: The project to list agents from. Format: `projects/` or`projects//locations/`.

func (*ProjectsLocationsAgentService)Trainadded inv0.9.0

func (r *ProjectsLocationsAgentService) Train(parentstring, googleclouddialogflowv2beta1trainagentrequest *GoogleCloudDialogflowV2beta1TrainAgentRequest) *ProjectsLocationsAgentTrainCall

Train: Trains the specified agent. This method is a long-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: An empty Struct message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)- `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)Note: You should always train an agent prior to sending it queries. See thetraining documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The project that the agent to train is associated with. Format:`projects/` or `projects//locations/`.

func (*ProjectsLocationsAgentService)UpdateFulfillmentadded inv0.29.0

func (r *ProjectsLocationsAgentService) UpdateFulfillment(nameidstring, googleclouddialogflowv2beta1fulfillment *GoogleCloudDialogflowV2beta1Fulfillment) *ProjectsLocationsAgentUpdateFulfillmentCall

UpdateFulfillment: Updates the fulfillment.

  • name: The unique identifier of the fulfillment. Supported formats: -`projects//agent/fulfillment` - `projects//locations//agent/fulfillment`This field is not used for Fulfillment in an Environment.

typeProjectsLocationsAgentSessionsContextsCreateCalladded inv0.9.0

type ProjectsLocationsAgentSessionsContextsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentSessionsContextsCreateCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentSessionsContextsCreateCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.sessions.contexts.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentSessionsContextsCreateCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentSessionsContextsCreateCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentSessionsContextsDeleteCalladded inv0.9.0

type ProjectsLocationsAgentSessionsContextsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentSessionsContextsDeleteCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentSessionsContextsDeleteCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.sessions.contexts.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsAgentSessionsContextsDeleteCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentSessionsContextsDeleteCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentSessionsContextsGetCalladded inv0.9.0

type ProjectsLocationsAgentSessionsContextsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentSessionsContextsGetCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentSessionsContextsGetCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.sessions.contexts.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentSessionsContextsGetCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentSessionsContextsGetCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentSessionsContextsGetCall)IfNoneMatchadded inv0.9.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsAgentSessionsContextsListCalladded inv0.9.0

type ProjectsLocationsAgentSessionsContextsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentSessionsContextsListCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentSessionsContextsListCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.sessions.contexts.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListContextsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentSessionsContextsListCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentSessionsContextsListCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentSessionsContextsListCall)IfNoneMatchadded inv0.9.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsAgentSessionsContextsListCall)PageSizeadded inv0.9.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsLocationsAgentSessionsContextsListCall)PageTokenadded inv0.9.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsAgentSessionsContextsListCall)Pagesadded inv0.9.0

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.

typeProjectsLocationsAgentSessionsContextsPatchCalladded inv0.9.0

type ProjectsLocationsAgentSessionsContextsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentSessionsContextsPatchCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentSessionsContextsPatchCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.sessions.contexts.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Context.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentSessionsContextsPatchCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentSessionsContextsPatchCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentSessionsContextsPatchCall)UpdateMaskadded inv0.9.0

UpdateMask sets the optional parameter "updateMask": The mask to controlwhich fields get updated.

typeProjectsLocationsAgentSessionsContextsServiceadded inv0.9.0

type ProjectsLocationsAgentSessionsContextsService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsAgentSessionsContextsServiceadded inv0.9.0

func NewProjectsLocationsAgentSessionsContextsService(s *Service) *ProjectsLocationsAgentSessionsContextsService

func (*ProjectsLocationsAgentSessionsContextsService)Createadded inv0.9.0

Create: Creates a context. If the specified context already exists,overrides the context.

  • parent: The session to create a context for. Supported formats: -`projects//agent/sessions/, - `projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsLocationsAgentSessionsContextsService)Deleteadded inv0.9.0

Delete: Deletes the specified context.

  • name: The name of the context to delete. Supported formats: -`projects//agent/sessions//contexts/`, -`projects//locations//agent/sessions//contexts/`, -`projects//agent/environments//users//sessions//contexts/`, -`projects//locations//agent/environments//users//sessions//contexts/`, 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.

func (*ProjectsLocationsAgentSessionsContextsService)Getadded inv0.9.0

Get: Retrieves the specified context.

  • name: The name 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/`, 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.

func (*ProjectsLocationsAgentSessionsContextsService)Listadded inv0.9.0

List: Returns the list of all contexts in the specified session.

  • parent: The session to list all contexts from. Supported formats: -`projects//agent/sessions/, - `projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsLocationsAgentSessionsContextsService)Patchadded inv0.9.0

Patch: Updates the specified context.

  • name: 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 charactersin `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` isnot specified, we assume default '-' user. The following context names arereserved for internal use by Dialogflow. You should not use these contextsor create contexts with these names: * `__system_counters__` *`*_id_dialog_context` * `*_dialog_params_size`.

typeProjectsLocationsAgentSessionsDeleteContextsCalladded inv0.9.0

type ProjectsLocationsAgentSessionsDeleteContextsCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentSessionsDeleteContextsCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentSessionsDeleteContextsCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.sessions.deleteContexts" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsAgentSessionsDeleteContextsCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentSessionsDeleteContextsCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentSessionsDetectIntentCalladded inv0.9.0

type ProjectsLocationsAgentSessionsDetectIntentCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentSessionsDetectIntentCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentSessionsDetectIntentCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.sessions.detectIntent" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1DetectIntentResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentSessionsDetectIntentCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentSessionsDetectIntentCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentSessionsEntityTypesCreateCalladded inv0.9.0

type ProjectsLocationsAgentSessionsEntityTypesCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentSessionsEntityTypesCreateCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentSessionsEntityTypesCreateCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentSessionsEntityTypesCreateCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentSessionsEntityTypesCreateCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentSessionsEntityTypesDeleteCalladded inv0.9.0

type ProjectsLocationsAgentSessionsEntityTypesDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentSessionsEntityTypesDeleteCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentSessionsEntityTypesDeleteCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsAgentSessionsEntityTypesDeleteCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentSessionsEntityTypesDeleteCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentSessionsEntityTypesGetCalladded inv0.9.0

type ProjectsLocationsAgentSessionsEntityTypesGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentSessionsEntityTypesGetCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentSessionsEntityTypesGetCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentSessionsEntityTypesGetCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentSessionsEntityTypesGetCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentSessionsEntityTypesGetCall)IfNoneMatchadded inv0.9.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsAgentSessionsEntityTypesListCalladded inv0.9.0

type ProjectsLocationsAgentSessionsEntityTypesListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentSessionsEntityTypesListCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentSessionsEntityTypesListCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsAgentSessionsEntityTypesListCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentSessionsEntityTypesListCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentSessionsEntityTypesListCall)IfNoneMatchadded inv0.9.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsAgentSessionsEntityTypesListCall)PageSizeadded inv0.9.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsLocationsAgentSessionsEntityTypesListCall)PageTokenadded inv0.9.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsAgentSessionsEntityTypesListCall)Pagesadded inv0.9.0

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.

typeProjectsLocationsAgentSessionsEntityTypesPatchCalladded inv0.9.0

type ProjectsLocationsAgentSessionsEntityTypesPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentSessionsEntityTypesPatchCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentSessionsEntityTypesPatchCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.sessions.entityTypes.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SessionEntityType.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentSessionsEntityTypesPatchCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentSessionsEntityTypesPatchCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentSessionsEntityTypesPatchCall)UpdateMaskadded inv0.9.0

UpdateMask sets the optional parameter "updateMask": The mask to controlwhich fields get updated.

typeProjectsLocationsAgentSessionsEntityTypesServiceadded inv0.9.0

type ProjectsLocationsAgentSessionsEntityTypesService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsAgentSessionsEntityTypesServiceadded inv0.9.0

func NewProjectsLocationsAgentSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentSessionsEntityTypesService

func (*ProjectsLocationsAgentSessionsEntityTypesService)Createadded inv0.9.0

Create: Creates a session entity type. If the specified session entity typealready exists, overrides the session entity type. This method doesn't workwith Google Assistant integration. Contact Dialogflow support if you need touse session entities with Google Assistant integration.

  • parent: The session to create a session entity type for. Supportedformats: - `projects//agent/sessions/, -`projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsLocationsAgentSessionsEntityTypesService)Deleteadded inv0.9.0

Delete: Deletes the specified session entity type. This method doesn't workwith Google Assistant integration. Contact Dialogflow support if you need touse session entities with Google Assistant integration.

  • name: The name of the entity type to delete. 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.

func (*ProjectsLocationsAgentSessionsEntityTypesService)Getadded inv0.9.0

Get: Retrieves the specified session entity type. This method doesn't workwith Google Assistant integration. Contact Dialogflow support if you need touse session entities with Google Assistant integration.

  • name: The name of the 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.

func (*ProjectsLocationsAgentSessionsEntityTypesService)Listadded inv0.9.0

List: Returns the list of all session entity types in the specified session.This method doesn't work with Google Assistant integration. ContactDialogflow support if you need to use session entities with Google Assistantintegration.

  • parent: The session to list all session entity types from. Supportedformats: - `projects//agent/sessions/, -`projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsLocationsAgentSessionsEntityTypesService)Patchadded inv0.9.0

Patch: Updates the specified session entity type. This method doesn't workwith Google Assistant integration. Contact Dialogflow support if you need touse session entities with Google Assistant integration.

  • name: The unique identifier of this session entity type. Supportedformats: - `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 thedisplay name of an existing entity type in the same agent that will beoverridden or supplemented.

typeProjectsLocationsAgentSessionsServiceadded inv0.9.0

type ProjectsLocationsAgentSessionsService struct {Contexts *ProjectsLocationsAgentSessionsContextsServiceEntityTypes *ProjectsLocationsAgentSessionsEntityTypesService// contains filtered or unexported fields}

funcNewProjectsLocationsAgentSessionsServiceadded inv0.9.0

func NewProjectsLocationsAgentSessionsService(s *Service) *ProjectsLocationsAgentSessionsService

func (*ProjectsLocationsAgentSessionsService)DeleteContextsadded inv0.9.0

DeleteContexts: Deletes all active contexts in the specified session.

  • parent: The name of the session to delete all contexts from. Supportedformats: - `projects//agent/sessions/, -`projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified we assume default 'draft' environment. If `User ID` isnot specified, we assume default '-' user.

func (*ProjectsLocationsAgentSessionsService)DetectIntentadded inv0.9.0

DetectIntent: Processes a natural language query and returns structured,actionable data as a result. This method is not idempotent, because it maycause contexts and session entity types to be updated, which in turn mightaffect results of future queries. If you might use Agent Assist(https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now orin the future, consider using AnalyzeContent instead of `DetectIntent`.`AnalyzeContent` has additional functionality for Agent Assist and otherCCAI products. Note: Always use agent versions for production traffic. SeeVersions and environments(https://cloud.google.com/dialogflow/es/docs/agents-versions).

- session: The name of the session this query is sent to. Supported formats:

  • `projects//agent/sessions/, - `projects//locations//agent/sessions/`, -`projects//agent/environments//users//sessions/`, -`projects//locations//agent/environments//users//sessions/`, If `LocationID` is not specified we assume default 'us' location. If `Environment ID`is not specified, we assume default 'draft' environment (`Environment ID`might be referred to as environment name at some places). If `User ID` isnot specified, we are using "-". It's up to the API caller to choose anappropriate `Session ID` and `User Id`. They can be a random number orsome type of user and session identifiers (preferably hashed). The lengthof the `Session ID` and `User ID` must not exceed 36 characters. For moreinformation, see the API interactions guide(https://cloud.google.com/dialogflow/docs/api-overview). Note: Always useagent versions for production traffic. See Versions and environments(https://cloud.google.com/dialogflow/es/docs/agents-versions).

typeProjectsLocationsAgentTrainCalladded inv0.9.0

type ProjectsLocationsAgentTrainCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentTrainCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentTrainCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.agent.train" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentTrainCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentTrainCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentUpdateFulfillmentCalladded inv0.29.0

type ProjectsLocationsAgentUpdateFulfillmentCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentUpdateFulfillmentCall)Contextadded inv0.29.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentUpdateFulfillmentCall)Doadded inv0.29.0

Do executes the "dialogflow.projects.locations.agent.updateFulfillment" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Fulfillment.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentUpdateFulfillmentCall)Fieldsadded inv0.29.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentUpdateFulfillmentCall)Headeradded inv0.29.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentUpdateFulfillmentCall)UpdateMaskadded inv0.29.0

UpdateMask sets the optional parameter "updateMask": Required. The mask tocontrol which fields get updated. If the mask is not present, all fieldswill be updated.

typeProjectsLocationsAgentVersionsCreateCalladded inv0.18.0

type ProjectsLocationsAgentVersionsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentVersionsCreateCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentVersionsCreateCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.locations.agent.versions.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentVersionsCreateCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentVersionsCreateCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentVersionsDeleteCalladded inv0.46.0

type ProjectsLocationsAgentVersionsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentVersionsDeleteCall)Contextadded inv0.46.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentVersionsDeleteCall)Doadded inv0.46.0

Do executes the "dialogflow.projects.locations.agent.versions.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsAgentVersionsDeleteCall)Fieldsadded inv0.46.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentVersionsDeleteCall)Headeradded inv0.46.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsAgentVersionsGetCalladded inv0.18.0

type ProjectsLocationsAgentVersionsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentVersionsGetCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentVersionsGetCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.locations.agent.versions.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentVersionsGetCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentVersionsGetCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentVersionsGetCall)IfNoneMatchadded inv0.18.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsAgentVersionsListCalladded inv0.18.0

type ProjectsLocationsAgentVersionsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentVersionsListCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentVersionsListCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.locations.agent.versions.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListVersionsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentVersionsListCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentVersionsListCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentVersionsListCall)IfNoneMatchadded inv0.18.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsAgentVersionsListCall)PageSizeadded inv0.18.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsLocationsAgentVersionsListCall)PageTokenadded inv0.18.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsAgentVersionsListCall)Pagesadded inv0.18.0

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.

typeProjectsLocationsAgentVersionsPatchCalladded inv0.18.0

type ProjectsLocationsAgentVersionsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAgentVersionsPatchCall)Contextadded inv0.18.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAgentVersionsPatchCall)Doadded inv0.18.0

Do executes the "dialogflow.projects.locations.agent.versions.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Version.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAgentVersionsPatchCall)Fieldsadded inv0.18.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAgentVersionsPatchCall)Headeradded inv0.18.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAgentVersionsPatchCall)UpdateMaskadded inv0.18.0

UpdateMask sets the optional parameter "updateMask": Required. The mask tocontrol which fields get updated.

typeProjectsLocationsAgentVersionsServiceadded inv0.18.0

type ProjectsLocationsAgentVersionsService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsAgentVersionsServiceadded inv0.18.0

func NewProjectsLocationsAgentVersionsService(s *Service) *ProjectsLocationsAgentVersionsService

func (*ProjectsLocationsAgentVersionsService)Createadded inv0.18.0

Create: Creates an agent version. The new version points to the agentinstance in the "default" environment.

  • parent: The agent to create a version for. Supported formats: -`projects//agent` - `projects//locations//agent`.

func (*ProjectsLocationsAgentVersionsService)Deleteadded inv0.46.0

Delete: Delete the specified agent version.

  • name: The name of the version to delete. Supported formats: -`projects//agent/versions/` - `projects//locations//agent/versions/`.

func (*ProjectsLocationsAgentVersionsService)Getadded inv0.18.0

Get: Retrieves the specified agent version.

  • name: The name of the version. Supported formats: -`projects//agent/versions/` - `projects//locations//agent/versions/`.

func (*ProjectsLocationsAgentVersionsService)Listadded inv0.18.0

List: Returns the list of all versions of the specified agent.

  • parent: The agent to list all versions from. Supported formats: -`projects//agent` - `projects//locations//agent`.

func (*ProjectsLocationsAgentVersionsService)Patchadded inv0.18.0

Patch: Updates the specified agent version. Note that this method does notallow you to update the state of the agent the given version points to. Itallows you to update only mutable properties of the version resource.

  • name: Output only. The unique identifier of this agent version. Supportedformats: - `projects//agent/versions/` -`projects//locations//agent/versions/`.

typeProjectsLocationsAnswerRecordsGetCalladded inv0.42.0

type ProjectsLocationsAnswerRecordsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAnswerRecordsGetCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAnswerRecordsGetCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.answerRecords.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1AnswerRecord.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAnswerRecordsGetCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAnswerRecordsGetCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAnswerRecordsGetCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsAnswerRecordsListCalladded inv0.42.0

type ProjectsLocationsAnswerRecordsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAnswerRecordsListCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAnswerRecordsListCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.answerRecords.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAnswerRecordsListCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAnswerRecordsListCall)Filteradded inv0.89.0

Filter sets the optional parameter "filter": Filters to restrict results tospecific answer records. The expression has the following syntax: [AND ] ...The following fields and operators are supported: * conversation_id withequals(=) operator Examples: * "conversation_id=bar" matches answer recordsin the projects/foo/locations/global/conversations/bar conversation(assuming the parent is projects/foo/locations/global). For more informationabout filtering, see API Filtering (https://aip.dev/160).

func (*ProjectsLocationsAnswerRecordsListCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAnswerRecordsListCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsAnswerRecordsListCall)PageSizeadded inv0.42.0

PageSize sets the optional parameter "pageSize": The maximum number ofrecords to return in a single page. The server may return fewer records thanthis. If unspecified, we use 10. The maximum is 100.

func (*ProjectsLocationsAnswerRecordsListCall)PageTokenadded inv0.42.0

PageToken sets the optional parameter "pageToken": TheListAnswerRecordsResponse.next_page_token value returned from a previouslist request used to continue listing on the next page.

func (*ProjectsLocationsAnswerRecordsListCall)Pagesadded inv0.42.0

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.

typeProjectsLocationsAnswerRecordsPatchCalladded inv0.42.0

type ProjectsLocationsAnswerRecordsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsAnswerRecordsPatchCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsAnswerRecordsPatchCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.answerRecords.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1AnswerRecord.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsAnswerRecordsPatchCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsAnswerRecordsPatchCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsAnswerRecordsPatchCall)UpdateMaskadded inv0.42.0

UpdateMask sets the optional parameter "updateMask": Required. The mask tocontrol which fields get updated.

typeProjectsLocationsAnswerRecordsServiceadded inv0.42.0

type ProjectsLocationsAnswerRecordsService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsAnswerRecordsServiceadded inv0.42.0

func NewProjectsLocationsAnswerRecordsService(s *Service) *ProjectsLocationsAnswerRecordsService

func (*ProjectsLocationsAnswerRecordsService)Getadded inv0.42.0

Get: Deprecated. Retrieves a specific answer record.

  • name: The name of the answer record to retrieve. Format:`projects//locations//answerRecords/`.

func (*ProjectsLocationsAnswerRecordsService)Listadded inv0.42.0

List: Returns the list of all answer records in the specified project inreverse chronological order.

  • parent: The project to list all answer records for in reversechronological order. Format: `projects//locations/`.

func (*ProjectsLocationsAnswerRecordsService)Patchadded inv0.42.0

Patch: Updates the specified answer record.

  • name: The unique identifier of this answer record. Required forAnswerRecords.UpdateAnswerRecord method. Format:`projects//locations//answerRecords/`.

typeProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCalladded inv0.71.0

type ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall)Contextadded inv0.71.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall)Doadded inv0.71.0

Do executes the "dialogflow.projects.locations.conversationProfiles.clearSuggestionFeatureConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall)Fieldsadded inv0.71.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall)Headeradded inv0.71.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsConversationProfilesCreateCalladded inv0.42.0

type ProjectsLocationsConversationProfilesCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationProfilesCreateCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationProfilesCreateCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversationProfiles.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationProfilesCreateCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationProfilesCreateCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsConversationProfilesDeleteCalladded inv0.42.0

type ProjectsLocationsConversationProfilesDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationProfilesDeleteCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationProfilesDeleteCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversationProfiles.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsConversationProfilesDeleteCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationProfilesDeleteCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsConversationProfilesGetCalladded inv0.42.0

type ProjectsLocationsConversationProfilesGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationProfilesGetCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationProfilesGetCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversationProfiles.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationProfilesGetCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationProfilesGetCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsConversationProfilesGetCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsConversationProfilesListCalladded inv0.42.0

type ProjectsLocationsConversationProfilesListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationProfilesListCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationProfilesListCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversationProfiles.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListConversationProfilesResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsConversationProfilesListCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationProfilesListCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsConversationProfilesListCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsConversationProfilesListCall)PageSizeadded inv0.42.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsLocationsConversationProfilesListCall)PageTokenadded inv0.42.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsConversationProfilesListCall)Pagesadded inv0.42.0

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.

typeProjectsLocationsConversationProfilesPatchCalladded inv0.42.0

type ProjectsLocationsConversationProfilesPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationProfilesPatchCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationProfilesPatchCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversationProfiles.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ConversationProfile.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationProfilesPatchCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationProfilesPatchCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsConversationProfilesPatchCall)UpdateMaskadded inv0.42.0

UpdateMask sets the optional parameter "updateMask": Required. The mask tocontrol which fields to update.

typeProjectsLocationsConversationProfilesServiceadded inv0.42.0

type ProjectsLocationsConversationProfilesService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsConversationProfilesServiceadded inv0.42.0

func NewProjectsLocationsConversationProfilesService(s *Service) *ProjectsLocationsConversationProfilesService

func (*ProjectsLocationsConversationProfilesService)ClearSuggestionFeatureConfigadded inv0.71.0

func (r *ProjectsLocationsConversationProfilesService) ClearSuggestionFeatureConfig(conversationProfilestring, googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest) *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall

ClearSuggestionFeatureConfig: Clears a suggestion feature from aconversation profile for the given participant role. This method is along-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: ClearSuggestionFeatureConfigOperationMetadata - `response`:ConversationProfile

  • conversationProfile: The Conversation Profile to add or update thesuggestion feature config. Format:`projects//locations//conversationProfiles/`.

func (*ProjectsLocationsConversationProfilesService)Createadded inv0.42.0

Create: Creates a conversation profile in the specified project.ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren'tpopulated in the response. You can retrieve them via GetConversationProfileAPI.

  • parent: The project to create a conversation profile for. Format:`projects//locations/`.

func (*ProjectsLocationsConversationProfilesService)Deleteadded inv0.42.0

Delete: Deletes the specified conversation profile.

  • name: The name of the conversation profile to delete. Format:`projects//locations//conversationProfiles/`.

func (*ProjectsLocationsConversationProfilesService)Getadded inv0.42.0

Get: Retrieves the specified conversation profile.

  • name: The resource name of the conversation profile. Format:`projects//locations//conversationProfiles/`.

func (*ProjectsLocationsConversationProfilesService)Listadded inv0.42.0

List: Returns the list of all conversation profiles in the specifiedproject.

  • parent: The project to list all conversation profiles from. Format:`projects//locations/`.

func (*ProjectsLocationsConversationProfilesService)Patchadded inv0.42.0

Patch: Updates the specified conversation profile.ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren'tpopulated in the response. You can retrieve them via GetConversationProfileAPI.

  • name: The unique identifier of this conversation profile. Format:`projects//locations//conversationProfiles/`.

func (*ProjectsLocationsConversationProfilesService)SetSuggestionFeatureConfigadded inv0.71.0

func (r *ProjectsLocationsConversationProfilesService) SetSuggestionFeatureConfig(conversationProfilestring, googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest) *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall

SetSuggestionFeatureConfig: Adds or updates a suggestion feature in aconversation profile. If the conversation profile contains the type ofsuggestion feature for the participant role, it will update it. Otherwise itwill insert the suggestion feature. This method is a long-running operation(https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).The returned `Operation` type has the following method-specific fields: -`metadata`: SetSuggestionFeatureConfigOperationMetadata - `response`:ConversationProfile If a long running operation to add or update suggestionfeature config for the same conversation profile, participant role andsuggestion feature type exists, please cancel the existing long runningoperation before sending such request, otherwise the request will berejected.

  • conversationProfile: The Conversation Profile to add or update thesuggestion feature config. Format:`projects//locations//conversationProfiles/`.

typeProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCalladded inv0.71.0

type ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall)Contextadded inv0.71.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall)Doadded inv0.71.0

Do executes the "dialogflow.projects.locations.conversationProfiles.setSuggestionFeatureConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall)Fieldsadded inv0.71.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall)Headeradded inv0.71.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsConversationsCompleteCalladded inv0.42.0

type ProjectsLocationsConversationsCompleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsCompleteCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsCompleteCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversations.complete" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationsCompleteCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsCompleteCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsConversationsCreateCalladded inv0.42.0

type ProjectsLocationsConversationsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsCreateCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsCreateCall)ConversationIdadded inv0.42.0

ConversationId sets the optional parameter "conversationId": Identifier ofthe conversation. Generally it's auto generated by Google. Only set it ifyou cannot wait for the response to return a auto-generated one to you. Theconversation ID must be compliant with the regression formula `a-zA-Z*` withthe characters length in range of [3,64]. If the field is provided, thecaller is responsible for 1. the uniqueness of the ID, otherwise the requestwill be rejected. 2. the consistency for whether to use custom ID or notunder a project to better ensure uniqueness.

func (*ProjectsLocationsConversationsCreateCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversations.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationsCreateCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsCreateCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsConversationsGetCalladded inv0.42.0

type ProjectsLocationsConversationsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsGetCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsGetCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversations.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Conversation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationsGetCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsGetCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsConversationsGetCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsConversationsIngestContextReferencesCalladded inv0.226.0

type ProjectsLocationsConversationsIngestContextReferencesCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsIngestContextReferencesCall)Contextadded inv0.226.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsIngestContextReferencesCall)Doadded inv0.226.0

Do executes the "dialogflow.projects.locations.conversations.ingestContextReferences" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1IngestContextReferencesResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsConversationsIngestContextReferencesCall)Fieldsadded inv0.226.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsIngestContextReferencesCall)Headeradded inv0.226.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsConversationsListCalladded inv0.42.0

type ProjectsLocationsConversationsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsListCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsListCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListConversationsResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationsListCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsListCall)Filteradded inv0.42.0

Filter sets the optional parameter "filter": A filter expression thatfilters conversations listed in the response. Only `lifecycle_state` can befiltered on in this way. For example, the following expression only returns`COMPLETED` conversations: `lifecycle_state = "COMPLETED" For moreinformation about filtering, see API Filtering (https://aip.dev/160).

func (*ProjectsLocationsConversationsListCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsConversationsListCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsConversationsListCall)PageSizeadded inv0.42.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsLocationsConversationsListCall)PageTokenadded inv0.42.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsConversationsListCall)Pagesadded inv0.42.0

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.

typeProjectsLocationsConversationsMessagesBatchCreateCalladded inv0.42.0

type ProjectsLocationsConversationsMessagesBatchCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsMessagesBatchCreateCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsMessagesBatchCreateCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversations.messages.batchCreate" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse.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 becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationsMessagesBatchCreateCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsMessagesBatchCreateCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsConversationsMessagesListCalladded inv0.42.0

type ProjectsLocationsConversationsMessagesListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsMessagesListCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsMessagesListCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversations.messages.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListMessagesResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationsMessagesListCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsMessagesListCall)Filteradded inv0.42.0

Filter sets the optional parameter "filter": Filter on message fields.Currently predicates on `create_time` and `create_time_epoch_microseconds`are supported. `create_time` only support milliseconds accuracy. E.g.,`create_time_epoch_microseconds > 1551790877964485` or `create_time >"2017-01-15T01:30:15.01Z". For more information about filtering, see APIFiltering (https://aip.dev/160).

func (*ProjectsLocationsConversationsMessagesListCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsConversationsMessagesListCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsConversationsMessagesListCall)PageSizeadded inv0.42.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsLocationsConversationsMessagesListCall)PageTokenadded inv0.42.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsConversationsMessagesListCall)Pagesadded inv0.42.0

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.

typeProjectsLocationsConversationsMessagesServiceadded inv0.42.0

type ProjectsLocationsConversationsMessagesService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsConversationsMessagesServiceadded inv0.42.0

func NewProjectsLocationsConversationsMessagesService(s *Service) *ProjectsLocationsConversationsMessagesService

func (*ProjectsLocationsConversationsMessagesService)BatchCreateadded inv0.42.0

BatchCreate: Batch ingests messages to conversation. Customers can use thisRPC to ingest historical messages to conversation.

  • parent: Resource identifier of the conversation to create message. Format:`projects//locations//conversations/`.

func (*ProjectsLocationsConversationsMessagesService)Listadded inv0.42.0

List: Lists messages that belong to a given conversation. `messages` areordered by `create_time` in descending order. To fetch updates withoutduplication, send request with filter `create_time_epoch_microseconds >[first item's create_time of previous request]` and empty page_token.

  • parent: The name of the conversation to list messages for. Format:`projects//locations//conversations/`.

typeProjectsLocationsConversationsParticipantsAnalyzeContentCalladded inv0.42.0

type ProjectsLocationsConversationsParticipantsAnalyzeContentCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsParticipantsAnalyzeContentCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsParticipantsAnalyzeContentCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversations.participants.analyzeContent" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1AnalyzeContentResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationsParticipantsAnalyzeContentCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsParticipantsAnalyzeContentCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsConversationsParticipantsCreateCalladded inv0.42.0

type ProjectsLocationsConversationsParticipantsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsParticipantsCreateCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsParticipantsCreateCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversations.participants.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationsParticipantsCreateCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsParticipantsCreateCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsConversationsParticipantsGetCalladded inv0.42.0

type ProjectsLocationsConversationsParticipantsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsParticipantsGetCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsParticipantsGetCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversations.participants.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationsParticipantsGetCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsParticipantsGetCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsConversationsParticipantsGetCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsConversationsParticipantsListCalladded inv0.42.0

type ProjectsLocationsConversationsParticipantsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsParticipantsListCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsParticipantsListCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversations.participants.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListParticipantsResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationsParticipantsListCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsParticipantsListCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsConversationsParticipantsListCall)IfNoneMatchadded inv0.42.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsConversationsParticipantsListCall)PageSizeadded inv0.42.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsLocationsConversationsParticipantsListCall)PageTokenadded inv0.42.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsConversationsParticipantsListCall)Pagesadded inv0.42.0

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.

typeProjectsLocationsConversationsParticipantsPatchCalladded inv0.42.0

type ProjectsLocationsConversationsParticipantsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsParticipantsPatchCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsParticipantsPatchCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversations.participants.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Participant.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationsParticipantsPatchCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsParticipantsPatchCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsConversationsParticipantsPatchCall)UpdateMaskadded inv0.42.0

UpdateMask sets the optional parameter "updateMask": Required. The mask tospecify which fields to update.

typeProjectsLocationsConversationsParticipantsServiceadded inv0.42.0

type ProjectsLocationsConversationsParticipantsService struct {Suggestions *ProjectsLocationsConversationsParticipantsSuggestionsService// contains filtered or unexported fields}

funcNewProjectsLocationsConversationsParticipantsServiceadded inv0.42.0

func NewProjectsLocationsConversationsParticipantsService(s *Service) *ProjectsLocationsConversationsParticipantsService

func (*ProjectsLocationsConversationsParticipantsService)AnalyzeContentadded inv0.42.0

AnalyzeContent: Adds a text (chat, for example), or audio (phone recording,for example) message from a participant into the conversation. Note: Alwaysuse agent versions for production traffic sent to virtual agents. SeeVersions and environments(https://cloud.google.com/dialogflow/es/docs/agents-versions).

  • participant: The name of the participant this text comes from. Format:`projects//locations//conversations//participants/`.

func (*ProjectsLocationsConversationsParticipantsService)Createadded inv0.42.0

Create: Creates a new participant in a conversation.

  • parent: Resource identifier of the conversation adding the participant.Format: `projects//locations//conversations/`.

func (*ProjectsLocationsConversationsParticipantsService)Getadded inv0.42.0

Get: Retrieves a conversation participant.

  • name: The name of the participant. Format:`projects//locations//conversations//participants/`.

func (*ProjectsLocationsConversationsParticipantsService)Listadded inv0.42.0

List: Returns the list of all participants in the specified conversation.

  • parent: The conversation to list all participants from. Format:`projects//locations//conversations/`.

func (*ProjectsLocationsConversationsParticipantsService)Patchadded inv0.42.0

Patch: Updates the specified participant.

  • name: Optional. The unique identifier of this participant. Format:`projects//locations//conversations//participants/`.

typeProjectsLocationsConversationsParticipantsSuggestionsServiceadded inv0.42.0

type ProjectsLocationsConversationsParticipantsSuggestionsService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsConversationsParticipantsSuggestionsServiceadded inv0.42.0

func NewProjectsLocationsConversationsParticipantsSuggestionsService(s *Service) *ProjectsLocationsConversationsParticipantsSuggestionsService

func (*ProjectsLocationsConversationsParticipantsSuggestionsService)SuggestArticlesadded inv0.42.0

SuggestArticles: Gets suggested articles for a participant based on specifichistorical messages. Note that ListSuggestions will only list theauto-generated suggestions, while CompileSuggestion will try to compilesuggestion based on the provided conversation context in the real time.

  • parent: The name of the participant to fetch suggestion for. Format:`projects//locations//conversations//participants/`.

func (*ProjectsLocationsConversationsParticipantsSuggestionsService)SuggestFaqAnswersadded inv0.42.0

SuggestFaqAnswers: Gets suggested faq answers for a participant based onspecific historical messages.

  • parent: The name of the participant to fetch suggestion for. Format:`projects//locations//conversations//participants/`.

func (*ProjectsLocationsConversationsParticipantsSuggestionsService)SuggestKnowledgeAssistadded inv0.185.0

SuggestKnowledgeAssist: Gets knowledge assist suggestions based onhistorical messages.

  • parent: The name of the participant to fetch suggestions for. Format:`projects//locations//conversations//participants/`.

func (*ProjectsLocationsConversationsParticipantsSuggestionsService)SuggestSmartRepliesadded inv0.42.0

SuggestSmartReplies: Gets smart replies for a participant based on specifichistorical messages.

  • parent: The name of the participant to fetch suggestion for. Format:`projects//locations//conversations//participants/`.

typeProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCalladded inv0.42.0

type ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestArticles" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SuggestArticlesResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCalladded inv0.42.0

type ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestFaqAnswers" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsConversationsParticipantsSuggestionsSuggestKnowledgeAssistCalladded inv0.185.0

type ProjectsLocationsConversationsParticipantsSuggestionsSuggestKnowledgeAssistCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsParticipantsSuggestionsSuggestKnowledgeAssistCall)Contextadded inv0.185.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsParticipantsSuggestionsSuggestKnowledgeAssistCall)Doadded inv0.185.0

Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestKnowledgeAssist" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsConversationsParticipantsSuggestionsSuggestKnowledgeAssistCall)Fieldsadded inv0.185.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsParticipantsSuggestionsSuggestKnowledgeAssistCall)Headeradded inv0.185.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCalladded inv0.42.0

type ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.conversations.participants.suggestions.suggestSmartReplies" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse.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 becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsConversationsServiceadded inv0.42.0

type ProjectsLocationsConversationsService struct {Messages *ProjectsLocationsConversationsMessagesServiceParticipants *ProjectsLocationsConversationsParticipantsServiceSuggestions *ProjectsLocationsConversationsSuggestionsService// contains filtered or unexported fields}

funcNewProjectsLocationsConversationsServiceadded inv0.42.0

func NewProjectsLocationsConversationsService(s *Service) *ProjectsLocationsConversationsService

func (*ProjectsLocationsConversationsService)Completeadded inv0.42.0

Complete: Completes the specified conversation. Finished conversations arepurged from the database after 30 days.

  • name: Resource identifier of the conversation to close. Format:`projects//locations//conversations/`.

func (*ProjectsLocationsConversationsService)Createadded inv0.42.0

Create: Creates a new conversation. Conversations are auto-completed after24 hours. Conversation Lifecycle: There are two stages during aconversation: Automated Agent Stage and Assist Stage. For Automated AgentStage, there will be a dialogflow agent responding to user queries. ForAssist Stage, there's no dialogflow agent responding to user queries. But wewill provide suggestions which are generated from conversation. IfConversation.conversation_profile is configured for a dialogflow agent,conversation will start from `Automated Agent Stage`, otherwise, it willstart from `Assist Stage`. And during `Automated Agent Stage`, once anIntent with Intent.live_agent_handoff is triggered, conversation willtransfer to Assist Stage.

  • parent: Resource identifier of the project creating the conversation.Format: `projects//locations/`.

func (*ProjectsLocationsConversationsService)Getadded inv0.42.0

Get: Retrieves the specific conversation.

  • name: The name of the conversation. Format:`projects//locations//conversations/`.

func (*ProjectsLocationsConversationsService)IngestContextReferencesadded inv0.226.0

func (r *ProjectsLocationsConversationsService) IngestContextReferences(conversationidstring, googleclouddialogflowv2beta1ingestcontextreferencesrequest *GoogleCloudDialogflowV2beta1IngestContextReferencesRequest) *ProjectsLocationsConversationsIngestContextReferencesCall

IngestContextReferences: Data ingestion API. Ingests context references foran existing conversation.

  • conversation: Resource identifier of the conversation to ingest contextinformation for. Format: `projects//locations//conversations/`.

func (*ProjectsLocationsConversationsService)Listadded inv0.42.0

List: Returns the list of all conversations in the specified project.

  • parent: The project from which to list all conversation. Format:`projects//locations/`.

typeProjectsLocationsConversationsSuggestionsGenerateCalladded inv0.226.0

type ProjectsLocationsConversationsSuggestionsGenerateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsSuggestionsGenerateCall)Contextadded inv0.226.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsSuggestionsGenerateCall)Doadded inv0.226.0

Do executes the "dialogflow.projects.locations.conversations.suggestions.generate" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse.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 becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationsSuggestionsGenerateCall)Fieldsadded inv0.226.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsSuggestionsGenerateCall)Headeradded inv0.226.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsConversationsSuggestionsSearchKnowledgeCalladded inv0.139.0

type ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall)Contextadded inv0.139.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall)Doadded inv0.139.0

Do executes the "dialogflow.projects.locations.conversations.suggestions.searchKnowledge" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SearchKnowledgeResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall)Fieldsadded inv0.139.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall)Headeradded inv0.139.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsConversationsSuggestionsServiceadded inv0.96.0

type ProjectsLocationsConversationsSuggestionsService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsConversationsSuggestionsServiceadded inv0.96.0

func NewProjectsLocationsConversationsSuggestionsService(s *Service) *ProjectsLocationsConversationsSuggestionsService

func (*ProjectsLocationsConversationsSuggestionsService)Generateadded inv0.226.0

Generate: Generates all the suggestions using generators configured in theconversation profile. A generator is used only if its trigger event ismatched.

  • conversation: The conversation for which the suggestions are generated.Format: `projects//locations//conversations/`. The conversation must becreated with a conversation profile which has generators configured in itto be able to get suggestions.

func (*ProjectsLocationsConversationsSuggestionsService)SearchKnowledgeadded inv0.139.0

SearchKnowledge: Get answers for the given query based on knowledgedocuments.

  • conversation: Optional. The conversation (between human agent and enduser) where the search request is triggered. Format:`projects//locations//conversations/`.

func (*ProjectsLocationsConversationsSuggestionsService)SuggestConversationSummaryadded inv0.96.0

SuggestConversationSummary: Suggest summary for a conversation based onspecific historical messages. The range of the messages to be used forsummary can be specified in the request.

  • conversation: The conversation to fetch suggestion for. Format:`projects//locations//conversations/`.

typeProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCalladded inv0.96.0

type ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall)Contextadded inv0.96.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall)Doadded inv0.96.0

Do executes the "dialogflow.projects.locations.conversations.suggestions.suggestConversationSummary" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall)Fieldsadded inv0.96.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall)Headeradded inv0.96.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsDeleteAgentCalladded inv0.9.0

type ProjectsLocationsDeleteAgentCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsDeleteAgentCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDeleteAgentCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.deleteAgent" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsDeleteAgentCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsDeleteAgentCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsEncryptionSpecInitializeCalladded inv0.189.0

type ProjectsLocationsEncryptionSpecInitializeCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsEncryptionSpecInitializeCall)Contextadded inv0.189.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsEncryptionSpecInitializeCall)Doadded inv0.189.0

Do executes the "dialogflow.projects.locations.encryptionSpec.initialize" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsEncryptionSpecInitializeCall)Fieldsadded inv0.189.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsEncryptionSpecInitializeCall)Headeradded inv0.189.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsEncryptionSpecServiceadded inv0.189.0

type ProjectsLocationsEncryptionSpecService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsEncryptionSpecServiceadded inv0.189.0

func NewProjectsLocationsEncryptionSpecService(s *Service) *ProjectsLocationsEncryptionSpecService

func (*ProjectsLocationsEncryptionSpecService)Initializeadded inv0.189.0

Initialize: Initializes a location-level encryption key specification. Anerror will be thrown if the location has resources already created beforethe initialization. Once the encryption specification is initialized at alocation, it is immutable and all newly created resources under the locationwill be encrypted with the existing specification.

  • name: Immutable. The resource name of the encryption key specificationresource. Format: projects/{project}/locations/{location}/encryptionSpec.

typeProjectsLocationsGeneratorsCreateCalladded inv0.183.0

type ProjectsLocationsGeneratorsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsGeneratorsCreateCall)Contextadded inv0.183.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGeneratorsCreateCall)Doadded inv0.183.0

Do executes the "dialogflow.projects.locations.generators.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Generator.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsGeneratorsCreateCall)Fieldsadded inv0.183.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsGeneratorsCreateCall)GeneratorIdadded inv0.183.0

GeneratorId sets the optional parameter "generatorId": The ID to use for thegenerator, which will become the final component of the generator's resourcename. The generator ID must be compliant with the regression formula`a-zA-Z*` with the characters length in range of [3,64]. If the field is notprovided, an Id will be auto-generated. If the field is provided, the calleris responsible for 1. the uniqueness of the ID, otherwise the request willbe rejected. 2. the consistency for whether to use custom ID or not under aproject to better ensure uniqueness.

func (*ProjectsLocationsGeneratorsCreateCall)Headeradded inv0.183.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsGeneratorsDeleteCalladded inv0.183.0

type ProjectsLocationsGeneratorsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsGeneratorsDeleteCall)Contextadded inv0.183.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGeneratorsDeleteCall)Doadded inv0.183.0

Do executes the "dialogflow.projects.locations.generators.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsGeneratorsDeleteCall)Fieldsadded inv0.183.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsGeneratorsDeleteCall)Headeradded inv0.183.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsGeneratorsEvaluationsCreateCalladded inv0.250.0

type ProjectsLocationsGeneratorsEvaluationsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsGeneratorsEvaluationsCreateCall)Contextadded inv0.250.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGeneratorsEvaluationsCreateCall)Doadded inv0.250.0

Do executes the "dialogflow.projects.locations.generators.evaluations.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsGeneratorsEvaluationsCreateCall)Fieldsadded inv0.250.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsGeneratorsEvaluationsCreateCall)Headeradded inv0.250.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsGeneratorsEvaluationsDeleteCalladded inv0.250.0

type ProjectsLocationsGeneratorsEvaluationsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsGeneratorsEvaluationsDeleteCall)Contextadded inv0.250.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGeneratorsEvaluationsDeleteCall)Doadded inv0.250.0

Do executes the "dialogflow.projects.locations.generators.evaluations.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsGeneratorsEvaluationsDeleteCall)Fieldsadded inv0.250.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsGeneratorsEvaluationsDeleteCall)Headeradded inv0.250.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsGeneratorsEvaluationsGetCalladded inv0.250.0

type ProjectsLocationsGeneratorsEvaluationsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsGeneratorsEvaluationsGetCall)Contextadded inv0.250.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGeneratorsEvaluationsGetCall)Doadded inv0.250.0

Do executes the "dialogflow.projects.locations.generators.evaluations.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1GeneratorEvaluation.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsGeneratorsEvaluationsGetCall)Fieldsadded inv0.250.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsGeneratorsEvaluationsGetCall)Headeradded inv0.250.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsGeneratorsEvaluationsGetCall)IfNoneMatchadded inv0.250.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsGeneratorsEvaluationsListCalladded inv0.250.0

type ProjectsLocationsGeneratorsEvaluationsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsGeneratorsEvaluationsListCall)Contextadded inv0.250.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGeneratorsEvaluationsListCall)Doadded inv0.250.0

Do executes the "dialogflow.projects.locations.generators.evaluations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListGeneratorEvaluationsResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsGeneratorsEvaluationsListCall)Fieldsadded inv0.250.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsGeneratorsEvaluationsListCall)Headeradded inv0.250.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsGeneratorsEvaluationsListCall)IfNoneMatchadded inv0.250.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsGeneratorsEvaluationsListCall)PageSizeadded inv0.250.0

PageSize sets the optional parameter "pageSize": Maximum number ofevaluations to return in a single page. By default 100 and at most 1000.

func (*ProjectsLocationsGeneratorsEvaluationsListCall)PageTokenadded inv0.250.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsGeneratorsEvaluationsListCall)Pagesadded inv0.250.0

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.

typeProjectsLocationsGeneratorsEvaluationsServiceadded inv0.250.0

type ProjectsLocationsGeneratorsEvaluationsService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsGeneratorsEvaluationsServiceadded inv0.250.0

func NewProjectsLocationsGeneratorsEvaluationsService(s *Service) *ProjectsLocationsGeneratorsEvaluationsService

func (*ProjectsLocationsGeneratorsEvaluationsService)Createadded inv0.250.0

Create: Creates evaluation of a generator.

  • parent: The generator resource name. Format:`projects//locations//generators/`.

func (*ProjectsLocationsGeneratorsEvaluationsService)Deleteadded inv0.250.0

Delete: Deletes an evaluation of generator.

  • name: The generator evaluation resource name. Format:`projects//locations//generators// evaluations/`.

func (*ProjectsLocationsGeneratorsEvaluationsService)Getadded inv0.250.0

Get: Gets an evaluation of generator.

  • name: The generator evaluation resource name. Format:`projects//locations//generators//evaluations/`.

func (*ProjectsLocationsGeneratorsEvaluationsService)Listadded inv0.250.0

List: Lists evaluations of generator.

  • parent: The generator resource name. Format:`projects//locations//generators/` Wildcard value `-` is supported ongenerator_id to list evaluations across all generators under same project.

typeProjectsLocationsGeneratorsGetCalladded inv0.183.0

type ProjectsLocationsGeneratorsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsGeneratorsGetCall)Contextadded inv0.183.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGeneratorsGetCall)Doadded inv0.183.0

Do executes the "dialogflow.projects.locations.generators.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Generator.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsGeneratorsGetCall)Fieldsadded inv0.183.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsGeneratorsGetCall)Headeradded inv0.183.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsGeneratorsGetCall)IfNoneMatchadded inv0.183.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsGeneratorsListCalladded inv0.183.0

type ProjectsLocationsGeneratorsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsGeneratorsListCall)Contextadded inv0.183.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGeneratorsListCall)Doadded inv0.183.0

Do executes the "dialogflow.projects.locations.generators.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListGeneratorsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsGeneratorsListCall)Fieldsadded inv0.183.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsGeneratorsListCall)Headeradded inv0.183.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsGeneratorsListCall)IfNoneMatchadded inv0.183.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsGeneratorsListCall)PageSizeadded inv0.183.0

PageSize sets the optional parameter "pageSize": Maximum number ofconversation models to return in a single page. Default to 10.

func (*ProjectsLocationsGeneratorsListCall)PageTokenadded inv0.183.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsGeneratorsListCall)Pagesadded inv0.183.0

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.

typeProjectsLocationsGeneratorsPatchCalladded inv0.183.0

type ProjectsLocationsGeneratorsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsGeneratorsPatchCall)Contextadded inv0.183.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGeneratorsPatchCall)Doadded inv0.183.0

Do executes the "dialogflow.projects.locations.generators.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Generator.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsGeneratorsPatchCall)Fieldsadded inv0.183.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsGeneratorsPatchCall)Headeradded inv0.183.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsGeneratorsPatchCall)UpdateMaskadded inv0.183.0

UpdateMask sets the optional parameter "updateMask": The list of fields toupdate.

typeProjectsLocationsGeneratorsServiceadded inv0.183.0

type ProjectsLocationsGeneratorsService struct {Evaluations *ProjectsLocationsGeneratorsEvaluationsService// contains filtered or unexported fields}

funcNewProjectsLocationsGeneratorsServiceadded inv0.183.0

func NewProjectsLocationsGeneratorsService(s *Service) *ProjectsLocationsGeneratorsService

func (*ProjectsLocationsGeneratorsService)Createadded inv0.183.0

Create: Creates a generator.

  • parent: The project/location to create generator for. Format:`projects//locations/`.

func (*ProjectsLocationsGeneratorsService)Deleteadded inv0.183.0

Delete: Deletes a generator.

  • name: The generator resource name to delete. Format:`projects//locations//generators/`.

func (*ProjectsLocationsGeneratorsService)Getadded inv0.183.0

Get: Retrieves a generator.

  • name: The generator resource name to retrieve. Format:`projects//locations/`/generators/`.

func (*ProjectsLocationsGeneratorsService)Listadded inv0.183.0

List: Lists generators.

  • parent: The project/location to list generators for. Format:`projects//locations/`.

func (*ProjectsLocationsGeneratorsService)Patchadded inv0.183.0

Patch: Updates a generator.

  • name: Output only. Identifier. The resource name of the generator. Format:`projects//locations//generators/`.

typeProjectsLocationsGetAgentCalladded inv0.9.0

type ProjectsLocationsGetAgentCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsGetAgentCall)Contextadded inv0.9.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGetAgentCall)Doadded inv0.9.0

Do executes the "dialogflow.projects.locations.getAgent" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Agent.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsGetAgentCall)Fieldsadded inv0.9.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsGetAgentCall)Headeradded inv0.9.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsGetAgentCall)IfNoneMatchadded inv0.9.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsGetCalladded inv0.53.0

type ProjectsLocationsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsGetCall)Contextadded inv0.53.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGetCall)Doadded inv0.53.0

Do executes the "dialogflow.projects.locations.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudLocationLocation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsGetCall)Fieldsadded inv0.53.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsGetCall)Headeradded inv0.53.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsGetCall)IfNoneMatchadded inv0.53.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsGetEncryptionSpecCalladded inv0.189.0

type ProjectsLocationsGetEncryptionSpecCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsGetEncryptionSpecCall)Contextadded inv0.189.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGetEncryptionSpecCall)Doadded inv0.189.0

Do executes the "dialogflow.projects.locations.getEncryptionSpec" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1EncryptionSpec.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsGetEncryptionSpecCall)Fieldsadded inv0.189.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsGetEncryptionSpecCall)Headeradded inv0.189.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsGetEncryptionSpecCall)IfNoneMatchadded inv0.189.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsKnowledgeBasesCreateCalladded inv0.37.0

type ProjectsLocationsKnowledgeBasesCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsKnowledgeBasesCreateCall)Contextadded inv0.37.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsKnowledgeBasesCreateCall)Doadded inv0.37.0

Do executes the "dialogflow.projects.locations.knowledgeBases.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsKnowledgeBasesCreateCall)Fieldsadded inv0.37.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsKnowledgeBasesCreateCall)Headeradded inv0.37.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsKnowledgeBasesDeleteCalladded inv0.37.0

type ProjectsLocationsKnowledgeBasesDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsKnowledgeBasesDeleteCall)Contextadded inv0.37.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsKnowledgeBasesDeleteCall)Doadded inv0.37.0

Do executes the "dialogflow.projects.locations.knowledgeBases.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsKnowledgeBasesDeleteCall)Fieldsadded inv0.37.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsKnowledgeBasesDeleteCall)Forceadded inv0.37.0

Force sets the optional parameter "force": Force deletes the knowledge base.When set to true, any documents in the knowledge base are also deleted.

func (*ProjectsLocationsKnowledgeBasesDeleteCall)Headeradded inv0.37.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsKnowledgeBasesDocumentsCreateCalladded inv0.37.0

type ProjectsLocationsKnowledgeBasesDocumentsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsKnowledgeBasesDocumentsCreateCall)Contextadded inv0.37.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsKnowledgeBasesDocumentsCreateCall)Doadded inv0.37.0

Do executes the "dialogflow.projects.locations.knowledgeBases.documents.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsKnowledgeBasesDocumentsCreateCall)Fieldsadded inv0.37.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsKnowledgeBasesDocumentsCreateCall)Headeradded inv0.37.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsKnowledgeBasesDocumentsCreateCall)ImportGcsCustomMetadataadded inv0.37.0

ImportGcsCustomMetadata sets the optional parameter"importGcsCustomMetadata": Whether to import custom metadata from GoogleCloud Storage. Only valid when the document source is Google Cloud StorageURI.

typeProjectsLocationsKnowledgeBasesDocumentsDeleteCalladded inv0.37.0

type ProjectsLocationsKnowledgeBasesDocumentsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsKnowledgeBasesDocumentsDeleteCall)Contextadded inv0.37.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsKnowledgeBasesDocumentsDeleteCall)Doadded inv0.37.0

Do executes the "dialogflow.projects.locations.knowledgeBases.documents.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsKnowledgeBasesDocumentsDeleteCall)Fieldsadded inv0.37.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsKnowledgeBasesDocumentsDeleteCall)Headeradded inv0.37.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsKnowledgeBasesDocumentsGetCalladded inv0.37.0

type ProjectsLocationsKnowledgeBasesDocumentsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsKnowledgeBasesDocumentsGetCall)Contextadded inv0.37.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsKnowledgeBasesDocumentsGetCall)Doadded inv0.37.0

Do executes the "dialogflow.projects.locations.knowledgeBases.documents.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Document.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsKnowledgeBasesDocumentsGetCall)Fieldsadded inv0.37.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsKnowledgeBasesDocumentsGetCall)Headeradded inv0.37.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsKnowledgeBasesDocumentsGetCall)IfNoneMatchadded inv0.37.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsKnowledgeBasesDocumentsImportCalladded inv0.42.0

type ProjectsLocationsKnowledgeBasesDocumentsImportCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsKnowledgeBasesDocumentsImportCall)Contextadded inv0.42.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsKnowledgeBasesDocumentsImportCall)Doadded inv0.42.0

Do executes the "dialogflow.projects.locations.knowledgeBases.documents.import" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsKnowledgeBasesDocumentsImportCall)Fieldsadded inv0.42.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsKnowledgeBasesDocumentsImportCall)Headeradded inv0.42.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsKnowledgeBasesDocumentsListCalladded inv0.37.0

type ProjectsLocationsKnowledgeBasesDocumentsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsKnowledgeBasesDocumentsListCall)Contextadded inv0.37.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsKnowledgeBasesDocumentsListCall)Doadded inv0.37.0

Do executes the "dialogflow.projects.locations.knowledgeBases.documents.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListDocumentsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsKnowledgeBasesDocumentsListCall)Fieldsadded inv0.37.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsKnowledgeBasesDocumentsListCall)Filteradded inv0.37.0

Filter sets the optional parameter "filter": The filter expression used tofilter documents returned by the list method. The expression has thefollowing syntax: [AND ] ... The following fields and operators aresupported: * knowledge_types with has(:) operator * display_name with has(:)operator * state with equals(=) operator Examples: * "knowledge_types:FAQ"matches documents with FAQ knowledge type. * "display_name:customer" matchesdocuments whose display name contains "customer". * "state=ACTIVE" matchesdocuments with ACTIVE state. * "knowledge_types:FAQ AND state=ACTIVE"matches all active FAQ documents. For more information about filtering, seeAPI Filtering (https://aip.dev/160).

func (*ProjectsLocationsKnowledgeBasesDocumentsListCall)Headeradded inv0.37.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsKnowledgeBasesDocumentsListCall)IfNoneMatchadded inv0.37.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsKnowledgeBasesDocumentsListCall)PageSizeadded inv0.37.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 10 and at most 100.

func (*ProjectsLocationsKnowledgeBasesDocumentsListCall)PageTokenadded inv0.37.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsKnowledgeBasesDocumentsListCall)Pagesadded inv0.37.0

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.

typeProjectsLocationsKnowledgeBasesDocumentsPatchCalladded inv0.37.0

type ProjectsLocationsKnowledgeBasesDocumentsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsKnowledgeBasesDocumentsPatchCall)Contextadded inv0.37.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsKnowledgeBasesDocumentsPatchCall)Doadded inv0.37.0

Do executes the "dialogflow.projects.locations.knowledgeBases.documents.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsKnowledgeBasesDocumentsPatchCall)Fieldsadded inv0.37.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsKnowledgeBasesDocumentsPatchCall)Headeradded inv0.37.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsKnowledgeBasesDocumentsPatchCall)UpdateMaskadded inv0.37.0

UpdateMask sets the optional parameter "updateMask": Not specified means`update all`. Currently, only `display_name` can be updated, anInvalidArgument will be returned for attempting to update other fields.

typeProjectsLocationsKnowledgeBasesDocumentsReloadCalladded inv0.37.0

type ProjectsLocationsKnowledgeBasesDocumentsReloadCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsKnowledgeBasesDocumentsReloadCall)Contextadded inv0.37.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsKnowledgeBasesDocumentsReloadCall)Doadded inv0.37.0

Do executes the "dialogflow.projects.locations.knowledgeBases.documents.reload" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsKnowledgeBasesDocumentsReloadCall)Fieldsadded inv0.37.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsKnowledgeBasesDocumentsReloadCall)Headeradded inv0.37.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsKnowledgeBasesDocumentsServiceadded inv0.37.0

type ProjectsLocationsKnowledgeBasesDocumentsService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsKnowledgeBasesDocumentsServiceadded inv0.37.0

func NewProjectsLocationsKnowledgeBasesDocumentsService(s *Service) *ProjectsLocationsKnowledgeBasesDocumentsService

func (*ProjectsLocationsKnowledgeBasesDocumentsService)Createadded inv0.37.0

Create: Creates a new document. This method is a long-running operation(https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).The returned `Operation` type has the following method-specific fields: -`metadata`: KnowledgeOperationMetadata - `response`: Document Note: The`projects.agent.knowledgeBases.documents` resource is deprecated; only use`projects.knowledgeBases.documents`.

  • parent: The knowledge base to create a document for. Format:`projects//locations//knowledgeBases/`.

func (*ProjectsLocationsKnowledgeBasesDocumentsService)Deleteadded inv0.37.0

Delete: Deletes the specified document. This method is a long-runningoperation(https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).The returned `Operation` type has the following method-specific fields: -`metadata`: KnowledgeOperationMetadata - `response`: An Empty message(https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;only use `projects.knowledgeBases.documents`.

  • name: The name of the document to delete. Format:`projects//locations//knowledgeBases//documents/`.

func (*ProjectsLocationsKnowledgeBasesDocumentsService)Getadded inv0.37.0

Get: Retrieves the specified document. Note: The`projects.agent.knowledgeBases.documents` resource is deprecated; only use`projects.knowledgeBases.documents`.

  • name: The name of the document to retrieve. Format`projects//locations//knowledgeBases//documents/`.

func (*ProjectsLocationsKnowledgeBasesDocumentsService)Importadded inv0.42.0

Import: Create documents by importing data from external sources. Dialogflowsupports up to 350 documents in each request. If you try to import more,Dialogflow will return an error. This method is a long-running operation(https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).The returned `Operation` type has the following method-specific fields: -`metadata`: KnowledgeOperationMetadata - `response`: ImportDocumentsResponse

  • parent: The knowledge base to import documents into. Format:`projects//locations//knowledgeBases/`.

func (*ProjectsLocationsKnowledgeBasesDocumentsService)Listadded inv0.37.0

List: Returns the list of all documents of the knowledge base. Note: The`projects.agent.knowledgeBases.documents` resource is deprecated; only use`projects.knowledgeBases.documents`.

  • parent: The knowledge base to list all documents for. Format:`projects//locations//knowledgeBases/`.

func (*ProjectsLocationsKnowledgeBasesDocumentsService)Patchadded inv0.37.0

Patch: Updates the specified document. This method is a long-runningoperation(https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).The returned `Operation` type has the following method-specific fields: -`metadata`: KnowledgeOperationMetadata - `response`: Document Note: The`projects.agent.knowledgeBases.documents` resource is deprecated; only use`projects.knowledgeBases.documents`.

  • name: Optional. The document resource name. The name must be empty whencreating a document. Format:`projects//locations//knowledgeBases//documents/`.

func (*ProjectsLocationsKnowledgeBasesDocumentsService)Reloadadded inv0.37.0

Reload: Reloads the specified document from its specified source,content_uri or content. The previously loaded content of the document willbe deleted. Note: Even when the content of the document has not changed,there still may be side effects because of internal implementation changes.Note: If the document source is Google Cloud Storage URI, its metadata willbe replaced with the custom metadata from Google Cloud Storage if the`import_gcs_custom_metadata` field is set to true in the request. Thismethod is a long-running operation(https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).The returned `Operation` type has the following method-specific fields: -`metadata`: KnowledgeOperationMetadata - `response`: Document Note: The`projects.agent.knowledgeBases.documents` resource is deprecated; only use`projects.knowledgeBases.documents`.

  • name: The name of the document to reload. Format:`projects//locations//knowledgeBases//documents/`.

typeProjectsLocationsKnowledgeBasesGetCalladded inv0.37.0

type ProjectsLocationsKnowledgeBasesGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsKnowledgeBasesGetCall)Contextadded inv0.37.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsKnowledgeBasesGetCall)Doadded inv0.37.0

Do executes the "dialogflow.projects.locations.knowledgeBases.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsKnowledgeBasesGetCall)Fieldsadded inv0.37.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsKnowledgeBasesGetCall)Headeradded inv0.37.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsKnowledgeBasesGetCall)IfNoneMatchadded inv0.37.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsKnowledgeBasesListCalladded inv0.37.0

type ProjectsLocationsKnowledgeBasesListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsKnowledgeBasesListCall)Contextadded inv0.37.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsKnowledgeBasesListCall)Doadded inv0.37.0

Do executes the "dialogflow.projects.locations.knowledgeBases.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse.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 becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsKnowledgeBasesListCall)Fieldsadded inv0.37.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsKnowledgeBasesListCall)Filteradded inv0.37.0

Filter sets the optional parameter "filter": The filter expression used tofilter knowledge bases returned by the list method. The expression has thefollowing syntax: [AND ] ... The following fields and operators aresupported: * display_name with has(:) operator * language_code withequals(=) operator Examples: * 'language_code=en-us' matches knowledge baseswith en-us language code. * 'display_name:articles' matches knowledge baseswhose display name contains "articles". * 'display_name:"Best Articles"'matches knowledge bases whose display name contains "Best Articles". *'language_code=en-gb AND display_name=articles' matches all knowledge baseswhose display name contains "articles" and whose language code is "en-gb".Note: An empty filter string (i.e. "") is a no-op and will result in nofiltering. For more information about filtering, see API Filtering(https://aip.dev/160).

func (*ProjectsLocationsKnowledgeBasesListCall)Headeradded inv0.37.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsKnowledgeBasesListCall)IfNoneMatchadded inv0.37.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsKnowledgeBasesListCall)PageSizeadded inv0.37.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 10 and at most 100.

func (*ProjectsLocationsKnowledgeBasesListCall)PageTokenadded inv0.37.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsKnowledgeBasesListCall)Pagesadded inv0.37.0

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.

typeProjectsLocationsKnowledgeBasesPatchCalladded inv0.37.0

type ProjectsLocationsKnowledgeBasesPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsKnowledgeBasesPatchCall)Contextadded inv0.37.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsKnowledgeBasesPatchCall)Doadded inv0.37.0

Do executes the "dialogflow.projects.locations.knowledgeBases.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1KnowledgeBase.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsKnowledgeBasesPatchCall)Fieldsadded inv0.37.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsKnowledgeBasesPatchCall)Headeradded inv0.37.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsKnowledgeBasesPatchCall)UpdateMaskadded inv0.37.0

UpdateMask sets the optional parameter "updateMask": Not specified means`update all`. Currently, only `display_name` can be updated, anInvalidArgument will be returned for attempting to update other fields.

typeProjectsLocationsKnowledgeBasesServiceadded inv0.37.0

type ProjectsLocationsKnowledgeBasesService struct {Documents *ProjectsLocationsKnowledgeBasesDocumentsService// contains filtered or unexported fields}

funcNewProjectsLocationsKnowledgeBasesServiceadded inv0.37.0

func NewProjectsLocationsKnowledgeBasesService(s *Service) *ProjectsLocationsKnowledgeBasesService

func (*ProjectsLocationsKnowledgeBasesService)Createadded inv0.37.0

Create: Creates a knowledge base. Note: The `projects.agent.knowledgeBases`resource is deprecated; only use `projects.knowledgeBases`.

  • parent: The project to create a knowledge base for. Format:`projects//locations/`.

func (*ProjectsLocationsKnowledgeBasesService)Deleteadded inv0.37.0

Delete: Deletes the specified knowledge base. Note: The`projects.agent.knowledgeBases` resource is deprecated; only use`projects.knowledgeBases`.

  • name: The name of the knowledge base to delete. Format:`projects//locations//knowledgeBases/`.

func (*ProjectsLocationsKnowledgeBasesService)Getadded inv0.37.0

Get: Retrieves the specified knowledge base. Note: The`projects.agent.knowledgeBases` resource is deprecated; only use`projects.knowledgeBases`.

  • name: The name of the knowledge base to retrieve. Format`projects//locations//knowledgeBases/`.

func (*ProjectsLocationsKnowledgeBasesService)Listadded inv0.37.0

List: Returns the list of all knowledge bases of the specified agent. Note:The `projects.agent.knowledgeBases` resource is deprecated; only use`projects.knowledgeBases`.

  • parent: The project to list of knowledge bases for. Format:`projects//locations/`.

func (*ProjectsLocationsKnowledgeBasesService)Patchadded inv0.37.0

Patch: Updates the specified knowledge base. Note: The`projects.agent.knowledgeBases` resource is deprecated; only use`projects.knowledgeBases`.

  • name: The knowledge base resource name. The name must be empty whencreating a knowledge base. Format: `projects//locations//knowledgeBases/`.

typeProjectsLocationsListCalladded inv0.53.0

type ProjectsLocationsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsListCall)Contextadded inv0.53.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsListCall)Doadded inv0.53.0

Do executes the "dialogflow.projects.locations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudLocationListLocationsResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsListCall)ExtraLocationTypesadded inv0.229.0

func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall

ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do notuse this field. It is unsupported and is ignored unless explicitlydocumented otherwise. This is primarily for internal usage.

func (*ProjectsLocationsListCall)Fieldsadded inv0.53.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsListCall)Filteradded inv0.53.0

Filter sets the optional parameter "filter": A filter to narrow down resultsto a preferred subset. The filtering language accepts strings like"displayName=tokyo", and is documented in more detail in AIP-160(https://google.aip.dev/160).

func (*ProjectsLocationsListCall)Headeradded inv0.53.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsListCall)IfNoneMatchadded inv0.53.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsListCall)PageSizeadded inv0.53.0

PageSize sets the optional parameter "pageSize": The maximum number ofresults to return. If not set, the service selects a default.

func (*ProjectsLocationsListCall)PageTokenadded inv0.53.0

PageToken sets the optional parameter "pageToken": A page token receivedfrom the `next_page_token` field in the response. Send that page token toreceive the subsequent page.

func (*ProjectsLocationsListCall)Pagesadded inv0.53.0

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.

typeProjectsLocationsOperationsCancelCalladded inv0.11.0

type ProjectsLocationsOperationsCancelCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsOperationsCancelCall)Contextadded inv0.11.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsCancelCall)Doadded inv0.11.0

Do executes the "dialogflow.projects.locations.operations.cancel" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsOperationsCancelCall)Fieldsadded inv0.11.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsOperationsCancelCall)Headeradded inv0.11.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsOperationsGetCalladded inv0.10.0

type ProjectsLocationsOperationsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsOperationsGetCall)Contextadded inv0.10.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsGetCall)Doadded inv0.10.0

Do executes the "dialogflow.projects.locations.operations.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsOperationsGetCall)Fieldsadded inv0.10.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsOperationsGetCall)Headeradded inv0.10.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsOperationsGetCall)IfNoneMatchadded inv0.10.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsOperationsListCalladded inv0.10.0

type ProjectsLocationsOperationsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsOperationsListCall)Contextadded inv0.10.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsListCall)Doadded inv0.10.0

Do executes the "dialogflow.projects.locations.operations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsOperationsListCall)Fieldsadded inv0.10.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsOperationsListCall)Filteradded inv0.10.0

Filter sets the optional parameter "filter": The standard list filter.

func (*ProjectsLocationsOperationsListCall)Headeradded inv0.10.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsOperationsListCall)IfNoneMatchadded inv0.10.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsOperationsListCall)PageSizeadded inv0.10.0

PageSize sets the optional parameter "pageSize": The standard list pagesize.

func (*ProjectsLocationsOperationsListCall)PageTokenadded inv0.10.0

PageToken sets the optional parameter "pageToken": The standard list pagetoken.

func (*ProjectsLocationsOperationsListCall)Pagesadded inv0.10.0

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.

func (*ProjectsLocationsOperationsListCall)ReturnPartialSuccessadded inv0.252.0

func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccessbool) *ProjectsLocationsOperationsListCall

ReturnPartialSuccess sets the optional parameter "returnPartialSuccess":When set to `true`, operations that are reachable are returned as normal,and those that are unreachable are returned in the[ListOperationsResponse.unreachable] field. This can only be `true` whenreading across collections e.g. when `parent` is set to"projects/example/locations/-". This field is not by default supported andwill result in an `UNIMPLEMENTED` error if set unless explicitly documentedotherwise in service or product specific documentation.

typeProjectsLocationsOperationsServiceadded inv0.10.0

type ProjectsLocationsOperationsService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsOperationsServiceadded inv0.10.0

func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService

func (*ProjectsLocationsOperationsService)Canceladded inv0.11.0

Cancel: Starts asynchronous cancellation on a long-running operation. Theserver makes a best effort to cancel the operation, but success is notguaranteed. If the server doesn't support this method, it returns`google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation orother methods to check whether the cancellation succeeded or whether theoperation completed despite cancellation. On successful cancellation, theoperation is not deleted; instead, it becomes an operation with anOperation.error value with a google.rpc.Status.code of `1`, corresponding to`Code.CANCELLED`.

- name: The name of the operation resource to be cancelled.

func (*ProjectsLocationsOperationsService)Getadded inv0.10.0

Get: Gets the latest state of a long-running operation. Clients can use thismethod to poll the operation result at intervals as recommended by the APIservice.

- name: The name of the operation resource.

func (*ProjectsLocationsOperationsService)Listadded inv0.10.0

List: Lists operations that match the specified filter in the request. Ifthe server doesn't support this method, it returns `UNIMPLEMENTED`.

- name: The name of the operation's parent resource.

typeProjectsLocationsPhoneNumbersDeleteCalladded inv0.223.0

type ProjectsLocationsPhoneNumbersDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsPhoneNumbersDeleteCall)Contextadded inv0.223.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsPhoneNumbersDeleteCall)Doadded inv0.223.0

Do executes the "dialogflow.projects.locations.phoneNumbers.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1PhoneNumber.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsPhoneNumbersDeleteCall)Fieldsadded inv0.223.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsPhoneNumbersDeleteCall)Headeradded inv0.223.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsPhoneNumbersListCalladded inv0.223.0

type ProjectsLocationsPhoneNumbersListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsPhoneNumbersListCall)Contextadded inv0.223.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsPhoneNumbersListCall)Doadded inv0.223.0

Do executes the "dialogflow.projects.locations.phoneNumbers.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListPhoneNumbersResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsPhoneNumbersListCall)Fieldsadded inv0.223.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsPhoneNumbersListCall)Headeradded inv0.223.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsPhoneNumbersListCall)IfNoneMatchadded inv0.223.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsPhoneNumbersListCall)PageSizeadded inv0.223.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. The default value is 100. The maximum value is1000.

func (*ProjectsLocationsPhoneNumbersListCall)PageTokenadded inv0.223.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsPhoneNumbersListCall)Pagesadded inv0.223.0

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.

func (*ProjectsLocationsPhoneNumbersListCall)ShowDeletedadded inv0.223.0

ShowDeleted sets the optional parameter "showDeleted": Controls whether`PhoneNumber` resources in the DELETE_REQUESTED state should be returned.Defaults to false.

typeProjectsLocationsPhoneNumbersPatchCalladded inv0.223.0

type ProjectsLocationsPhoneNumbersPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsPhoneNumbersPatchCall)Contextadded inv0.223.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsPhoneNumbersPatchCall)Doadded inv0.223.0

Do executes the "dialogflow.projects.locations.phoneNumbers.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1PhoneNumber.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsPhoneNumbersPatchCall)Fieldsadded inv0.223.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsPhoneNumbersPatchCall)Headeradded inv0.223.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsPhoneNumbersPatchCall)UpdateMaskadded inv0.223.0

UpdateMask sets the optional parameter "updateMask": The mask to controlwhich fields get updated.

typeProjectsLocationsPhoneNumbersServiceadded inv0.223.0

type ProjectsLocationsPhoneNumbersService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsPhoneNumbersServiceadded inv0.223.0

func NewProjectsLocationsPhoneNumbersService(s *Service) *ProjectsLocationsPhoneNumbersService

func (*ProjectsLocationsPhoneNumbersService)Deleteadded inv0.223.0

Delete: Requests deletion of a `PhoneNumber`. The `PhoneNumber` is movedinto the DELETE_REQUESTED state immediately, and is deleted approximately 30days later. This method may only be called on a `PhoneNumber` in the ACTIVEstate.

  • name: The unique identifier of the `PhoneNumber` to delete. Format:`projects//phoneNumbers/`. Format: `projects//locations//phoneNumbers/`.

func (*ProjectsLocationsPhoneNumbersService)Listadded inv0.223.0

List: Returns the list of all phone numbers in the specified project.

  • parent: The project to list all `PhoneNumber` resources from. Format:`projects/`. Format: `projects//locations/`.

func (*ProjectsLocationsPhoneNumbersService)Patchadded inv0.223.0

Patch: Updates the specified `PhoneNumber`.

  • name: Optional. The unique identifier of this phone number. Required forPhoneNumbers.UpdatePhoneNumber method. Format: `projects//phoneNumbers/`.Format: `projects//locations//phoneNumbers/`.

func (*ProjectsLocationsPhoneNumbersService)Undeleteadded inv0.223.0

Undelete: Cancels the deletion request for a `PhoneNumber`. This method mayonly be called on a `PhoneNumber` in the DELETE_REQUESTED state.

  • name: The unique identifier of the `PhoneNumber` to delete. Format:`projects//phoneNumbers/`. Format: `projects//locations//phoneNumbers/`.

typeProjectsLocationsPhoneNumbersUndeleteCalladded inv0.223.0

type ProjectsLocationsPhoneNumbersUndeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsPhoneNumbersUndeleteCall)Contextadded inv0.223.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsPhoneNumbersUndeleteCall)Doadded inv0.223.0

Do executes the "dialogflow.projects.locations.phoneNumbers.undelete" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1PhoneNumber.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsPhoneNumbersUndeleteCall)Fieldsadded inv0.223.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsPhoneNumbersUndeleteCall)Headeradded inv0.223.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsServiceadded inv0.9.0

funcNewProjectsLocationsServiceadded inv0.9.0

func NewProjectsLocationsService(s *Service) *ProjectsLocationsService

func (*ProjectsLocationsService)DeleteAgentadded inv0.9.0

DeleteAgent: Deletes the specified agent.

  • parent: The project that the agent to delete is associated with. Format:`projects/` or `projects//locations/`.

func (*ProjectsLocationsService)Getadded inv0.53.0

Get: Gets information about a location.

- name: Resource name for the location.

func (*ProjectsLocationsService)GetAgentadded inv0.9.0

GetAgent: Retrieves the specified agent.

  • parent: The project that the agent to fetch is associated with. Format:`projects/` or `projects//locations/`.

func (*ProjectsLocationsService)GetEncryptionSpecadded inv0.189.0

GetEncryptionSpec: Gets location-level encryption key specification.

- name: The name of the encryption spec resource to get.

func (*ProjectsLocationsService)Listadded inv0.53.0

List: Lists information about the supported locations for this service.

- name: The resource that owns the locations collection, if applicable.

func (*ProjectsLocationsService)SetAgentadded inv0.21.0

func (r *ProjectsLocationsService) SetAgent(parentstring, googleclouddialogflowv2beta1agent *GoogleCloudDialogflowV2beta1Agent) *ProjectsLocationsSetAgentCall

SetAgent: Creates/updates the specified agent. Note: You should always trainan agent prior to sending it queries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The project of this agent. Format: `projects/` or`projects//locations/`.

typeProjectsLocationsSetAgentCalladded inv0.21.0

type ProjectsLocationsSetAgentCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsSetAgentCall)Contextadded inv0.21.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsSetAgentCall)Doadded inv0.21.0

Do executes the "dialogflow.projects.locations.setAgent" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Agent.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsSetAgentCall)Fieldsadded inv0.21.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsSetAgentCall)Headeradded inv0.21.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsSetAgentCall)UpdateMaskadded inv0.21.0

UpdateMask sets the optional parameter "updateMask": The mask to controlwhich fields get updated.

typeProjectsLocationsSipTrunksCreateCalladded inv0.205.0

type ProjectsLocationsSipTrunksCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsSipTrunksCreateCall)Contextadded inv0.205.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsSipTrunksCreateCall)Doadded inv0.205.0

Do executes the "dialogflow.projects.locations.sipTrunks.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SipTrunk.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsSipTrunksCreateCall)Fieldsadded inv0.205.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsSipTrunksCreateCall)Headeradded inv0.205.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsSipTrunksDeleteCalladded inv0.205.0

type ProjectsLocationsSipTrunksDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsSipTrunksDeleteCall)Contextadded inv0.205.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsSipTrunksDeleteCall)Doadded inv0.205.0

Do executes the "dialogflow.projects.locations.sipTrunks.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsSipTrunksDeleteCall)Fieldsadded inv0.205.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsSipTrunksDeleteCall)Headeradded inv0.205.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsSipTrunksGetCalladded inv0.205.0

type ProjectsLocationsSipTrunksGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsSipTrunksGetCall)Contextadded inv0.205.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsSipTrunksGetCall)Doadded inv0.205.0

Do executes the "dialogflow.projects.locations.sipTrunks.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SipTrunk.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsSipTrunksGetCall)Fieldsadded inv0.205.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsSipTrunksGetCall)Headeradded inv0.205.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsSipTrunksGetCall)IfNoneMatchadded inv0.205.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsSipTrunksListCalladded inv0.205.0

type ProjectsLocationsSipTrunksListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsSipTrunksListCall)Contextadded inv0.205.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsSipTrunksListCall)Doadded inv0.205.0

Do executes the "dialogflow.projects.locations.sipTrunks.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListSipTrunksResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsSipTrunksListCall)Fieldsadded inv0.205.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsSipTrunksListCall)Headeradded inv0.205.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsSipTrunksListCall)IfNoneMatchadded inv0.205.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsSipTrunksListCall)PageSizeadded inv0.205.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. By default 100 and at most 1000.

func (*ProjectsLocationsSipTrunksListCall)PageTokenadded inv0.205.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsSipTrunksListCall)Pagesadded inv0.205.0

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.

typeProjectsLocationsSipTrunksPatchCalladded inv0.205.0

type ProjectsLocationsSipTrunksPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsSipTrunksPatchCall)Contextadded inv0.205.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsSipTrunksPatchCall)Doadded inv0.205.0

Do executes the "dialogflow.projects.locations.sipTrunks.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SipTrunk.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsSipTrunksPatchCall)Fieldsadded inv0.205.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsSipTrunksPatchCall)Headeradded inv0.205.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsSipTrunksPatchCall)UpdateMaskadded inv0.205.0

UpdateMask sets the optional parameter "updateMask": The mask to controlwhich fields get updated. If the mask is not present, all fields will beupdated.

typeProjectsLocationsSipTrunksServiceadded inv0.205.0

type ProjectsLocationsSipTrunksService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsSipTrunksServiceadded inv0.205.0

func NewProjectsLocationsSipTrunksService(s *Service) *ProjectsLocationsSipTrunksService

func (*ProjectsLocationsSipTrunksService)Createadded inv0.205.0

Create: Creates a SipTrunk for a specified location.

  • parent: The location to create a SIP trunk for. Format:`projects//locations/`.

func (*ProjectsLocationsSipTrunksService)Deleteadded inv0.205.0

Delete: Deletes a specified SipTrunk.

  • name: The name of the SIP trunk to delete. Format:`projects//locations//sipTrunks/`.

func (*ProjectsLocationsSipTrunksService)Getadded inv0.205.0

Get: Retrieves the specified SipTrunk.

  • name: The name of the SIP trunk to delete. Format:`projects//locations//sipTrunks/`.

func (*ProjectsLocationsSipTrunksService)Listadded inv0.205.0

List: Returns a list of SipTrunks in the specified location.

  • parent: The location to list SIP trunks from. Format:`projects//locations/`.

func (*ProjectsLocationsSipTrunksService)Patchadded inv0.205.0

Patch: Updates the specified SipTrunk.

  • name: Identifier. The unique identifier of the SIP trunk. Format:`projects//locations//sipTrunks/`.

typeProjectsLocationsStatelessSuggestionGenerateCalladded inv0.183.0

type ProjectsLocationsStatelessSuggestionGenerateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsStatelessSuggestionGenerateCall)Contextadded inv0.183.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsStatelessSuggestionGenerateCall)Doadded inv0.183.0

Do executes the "dialogflow.projects.locations.statelessSuggestion.generate" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsStatelessSuggestionGenerateCall)Fieldsadded inv0.183.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsStatelessSuggestionGenerateCall)Headeradded inv0.183.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsStatelessSuggestionServiceadded inv0.183.0

type ProjectsLocationsStatelessSuggestionService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsStatelessSuggestionServiceadded inv0.183.0

func NewProjectsLocationsStatelessSuggestionService(s *Service) *ProjectsLocationsStatelessSuggestionService

func (*ProjectsLocationsStatelessSuggestionService)Generateadded inv0.183.0

Generate: Generates and returns a suggestion for a conversation that doesnot have a resource created for it.

  • parent: The parent resource to charge for the Suggestion's generation.Format: `projects//locations/`.

typeProjectsLocationsSuggestionsGenerateStatelessSummaryCalladded inv0.123.0

type ProjectsLocationsSuggestionsGenerateStatelessSummaryCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsSuggestionsGenerateStatelessSummaryCall)Contextadded inv0.123.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsSuggestionsGenerateStatelessSummaryCall)Doadded inv0.123.0

Do executes the "dialogflow.projects.locations.suggestions.generateStatelessSummary" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsSuggestionsGenerateStatelessSummaryCall)Fieldsadded inv0.123.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsSuggestionsGenerateStatelessSummaryCall)Headeradded inv0.123.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsSuggestionsSearchKnowledgeCalladded inv0.139.0

type ProjectsLocationsSuggestionsSearchKnowledgeCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsSuggestionsSearchKnowledgeCall)Contextadded inv0.139.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsSuggestionsSearchKnowledgeCall)Doadded inv0.139.0

Do executes the "dialogflow.projects.locations.suggestions.searchKnowledge" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SearchKnowledgeResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsSuggestionsSearchKnowledgeCall)Fieldsadded inv0.139.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsSuggestionsSearchKnowledgeCall)Headeradded inv0.139.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsSuggestionsServiceadded inv0.123.0

type ProjectsLocationsSuggestionsService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsSuggestionsServiceadded inv0.123.0

func NewProjectsLocationsSuggestionsService(s *Service) *ProjectsLocationsSuggestionsService

func (*ProjectsLocationsSuggestionsService)GenerateStatelessSummaryadded inv0.123.0

func (r *ProjectsLocationsSuggestionsService) GenerateStatelessSummary(parentstring, googleclouddialogflowv2beta1generatestatelesssummaryrequest *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest) *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall

GenerateStatelessSummary: Generates and returns a summary for a conversationthat does not have a resource created for it.

  • parent: The parent resource to charge for the Summary's generation.Format: `projects//locations/`.

func (*ProjectsLocationsSuggestionsService)SearchKnowledgeadded inv0.139.0

SearchKnowledge: Get answers for the given query based on knowledgedocuments.

  • parent: The parent resource contains the conversation profile Format:'projects/' or `projects//locations/`.

typeProjectsLocationsToolsCreateCalladded inv0.253.0

type ProjectsLocationsToolsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsToolsCreateCall)Contextadded inv0.253.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsToolsCreateCall)Doadded inv0.253.0

Do executes the "dialogflow.projects.locations.tools.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Tool.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsToolsCreateCall)Fieldsadded inv0.253.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsToolsCreateCall)Headeradded inv0.253.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsToolsCreateCall)ToolIdadded inv0.253.0

ToolId sets the optional parameter "toolId": The ID to use for the tool,which will become the final component of the tool's resource name. The toolID must be compliant with the regression formula `a-zA-Z*` with thecharacters length in range of [3,64]. If the field is not provide, an Idwill be auto-generated. If the field is provided, the caller is responsiblefor 1. the uniqueness of the ID, otherwise the request will be rejected. 2.the consistency for whether to use custom ID or not under a project tobetter ensure uniqueness.

typeProjectsLocationsToolsDeleteCalladded inv0.253.0

type ProjectsLocationsToolsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsToolsDeleteCall)Contextadded inv0.253.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsToolsDeleteCall)Doadded inv0.253.0

Do executes the "dialogflow.projects.locations.tools.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsToolsDeleteCall)Fieldsadded inv0.253.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsToolsDeleteCall)Headeradded inv0.253.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsToolsGetCalladded inv0.253.0

type ProjectsLocationsToolsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsToolsGetCall)Contextadded inv0.253.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsToolsGetCall)Doadded inv0.253.0

Do executes the "dialogflow.projects.locations.tools.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Tool.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsToolsGetCall)Fieldsadded inv0.253.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsToolsGetCall)Headeradded inv0.253.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsToolsGetCall)IfNoneMatchadded inv0.253.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsToolsListCalladded inv0.253.0

type ProjectsLocationsToolsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsToolsListCall)Contextadded inv0.253.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsToolsListCall)Doadded inv0.253.0

Do executes the "dialogflow.projects.locations.tools.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListToolsResponse.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsToolsListCall)Fieldsadded inv0.253.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsToolsListCall)Headeradded inv0.253.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsToolsListCall)IfNoneMatchadded inv0.253.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsToolsListCall)PageSizeadded inv0.253.0

PageSize sets the optional parameter "pageSize": Maximum number ofconversation models to return in a single page. Default to 10.

func (*ProjectsLocationsToolsListCall)PageTokenadded inv0.253.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsLocationsToolsListCall)Pagesadded inv0.253.0

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.

typeProjectsLocationsToolsPatchCalladded inv0.253.0

type ProjectsLocationsToolsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsToolsPatchCall)Contextadded inv0.253.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsToolsPatchCall)Doadded inv0.253.0

Do executes the "dialogflow.projects.locations.tools.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Tool.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsToolsPatchCall)Fieldsadded inv0.253.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsToolsPatchCall)Headeradded inv0.253.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsToolsPatchCall)UpdateMaskadded inv0.253.0

UpdateMask sets the optional parameter "updateMask": The list of fields toupdate.

typeProjectsLocationsToolsServiceadded inv0.253.0

type ProjectsLocationsToolsService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsToolsServiceadded inv0.253.0

func NewProjectsLocationsToolsService(s *Service) *ProjectsLocationsToolsService

func (*ProjectsLocationsToolsService)Createadded inv0.253.0

Create: Creates a tool.

  • parent: The project/location to create tool for. Format:`projects//locations/`.

func (*ProjectsLocationsToolsService)Deleteadded inv0.253.0

Delete: Deletes a tool.

  • name: The tool resource name to delete. Format:`projects//locations//tools/`.

func (*ProjectsLocationsToolsService)Getadded inv0.253.0

Get: Retrieves a tool.

  • name: The tool resource name to retrieve. Format:`projects//locations//tools/`.

func (*ProjectsLocationsToolsService)Listadded inv0.253.0

List: Lists tools.

  • parent: The project/location to list tools for. Format:`projects//locations/`.

func (*ProjectsLocationsToolsService)Patchadded inv0.253.0

Patch: Updates a tool.

  • name: Output only. Identifier. The resource name of the tool. Format:`projects//locations//tools/`.

typeProjectsOperationsCancelCalladded inv0.11.0

type ProjectsOperationsCancelCall struct {// contains filtered or unexported fields}

func (*ProjectsOperationsCancelCall)Contextadded inv0.11.0

Context sets the context to be used in this call's Do method.

func (*ProjectsOperationsCancelCall)Doadded inv0.11.0

Do executes the "dialogflow.projects.operations.cancel" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsOperationsCancelCall)Fieldsadded inv0.11.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsOperationsCancelCall)Headeradded inv0.11.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsOperationsGetCall

type ProjectsOperationsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsOperationsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsOperationsGetCall)Do

Do executes the "dialogflow.projects.operations.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsOperationsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsOperationsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsOperationsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsOperationsListCalladded inv0.8.0

type ProjectsOperationsListCall struct {// contains filtered or unexported fields}

func (*ProjectsOperationsListCall)Contextadded inv0.8.0

Context sets the context to be used in this call's Do method.

func (*ProjectsOperationsListCall)Doadded inv0.8.0

Do executes the "dialogflow.projects.operations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsOperationsListCall)Fieldsadded inv0.8.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsOperationsListCall)Filteradded inv0.8.0

Filter sets the optional parameter "filter": The standard list filter.

func (*ProjectsOperationsListCall)Headeradded inv0.8.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsOperationsListCall)IfNoneMatchadded inv0.8.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsOperationsListCall)PageSizeadded inv0.8.0

PageSize sets the optional parameter "pageSize": The standard list pagesize.

func (*ProjectsOperationsListCall)PageTokenadded inv0.8.0

PageToken sets the optional parameter "pageToken": The standard list pagetoken.

func (*ProjectsOperationsListCall)Pagesadded inv0.8.0

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.

func (*ProjectsOperationsListCall)ReturnPartialSuccessadded inv0.252.0

func (c *ProjectsOperationsListCall) ReturnPartialSuccess(returnPartialSuccessbool) *ProjectsOperationsListCall

ReturnPartialSuccess sets the optional parameter "returnPartialSuccess":When set to `true`, operations that are reachable are returned as normal,and those that are unreachable are returned in the[ListOperationsResponse.unreachable] field. This can only be `true` whenreading across collections e.g. when `parent` is set to"projects/example/locations/-". This field is not by default supported andwill result in an `UNIMPLEMENTED` error if set unless explicitly documentedotherwise in service or product specific documentation.

typeProjectsOperationsService

type ProjectsOperationsService struct {// contains filtered or unexported fields}

funcNewProjectsOperationsService

func NewProjectsOperationsService(s *Service) *ProjectsOperationsService

func (*ProjectsOperationsService)Canceladded inv0.11.0

Cancel: Starts asynchronous cancellation on a long-running operation. Theserver makes a best effort to cancel the operation, but success is notguaranteed. If the server doesn't support this method, it returns`google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation orother methods to check whether the cancellation succeeded or whether theoperation completed despite cancellation. On successful cancellation, theoperation is not deleted; instead, it becomes an operation with anOperation.error value with a google.rpc.Status.code of `1`, corresponding to`Code.CANCELLED`.

- name: The name of the operation resource to be cancelled.

func (*ProjectsOperationsService)Get

Get: Gets the latest state of a long-running operation. Clients can use thismethod to poll the operation result at intervals as recommended by the APIservice.

- name: The name of the operation resource.

func (*ProjectsOperationsService)Listadded inv0.8.0

List: Lists operations that match the specified filter in the request. Ifthe server doesn't support this method, it returns `UNIMPLEMENTED`.

- name: The name of the operation's parent resource.

typeProjectsPhoneNumbersDeleteCalladded inv0.223.0

type ProjectsPhoneNumbersDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsPhoneNumbersDeleteCall)Contextadded inv0.223.0

Context sets the context to be used in this call's Do method.

func (*ProjectsPhoneNumbersDeleteCall)Doadded inv0.223.0

Do executes the "dialogflow.projects.phoneNumbers.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1PhoneNumber.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsPhoneNumbersDeleteCall)Fieldsadded inv0.223.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsPhoneNumbersDeleteCall)Headeradded inv0.223.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsPhoneNumbersListCalladded inv0.223.0

type ProjectsPhoneNumbersListCall struct {// contains filtered or unexported fields}

func (*ProjectsPhoneNumbersListCall)Contextadded inv0.223.0

Context sets the context to be used in this call's Do method.

func (*ProjectsPhoneNumbersListCall)Doadded inv0.223.0

Do executes the "dialogflow.projects.phoneNumbers.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1ListPhoneNumbersResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsPhoneNumbersListCall)Fieldsadded inv0.223.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsPhoneNumbersListCall)Headeradded inv0.223.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsPhoneNumbersListCall)IfNoneMatchadded inv0.223.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsPhoneNumbersListCall)PageSizeadded inv0.223.0

PageSize sets the optional parameter "pageSize": The maximum number of itemsto return in a single page. The default value is 100. The maximum value is1000.

func (*ProjectsPhoneNumbersListCall)PageTokenadded inv0.223.0

PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous list request.

func (*ProjectsPhoneNumbersListCall)Pagesadded inv0.223.0

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.

func (*ProjectsPhoneNumbersListCall)ShowDeletedadded inv0.223.0

ShowDeleted sets the optional parameter "showDeleted": Controls whether`PhoneNumber` resources in the DELETE_REQUESTED state should be returned.Defaults to false.

typeProjectsPhoneNumbersPatchCalladded inv0.223.0

type ProjectsPhoneNumbersPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsPhoneNumbersPatchCall)Contextadded inv0.223.0

Context sets the context to be used in this call's Do method.

func (*ProjectsPhoneNumbersPatchCall)Doadded inv0.223.0

Do executes the "dialogflow.projects.phoneNumbers.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1PhoneNumber.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsPhoneNumbersPatchCall)Fieldsadded inv0.223.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsPhoneNumbersPatchCall)Headeradded inv0.223.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsPhoneNumbersPatchCall)UpdateMaskadded inv0.223.0

UpdateMask sets the optional parameter "updateMask": The mask to controlwhich fields get updated.

typeProjectsPhoneNumbersServiceadded inv0.223.0

type ProjectsPhoneNumbersService struct {// contains filtered or unexported fields}

funcNewProjectsPhoneNumbersServiceadded inv0.223.0

func NewProjectsPhoneNumbersService(s *Service) *ProjectsPhoneNumbersService

func (*ProjectsPhoneNumbersService)Deleteadded inv0.223.0

Delete: Requests deletion of a `PhoneNumber`. The `PhoneNumber` is movedinto the DELETE_REQUESTED state immediately, and is deleted approximately 30days later. This method may only be called on a `PhoneNumber` in the ACTIVEstate.

  • name: The unique identifier of the `PhoneNumber` to delete. Format:`projects//phoneNumbers/`. Format: `projects//locations//phoneNumbers/`.

func (*ProjectsPhoneNumbersService)Listadded inv0.223.0

List: Returns the list of all phone numbers in the specified project.

  • parent: The project to list all `PhoneNumber` resources from. Format:`projects/`. Format: `projects//locations/`.

func (*ProjectsPhoneNumbersService)Patchadded inv0.223.0

func (r *ProjectsPhoneNumbersService) Patch(nameidstring, googleclouddialogflowv2beta1phonenumber *GoogleCloudDialogflowV2beta1PhoneNumber) *ProjectsPhoneNumbersPatchCall

Patch: Updates the specified `PhoneNumber`.

  • name: Optional. The unique identifier of this phone number. Required forPhoneNumbers.UpdatePhoneNumber method. Format: `projects//phoneNumbers/`.Format: `projects//locations//phoneNumbers/`.

func (*ProjectsPhoneNumbersService)Undeleteadded inv0.223.0

func (r *ProjectsPhoneNumbersService) Undelete(nameidstring, googleclouddialogflowv2beta1undeletephonenumberrequest *GoogleCloudDialogflowV2beta1UndeletePhoneNumberRequest) *ProjectsPhoneNumbersUndeleteCall

Undelete: Cancels the deletion request for a `PhoneNumber`. This method mayonly be called on a `PhoneNumber` in the DELETE_REQUESTED state.

  • name: The unique identifier of the `PhoneNumber` to delete. Format:`projects//phoneNumbers/`. Format: `projects//locations//phoneNumbers/`.

typeProjectsPhoneNumbersUndeleteCalladded inv0.223.0

type ProjectsPhoneNumbersUndeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsPhoneNumbersUndeleteCall)Contextadded inv0.223.0

Context sets the context to be used in this call's Do method.

func (*ProjectsPhoneNumbersUndeleteCall)Doadded inv0.223.0

Do executes the "dialogflow.projects.phoneNumbers.undelete" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1PhoneNumber.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsPhoneNumbersUndeleteCall)Fieldsadded inv0.223.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsPhoneNumbersUndeleteCall)Headeradded inv0.223.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsService

type ProjectsService struct {Agent *ProjectsAgentServiceAnswerRecords *ProjectsAnswerRecordsServiceConversationProfiles *ProjectsConversationProfilesServiceConversations *ProjectsConversationsServiceGenerators *ProjectsGeneratorsServiceKnowledgeBases *ProjectsKnowledgeBasesServiceLocations *ProjectsLocationsServiceOperations *ProjectsOperationsServicePhoneNumbers *ProjectsPhoneNumbersServiceSuggestions *ProjectsSuggestionsService// contains filtered or unexported fields}

funcNewProjectsService

func NewProjectsService(s *Service) *ProjectsService

func (*ProjectsService)DeleteAgentadded inv0.7.0

func (r *ProjectsService) DeleteAgent(parentstring) *ProjectsDeleteAgentCall

DeleteAgent: Deletes the specified agent.

  • parent: The project that the agent to delete is associated with. Format:`projects/` or `projects//locations/`.

func (*ProjectsService)GetAgent

func (r *ProjectsService) GetAgent(parentstring) *ProjectsGetAgentCall

GetAgent: Retrieves the specified agent.

  • parent: The project that the agent to fetch is associated with. Format:`projects/` or `projects//locations/`.

func (*ProjectsService)SetAgentadded inv0.20.0

func (r *ProjectsService) SetAgent(parentstring, googleclouddialogflowv2beta1agent *GoogleCloudDialogflowV2beta1Agent) *ProjectsSetAgentCall

SetAgent: Creates/updates the specified agent. Note: You should always trainan agent prior to sending it queries. See the training documentation(https://cloud.google.com/dialogflow/es/docs/training).

  • parent: The project of this agent. Format: `projects/` or`projects//locations/`.

typeProjectsSetAgentCalladded inv0.20.0

type ProjectsSetAgentCall struct {// contains filtered or unexported fields}

func (*ProjectsSetAgentCall)Contextadded inv0.20.0

Context sets the context to be used in this call's Do method.

func (*ProjectsSetAgentCall)Doadded inv0.20.0

Do executes the "dialogflow.projects.setAgent" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1Agent.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsSetAgentCall)Fieldsadded inv0.20.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsSetAgentCall)Headeradded inv0.20.0

func (c *ProjectsSetAgentCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsSetAgentCall)UpdateMaskadded inv0.20.0

func (c *ProjectsSetAgentCall) UpdateMask(updateMaskstring) *ProjectsSetAgentCall

UpdateMask sets the optional parameter "updateMask": The mask to controlwhich fields get updated.

typeProjectsSuggestionsGenerateStatelessSummaryCalladded inv0.123.0

type ProjectsSuggestionsGenerateStatelessSummaryCall struct {// contains filtered or unexported fields}

func (*ProjectsSuggestionsGenerateStatelessSummaryCall)Contextadded inv0.123.0

Context sets the context to be used in this call's Do method.

func (*ProjectsSuggestionsGenerateStatelessSummaryCall)Doadded inv0.123.0

Do executes the "dialogflow.projects.suggestions.generateStatelessSummary" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsSuggestionsGenerateStatelessSummaryCall)Fieldsadded inv0.123.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsSuggestionsGenerateStatelessSummaryCall)Headeradded inv0.123.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsSuggestionsSearchKnowledgeCalladded inv0.139.0

type ProjectsSuggestionsSearchKnowledgeCall struct {// contains filtered or unexported fields}

func (*ProjectsSuggestionsSearchKnowledgeCall)Contextadded inv0.139.0

Context sets the context to be used in this call's Do method.

func (*ProjectsSuggestionsSearchKnowledgeCall)Doadded inv0.139.0

Do executes the "dialogflow.projects.suggestions.searchKnowledge" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudDialogflowV2beta1SearchKnowledgeResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsSuggestionsSearchKnowledgeCall)Fieldsadded inv0.139.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsSuggestionsSearchKnowledgeCall)Headeradded inv0.139.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsSuggestionsServiceadded inv0.123.0

type ProjectsSuggestionsService struct {// contains filtered or unexported fields}

funcNewProjectsSuggestionsServiceadded inv0.123.0

func NewProjectsSuggestionsService(s *Service) *ProjectsSuggestionsService

func (*ProjectsSuggestionsService)GenerateStatelessSummaryadded inv0.123.0

func (r *ProjectsSuggestionsService) GenerateStatelessSummary(parentstring, googleclouddialogflowv2beta1generatestatelesssummaryrequest *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest) *ProjectsSuggestionsGenerateStatelessSummaryCall

GenerateStatelessSummary: Generates and returns a summary for a conversationthat does not have a resource created for it.

  • parent: The parent resource to charge for the Summary's generation.Format: `projects//locations/`.

func (*ProjectsSuggestionsService)SearchKnowledgeadded inv0.139.0

func (r *ProjectsSuggestionsService) SearchKnowledge(parentstring, googleclouddialogflowv2beta1searchknowledgerequest *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest) *ProjectsSuggestionsSearchKnowledgeCall

SearchKnowledge: Get answers for the given query based on knowledgedocuments.

  • parent: The parent resource contains the conversation profile Format:'projects/' or `projects//locations/`.

typeService

type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentProjects *ProjectsService// contains filtered or unexported fields}

funcNewdeprecated

func New(client *http.Client) (*Service,error)

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.

funcNewServiceadded inv0.3.0

func NewService(ctxcontext.Context, opts ...option.ClientOption) (*Service,error)

NewService creates a new Service.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp