/opt/canhelp/node_modules/googleapis/build/src/apis/dialogflow
NameSizeModeActions
index.d.ts15170644editdlrm
index.js22060644editdlrm
v2.d.ts12717910644editdlrm
v2.js3840740644editdlrm
v2beta1.d.ts12306560644editdlrm
v2beta1.js3673590644editdlrm
v3.d.ts7993890644editdlrm
v3.js2157660644editdlrm
v3beta1.d.ts8328400644editdlrm
v3beta1.js2222860644editdlrm
Edit: /opt/canhelp/node_modules/googleapis/build/src/apis/dialogflow/v2.d.ts (1271791B)
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; import { Readable } from 'stream'; export declare namespace dialogflow_v2 { export interface Options extends GlobalOptions { version: 'v2'; } interface StandardParameters { /** * Auth client or API Key for the request */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth; /** * V1 error format. */ '$.xgafv'?: string; /** * OAuth access token. */ access_token?: string; /** * Data format for response. */ alt?: string; /** * JSONP */ callback?: string; /** * Selector specifying which fields to include in a partial response. */ fields?: string; /** * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** * OAuth 2.0 token for the current user. */ oauth_token?: string; /** * Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** * Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** * Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; } /** * Dialogflow API * * Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices). * * @example * ```js * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * ``` */ export class Dialogflow { context: APIRequestContext; projects: Resource$Projects; constructor(options: GlobalOptions, google?: GoogleConfigurable); } export interface Schema$GoogleCloudDialogflowCxV3AdvancedSettings { audioExportGcsDestination?: Schema$GoogleCloudDialogflowCxV3GcsDestination; dtmfSettings?: Schema$GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings; loggingSettings?: Schema$GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings; speechSettings?: Schema$GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings; } export interface Schema$GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings { enabled?: boolean | null; endpointingTimeoutDuration?: string | null; finishDigit?: string | null; interdigitTimeoutDuration?: string | null; maxDigits?: number | null; } export interface Schema$GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings { enableConsentBasedRedaction?: boolean | null; enableInteractionLogging?: boolean | null; enableStackdriverLogging?: boolean | null; } export interface Schema$GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings { endpointerSensitivity?: number | null; models?: { [key: string]: string; } | null; noSpeechTimeout?: string | null; useTimeoutBasedEndpointing?: boolean | null; } export interface Schema$GoogleCloudDialogflowCxV3AudioInput { audio?: string | null; config?: Schema$GoogleCloudDialogflowCxV3InputAudioConfig; } export interface Schema$GoogleCloudDialogflowCxV3BargeInConfig { noBargeInDuration?: string | null; totalDuration?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata { errors?: Schema$GoogleCloudDialogflowCxV3TestError[]; } export interface Schema$GoogleCloudDialogflowCxV3BatchRunTestCasesResponse { results?: Schema$GoogleCloudDialogflowCxV3TestCaseResult[]; } export interface Schema$GoogleCloudDialogflowCxV3beta1AdvancedSettings { audioExportGcsDestination?: Schema$GoogleCloudDialogflowCxV3beta1GcsDestination; dtmfSettings?: Schema$GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings; loggingSettings?: Schema$GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings; speechSettings?: Schema$GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings; } export interface Schema$GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings { enabled?: boolean | null; endpointingTimeoutDuration?: string | null; finishDigit?: string | null; interdigitTimeoutDuration?: string | null; maxDigits?: number | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings { enableConsentBasedRedaction?: boolean | null; enableInteractionLogging?: boolean | null; enableStackdriverLogging?: boolean | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings { endpointerSensitivity?: number | null; models?: { [key: string]: string; } | null; noSpeechTimeout?: string | null; useTimeoutBasedEndpointing?: boolean | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1AudioInput { audio?: string | null; config?: Schema$GoogleCloudDialogflowCxV3beta1InputAudioConfig; } export interface Schema$GoogleCloudDialogflowCxV3beta1BargeInConfig { noBargeInDuration?: string | null; totalDuration?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata { errors?: Schema$GoogleCloudDialogflowCxV3beta1TestError[]; } export interface Schema$GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse { results?: Schema$GoogleCloudDialogflowCxV3beta1TestCaseResult[]; } export interface Schema$GoogleCloudDialogflowCxV3beta1ContinuousTestResult { name?: string | null; result?: string | null; runTime?: string | null; testCaseResults?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ConversationSignals { turnSignals?: Schema$GoogleCloudDialogflowCxV3beta1TurnSignals; } export interface Schema$GoogleCloudDialogflowCxV3beta1ConversationTurn { userInput?: Schema$GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput; virtualAgentOutput?: Schema$GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput; } export interface Schema$GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput { enableSentimentAnalysis?: boolean | null; injectedParameters?: { [key: string]: any; } | null; input?: Schema$GoogleCloudDialogflowCxV3beta1QueryInput; isWebhookEnabled?: boolean | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput { currentPage?: Schema$GoogleCloudDialogflowCxV3beta1Page; diagnosticInfo?: { [key: string]: any; } | null; differences?: Schema$GoogleCloudDialogflowCxV3beta1TestRunDifference[]; sessionParameters?: { [key: string]: any; } | null; status?: Schema$GoogleRpcStatus; textResponses?: Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageText[]; triggeredIntent?: Schema$GoogleCloudDialogflowCxV3beta1Intent; } export interface Schema$GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata { version?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1DataStoreConnection { dataStore?: string | null; dataStoreType?: string | null; documentProcessingMode?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1DeployFlowMetadata { testErrors?: Schema$GoogleCloudDialogflowCxV3beta1TestError[]; } export interface Schema$GoogleCloudDialogflowCxV3beta1DeployFlowResponse { deployment?: string | null; environment?: Schema$GoogleCloudDialogflowCxV3beta1Environment; } export interface Schema$GoogleCloudDialogflowCxV3beta1DtmfInput { digits?: string | null; finishDigit?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1Environment { description?: string | null; displayName?: string | null; name?: string | null; testCasesConfig?: Schema$GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig; updateTime?: string | null; versionConfigs?: Schema$GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig[]; webhookConfig?: Schema$GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig; } export interface Schema$GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig { enableContinuousRun?: boolean | null; enablePredeploymentRun?: boolean | null; testCases?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig { version?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig { webhookOverrides?: Schema$GoogleCloudDialogflowCxV3beta1Webhook[]; } export interface Schema$GoogleCloudDialogflowCxV3beta1EventHandler { event?: string | null; name?: string | null; targetFlow?: string | null; targetPage?: string | null; targetPlaybook?: string | null; triggerFulfillment?: Schema$GoogleCloudDialogflowCxV3beta1Fulfillment; } export interface Schema$GoogleCloudDialogflowCxV3beta1EventInput { event?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ExportAgentResponse { agentContent?: string | null; agentUri?: string | null; commitSha?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata { } export interface Schema$GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse { entityTypesContent?: Schema$GoogleCloudDialogflowCxV3beta1InlineDestination; entityTypesUri?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ExportFlowResponse { flowContent?: string | null; flowUri?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ExportIntentsMetadata { } export interface Schema$GoogleCloudDialogflowCxV3beta1ExportIntentsResponse { intentsContent?: Schema$GoogleCloudDialogflowCxV3beta1InlineDestination; intentsUri?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata { } export interface Schema$GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse { content?: string | null; gcsUri?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1Form { parameters?: Schema$GoogleCloudDialogflowCxV3beta1FormParameter[]; } export interface Schema$GoogleCloudDialogflowCxV3beta1FormParameter { advancedSettings?: Schema$GoogleCloudDialogflowCxV3beta1AdvancedSettings; defaultValue?: any | null; displayName?: string | null; entityType?: string | null; fillBehavior?: Schema$GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior; isList?: boolean | null; redact?: boolean | null; required?: boolean | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior { initialPromptFulfillment?: Schema$GoogleCloudDialogflowCxV3beta1Fulfillment; repromptEventHandlers?: Schema$GoogleCloudDialogflowCxV3beta1EventHandler[]; } export interface Schema$GoogleCloudDialogflowCxV3beta1Fulfillment { advancedSettings?: Schema$GoogleCloudDialogflowCxV3beta1AdvancedSettings; conditionalCases?: Schema$GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases[]; enableGenerativeFallback?: boolean | null; generators?: Schema$GoogleCloudDialogflowCxV3beta1FulfillmentGeneratorSettings[]; messages?: Schema$GoogleCloudDialogflowCxV3beta1ResponseMessage[]; returnPartialResponses?: boolean | null; setParameterActions?: Schema$GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction[]; tag?: string | null; webhook?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases { cases?: Schema$GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase[]; } export interface Schema$GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase { caseContent?: Schema$GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent[]; condition?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent { additionalCases?: Schema$GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases; message?: Schema$GoogleCloudDialogflowCxV3beta1ResponseMessage; } export interface Schema$GoogleCloudDialogflowCxV3beta1FulfillmentGeneratorSettings { generator?: string | null; inputParameters?: { [key: string]: string; } | null; outputParameter?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction { parameter?: string | null; value?: any | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1GcsDestination { uri?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata { } export interface Schema$GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse { conflictingResources?: Schema$GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources; entityTypes?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources { entityDisplayNames?: string[] | null; entityTypeDisplayNames?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ImportFlowResponse { flow?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ImportIntentsMetadata { } export interface Schema$GoogleCloudDialogflowCxV3beta1ImportIntentsResponse { conflictingResources?: Schema$GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources; intents?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources { entityDisplayNames?: string[] | null; intentDisplayNames?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata { errors?: Schema$GoogleCloudDialogflowCxV3beta1TestCaseError[]; } export interface Schema$GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse { names?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1InlineDestination { content?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1InputAudioConfig { audioEncoding?: string | null; bargeInConfig?: Schema$GoogleCloudDialogflowCxV3beta1BargeInConfig; enableWordInfo?: boolean | null; model?: string | null; modelVariant?: string | null; optOutConformerModelMigration?: boolean | null; phraseHints?: string[] | null; sampleRateHertz?: number | null; singleUtterance?: boolean | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1Intent { description?: string | null; displayName?: string | null; isFallback?: boolean | null; labels?: { [key: string]: string; } | null; name?: string | null; parameters?: Schema$GoogleCloudDialogflowCxV3beta1IntentParameter[]; priority?: number | null; trainingPhrases?: Schema$GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase[]; } export interface Schema$GoogleCloudDialogflowCxV3beta1IntentInput { intent?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1IntentParameter { entityType?: string | null; id?: string | null; isList?: boolean | null; redact?: boolean | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase { id?: string | null; parts?: Schema$GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart[]; repeatCount?: number | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart { parameterId?: string | null; text?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings { dataStoreConnections?: Schema$GoogleCloudDialogflowCxV3beta1DataStoreConnection[]; enabled?: boolean | null; targetFlow?: string | null; targetPage?: string | null; triggerFulfillment?: Schema$GoogleCloudDialogflowCxV3beta1Fulfillment; } export interface Schema$GoogleCloudDialogflowCxV3beta1LanguageInfo { confidenceScore?: number | null; inputLanguageCode?: string | null; resolvedLanguageCode?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1Page { advancedSettings?: Schema$GoogleCloudDialogflowCxV3beta1AdvancedSettings; description?: string | null; displayName?: string | null; entryFulfillment?: Schema$GoogleCloudDialogflowCxV3beta1Fulfillment; eventHandlers?: Schema$GoogleCloudDialogflowCxV3beta1EventHandler[]; form?: Schema$GoogleCloudDialogflowCxV3beta1Form; knowledgeConnectorSettings?: Schema$GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings; name?: string | null; transitionRouteGroups?: string[] | null; transitionRoutes?: Schema$GoogleCloudDialogflowCxV3beta1TransitionRoute[]; } export interface Schema$GoogleCloudDialogflowCxV3beta1PageInfo { currentPage?: string | null; displayName?: string | null; formInfo?: Schema$GoogleCloudDialogflowCxV3beta1PageInfoFormInfo; } export interface Schema$GoogleCloudDialogflowCxV3beta1PageInfoFormInfo { parameterInfo?: Schema$GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo[]; } export interface Schema$GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo { displayName?: string | null; justCollected?: boolean | null; required?: boolean | null; state?: string | null; value?: any | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1QueryInput { audio?: Schema$GoogleCloudDialogflowCxV3beta1AudioInput; dtmf?: Schema$GoogleCloudDialogflowCxV3beta1DtmfInput; event?: Schema$GoogleCloudDialogflowCxV3beta1EventInput; intent?: Schema$GoogleCloudDialogflowCxV3beta1IntentInput; languageCode?: string | null; text?: Schema$GoogleCloudDialogflowCxV3beta1TextInput; toolCallResult?: Schema$GoogleCloudDialogflowCxV3beta1ToolCallResult; } export interface Schema$GoogleCloudDialogflowCxV3beta1ResponseMessage { channel?: string | null; conversationSuccess?: Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess; endInteraction?: Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction; knowledgeInfoCard?: Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard; liveAgentHandoff?: Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff; mixedAudio?: Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio; outputAudioText?: Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText; payload?: { [key: string]: any; } | null; playAudio?: Schema$GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio; telephonyTransferCall?: Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall; text?: Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageText; toolCall?: Schema$GoogleCloudDialogflowCxV3beta1ToolCall; } export interface Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess { metadata?: { [key: string]: any; } | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction { } export interface Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard { } export interface Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff { metadata?: { [key: string]: any; } | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio { segments?: Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment[]; } export interface Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment { allowPlaybackInterruption?: boolean | null; audio?: string | null; uri?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText { allowPlaybackInterruption?: boolean | null; ssml?: string | null; text?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio { allowPlaybackInterruption?: boolean | null; audioUri?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall { phoneNumber?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ResponseMessageText { allowPlaybackInterruption?: boolean | null; text?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata { errors?: Schema$GoogleCloudDialogflowCxV3beta1TestError[]; } export interface Schema$GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse { continuousTestResult?: Schema$GoogleCloudDialogflowCxV3beta1ContinuousTestResult; } export interface Schema$GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata { } export interface Schema$GoogleCloudDialogflowCxV3beta1RunTestCaseResponse { result?: Schema$GoogleCloudDialogflowCxV3beta1TestCaseResult; } export interface Schema$GoogleCloudDialogflowCxV3beta1SessionInfo { parameters?: { [key: string]: any; } | null; session?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1TestCase { creationTime?: string | null; displayName?: string | null; lastTestResult?: Schema$GoogleCloudDialogflowCxV3beta1TestCaseResult; name?: string | null; notes?: string | null; tags?: string[] | null; testCaseConversationTurns?: Schema$GoogleCloudDialogflowCxV3beta1ConversationTurn[]; testConfig?: Schema$GoogleCloudDialogflowCxV3beta1TestConfig; } export interface Schema$GoogleCloudDialogflowCxV3beta1TestCaseError { status?: Schema$GoogleRpcStatus; testCase?: Schema$GoogleCloudDialogflowCxV3beta1TestCase; } export interface Schema$GoogleCloudDialogflowCxV3beta1TestCaseResult { conversationTurns?: Schema$GoogleCloudDialogflowCxV3beta1ConversationTurn[]; environment?: string | null; name?: string | null; testResult?: string | null; testTime?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1TestConfig { flow?: string | null; page?: string | null; trackingParameters?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1TestError { status?: Schema$GoogleRpcStatus; testCase?: string | null; testTime?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1TestRunDifference { description?: string | null; type?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1TextInput { text?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ToolCall { action?: string | null; inputParameters?: { [key: string]: any; } | null; tool?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ToolCallResult { action?: string | null; error?: Schema$GoogleCloudDialogflowCxV3beta1ToolCallResultError; outputParameters?: { [key: string]: any; } | null; tool?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1ToolCallResultError { message?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1TransitionRoute { condition?: string | null; description?: string | null; intent?: string | null; name?: string | null; targetFlow?: string | null; targetPage?: string | null; triggerFulfillment?: Schema$GoogleCloudDialogflowCxV3beta1Fulfillment; } export interface Schema$GoogleCloudDialogflowCxV3beta1TurnSignals { agentEscalated?: boolean | null; dtmfUsed?: boolean | null; failureReasons?: string[] | null; noMatch?: boolean | null; noUserInput?: boolean | null; reachedEndPage?: boolean | null; sentimentMagnitude?: number | null; sentimentScore?: number | null; userEscalated?: boolean | null; webhookStatuses?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1Webhook { disabled?: boolean | null; displayName?: string | null; genericWebService?: Schema$GoogleCloudDialogflowCxV3beta1WebhookGenericWebService; name?: string | null; serviceDirectory?: Schema$GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig; timeout?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1WebhookGenericWebService { allowedCaCerts?: string[] | null; httpMethod?: string | null; oauthConfig?: Schema$GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig; parameterMapping?: { [key: string]: string; } | null; password?: string | null; requestBody?: string | null; requestHeaders?: { [key: string]: string; } | null; secretVersionForUsernamePassword?: string | null; secretVersionsForRequestHeaders?: { [key: string]: Schema$GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue; } | null; serviceAccountAuthConfig?: Schema$GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfig; serviceAgentAuth?: string | null; uri?: string | null; username?: string | null; webhookType?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig { clientId?: string | null; clientSecret?: string | null; scopes?: string[] | null; secretVersionForClientSecret?: string | null; tokenEndpoint?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue { secretVersion?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfig { serviceAccount?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1WebhookRequest { detectIntentResponseId?: string | null; dtmfDigits?: string | null; fulfillmentInfo?: Schema$GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo; intentInfo?: Schema$GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo; languageCode?: string | null; languageInfo?: Schema$GoogleCloudDialogflowCxV3beta1LanguageInfo; messages?: Schema$GoogleCloudDialogflowCxV3beta1ResponseMessage[]; pageInfo?: Schema$GoogleCloudDialogflowCxV3beta1PageInfo; payload?: { [key: string]: any; } | null; sentimentAnalysisResult?: Schema$GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult; sessionInfo?: Schema$GoogleCloudDialogflowCxV3beta1SessionInfo; text?: string | null; transcript?: string | null; triggerEvent?: string | null; triggerIntent?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo { tag?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo { confidence?: number | null; displayName?: string | null; lastMatchedIntent?: string | null; parameters?: { [key: string]: Schema$GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue; } | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue { originalValue?: string | null; resolvedValue?: any | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult { magnitude?: number | null; score?: number | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1WebhookResponse { fulfillmentResponse?: Schema$GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse; pageInfo?: Schema$GoogleCloudDialogflowCxV3beta1PageInfo; payload?: { [key: string]: any; } | null; sessionInfo?: Schema$GoogleCloudDialogflowCxV3beta1SessionInfo; targetFlow?: string | null; targetPage?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse { mergeBehavior?: string | null; messages?: Schema$GoogleCloudDialogflowCxV3beta1ResponseMessage[]; } export interface Schema$GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig { genericWebService?: Schema$GoogleCloudDialogflowCxV3beta1WebhookGenericWebService; service?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3ContinuousTestResult { name?: string | null; result?: string | null; runTime?: string | null; testCaseResults?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3ConversationSignals { turnSignals?: Schema$GoogleCloudDialogflowCxV3TurnSignals; } export interface Schema$GoogleCloudDialogflowCxV3ConversationTurn { userInput?: Schema$GoogleCloudDialogflowCxV3ConversationTurnUserInput; virtualAgentOutput?: Schema$GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput; } export interface Schema$GoogleCloudDialogflowCxV3ConversationTurnUserInput { enableSentimentAnalysis?: boolean | null; injectedParameters?: { [key: string]: any; } | null; input?: Schema$GoogleCloudDialogflowCxV3QueryInput; isWebhookEnabled?: boolean | null; } export interface Schema$GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput { currentPage?: Schema$GoogleCloudDialogflowCxV3Page; diagnosticInfo?: { [key: string]: any; } | null; differences?: Schema$GoogleCloudDialogflowCxV3TestRunDifference[]; sessionParameters?: { [key: string]: any; } | null; status?: Schema$GoogleRpcStatus; textResponses?: Schema$GoogleCloudDialogflowCxV3ResponseMessageText[]; triggeredIntent?: Schema$GoogleCloudDialogflowCxV3Intent; } export interface Schema$GoogleCloudDialogflowCxV3CreateVersionOperationMetadata { version?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3DataStoreConnection { dataStore?: string | null; dataStoreType?: string | null; documentProcessingMode?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3DeployFlowMetadata { testErrors?: Schema$GoogleCloudDialogflowCxV3TestError[]; } export interface Schema$GoogleCloudDialogflowCxV3DeployFlowResponse { deployment?: string | null; environment?: Schema$GoogleCloudDialogflowCxV3Environment; } export interface Schema$GoogleCloudDialogflowCxV3DtmfInput { digits?: string | null; finishDigit?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3Environment { description?: string | null; displayName?: string | null; name?: string | null; testCasesConfig?: Schema$GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig; updateTime?: string | null; versionConfigs?: Schema$GoogleCloudDialogflowCxV3EnvironmentVersionConfig[]; webhookConfig?: Schema$GoogleCloudDialogflowCxV3EnvironmentWebhookConfig; } export interface Schema$GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig { enableContinuousRun?: boolean | null; enablePredeploymentRun?: boolean | null; testCases?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3EnvironmentVersionConfig { version?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3EnvironmentWebhookConfig { webhookOverrides?: Schema$GoogleCloudDialogflowCxV3Webhook[]; } export interface Schema$GoogleCloudDialogflowCxV3EventHandler { event?: string | null; name?: string | null; targetFlow?: string | null; targetPage?: string | null; targetPlaybook?: string | null; triggerFulfillment?: Schema$GoogleCloudDialogflowCxV3Fulfillment; } export interface Schema$GoogleCloudDialogflowCxV3EventInput { event?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3ExportAgentResponse { agentContent?: string | null; agentUri?: string | null; commitSha?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3ExportEntityTypesMetadata { } export interface Schema$GoogleCloudDialogflowCxV3ExportEntityTypesResponse { entityTypesContent?: Schema$GoogleCloudDialogflowCxV3InlineDestination; entityTypesUri?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3ExportFlowResponse { flowContent?: string | null; flowUri?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3ExportIntentsMetadata { } export interface Schema$GoogleCloudDialogflowCxV3ExportIntentsResponse { intentsContent?: Schema$GoogleCloudDialogflowCxV3InlineDestination; intentsUri?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3ExportTestCasesMetadata { } export interface Schema$GoogleCloudDialogflowCxV3ExportTestCasesResponse { content?: string | null; gcsUri?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3Form { parameters?: Schema$GoogleCloudDialogflowCxV3FormParameter[]; } export interface Schema$GoogleCloudDialogflowCxV3FormParameter { advancedSettings?: Schema$GoogleCloudDialogflowCxV3AdvancedSettings; defaultValue?: any | null; displayName?: string | null; entityType?: string | null; fillBehavior?: Schema$GoogleCloudDialogflowCxV3FormParameterFillBehavior; isList?: boolean | null; redact?: boolean | null; required?: boolean | null; } export interface Schema$GoogleCloudDialogflowCxV3FormParameterFillBehavior { initialPromptFulfillment?: Schema$GoogleCloudDialogflowCxV3Fulfillment; repromptEventHandlers?: Schema$GoogleCloudDialogflowCxV3EventHandler[]; } export interface Schema$GoogleCloudDialogflowCxV3Fulfillment { advancedSettings?: Schema$GoogleCloudDialogflowCxV3AdvancedSettings; conditionalCases?: Schema$GoogleCloudDialogflowCxV3FulfillmentConditionalCases[]; enableGenerativeFallback?: boolean | null; generators?: Schema$GoogleCloudDialogflowCxV3FulfillmentGeneratorSettings[]; messages?: Schema$GoogleCloudDialogflowCxV3ResponseMessage[]; returnPartialResponses?: boolean | null; setParameterActions?: Schema$GoogleCloudDialogflowCxV3FulfillmentSetParameterAction[]; tag?: string | null; webhook?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3FulfillmentConditionalCases { cases?: Schema$GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase[]; } export interface Schema$GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase { caseContent?: Schema$GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent[]; condition?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent { additionalCases?: Schema$GoogleCloudDialogflowCxV3FulfillmentConditionalCases; message?: Schema$GoogleCloudDialogflowCxV3ResponseMessage; } export interface Schema$GoogleCloudDialogflowCxV3FulfillmentGeneratorSettings { generator?: string | null; inputParameters?: { [key: string]: string; } | null; outputParameter?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3FulfillmentSetParameterAction { parameter?: string | null; value?: any | null; } export interface Schema$GoogleCloudDialogflowCxV3GcsDestination { uri?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3ImportEntityTypesMetadata { } export interface Schema$GoogleCloudDialogflowCxV3ImportEntityTypesResponse { conflictingResources?: Schema$GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources; entityTypes?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources { entityDisplayNames?: string[] | null; entityTypeDisplayNames?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3ImportFlowResponse { flow?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3ImportIntentsMetadata { } export interface Schema$GoogleCloudDialogflowCxV3ImportIntentsResponse { conflictingResources?: Schema$GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources; intents?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources { entityDisplayNames?: string[] | null; intentDisplayNames?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3ImportTestCasesMetadata { errors?: Schema$GoogleCloudDialogflowCxV3TestCaseError[]; } export interface Schema$GoogleCloudDialogflowCxV3ImportTestCasesResponse { names?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3InlineDestination { content?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3InputAudioConfig { audioEncoding?: string | null; bargeInConfig?: Schema$GoogleCloudDialogflowCxV3BargeInConfig; enableWordInfo?: boolean | null; model?: string | null; modelVariant?: string | null; optOutConformerModelMigration?: boolean | null; phraseHints?: string[] | null; sampleRateHertz?: number | null; singleUtterance?: boolean | null; } export interface Schema$GoogleCloudDialogflowCxV3Intent { description?: string | null; displayName?: string | null; isFallback?: boolean | null; labels?: { [key: string]: string; } | null; name?: string | null; parameters?: Schema$GoogleCloudDialogflowCxV3IntentParameter[]; priority?: number | null; trainingPhrases?: Schema$GoogleCloudDialogflowCxV3IntentTrainingPhrase[]; } export interface Schema$GoogleCloudDialogflowCxV3IntentInput { intent?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3IntentParameter { entityType?: string | null; id?: string | null; isList?: boolean | null; redact?: boolean | null; } export interface Schema$GoogleCloudDialogflowCxV3IntentTrainingPhrase { id?: string | null; parts?: Schema$GoogleCloudDialogflowCxV3IntentTrainingPhrasePart[]; repeatCount?: number | null; } export interface Schema$GoogleCloudDialogflowCxV3IntentTrainingPhrasePart { parameterId?: string | null; text?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3KnowledgeConnectorSettings { dataStoreConnections?: Schema$GoogleCloudDialogflowCxV3DataStoreConnection[]; enabled?: boolean | null; targetFlow?: string | null; targetPage?: string | null; triggerFulfillment?: Schema$GoogleCloudDialogflowCxV3Fulfillment; } export interface Schema$GoogleCloudDialogflowCxV3LanguageInfo { confidenceScore?: number | null; inputLanguageCode?: string | null; resolvedLanguageCode?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3Page { advancedSettings?: Schema$GoogleCloudDialogflowCxV3AdvancedSettings; description?: string | null; displayName?: string | null; entryFulfillment?: Schema$GoogleCloudDialogflowCxV3Fulfillment; eventHandlers?: Schema$GoogleCloudDialogflowCxV3EventHandler[]; form?: Schema$GoogleCloudDialogflowCxV3Form; knowledgeConnectorSettings?: Schema$GoogleCloudDialogflowCxV3KnowledgeConnectorSettings; name?: string | null; transitionRouteGroups?: string[] | null; transitionRoutes?: Schema$GoogleCloudDialogflowCxV3TransitionRoute[]; } export interface Schema$GoogleCloudDialogflowCxV3PageInfo { currentPage?: string | null; displayName?: string | null; formInfo?: Schema$GoogleCloudDialogflowCxV3PageInfoFormInfo; } export interface Schema$GoogleCloudDialogflowCxV3PageInfoFormInfo { parameterInfo?: Schema$GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo[]; } export interface Schema$GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo { displayName?: string | null; justCollected?: boolean | null; required?: boolean | null; state?: string | null; value?: any | null; } export interface Schema$GoogleCloudDialogflowCxV3QueryInput { audio?: Schema$GoogleCloudDialogflowCxV3AudioInput; dtmf?: Schema$GoogleCloudDialogflowCxV3DtmfInput; event?: Schema$GoogleCloudDialogflowCxV3EventInput; intent?: Schema$GoogleCloudDialogflowCxV3IntentInput; languageCode?: string | null; text?: Schema$GoogleCloudDialogflowCxV3TextInput; toolCallResult?: Schema$GoogleCloudDialogflowCxV3ToolCallResult; } export interface Schema$GoogleCloudDialogflowCxV3ResponseMessage { channel?: string | null; conversationSuccess?: Schema$GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess; endInteraction?: Schema$GoogleCloudDialogflowCxV3ResponseMessageEndInteraction; knowledgeInfoCard?: Schema$GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard; liveAgentHandoff?: Schema$GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff; mixedAudio?: Schema$GoogleCloudDialogflowCxV3ResponseMessageMixedAudio; outputAudioText?: Schema$GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText; payload?: { [key: string]: any; } | null; playAudio?: Schema$GoogleCloudDialogflowCxV3ResponseMessagePlayAudio; responseType?: string | null; telephonyTransferCall?: Schema$GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall; text?: Schema$GoogleCloudDialogflowCxV3ResponseMessageText; toolCall?: Schema$GoogleCloudDialogflowCxV3ToolCall; } export interface Schema$GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess { metadata?: { [key: string]: any; } | null; } export interface Schema$GoogleCloudDialogflowCxV3ResponseMessageEndInteraction { } export interface Schema$GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard { } export interface Schema$GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff { metadata?: { [key: string]: any; } | null; } export interface Schema$GoogleCloudDialogflowCxV3ResponseMessageMixedAudio { segments?: Schema$GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment[]; } export interface Schema$GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment { allowPlaybackInterruption?: boolean | null; audio?: string | null; uri?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText { allowPlaybackInterruption?: boolean | null; ssml?: string | null; text?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3ResponseMessagePlayAudio { allowPlaybackInterruption?: boolean | null; audioUri?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall { phoneNumber?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3ResponseMessageText { allowPlaybackInterruption?: boolean | null; text?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3RunContinuousTestMetadata { errors?: Schema$GoogleCloudDialogflowCxV3TestError[]; } export interface Schema$GoogleCloudDialogflowCxV3RunContinuousTestResponse { continuousTestResult?: Schema$GoogleCloudDialogflowCxV3ContinuousTestResult; } export interface Schema$GoogleCloudDialogflowCxV3RunTestCaseMetadata { } export interface Schema$GoogleCloudDialogflowCxV3RunTestCaseResponse { result?: Schema$GoogleCloudDialogflowCxV3TestCaseResult; } export interface Schema$GoogleCloudDialogflowCxV3SessionInfo { parameters?: { [key: string]: any; } | null; session?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3TestCase { creationTime?: string | null; displayName?: string | null; lastTestResult?: Schema$GoogleCloudDialogflowCxV3TestCaseResult; name?: string | null; notes?: string | null; tags?: string[] | null; testCaseConversationTurns?: Schema$GoogleCloudDialogflowCxV3ConversationTurn[]; testConfig?: Schema$GoogleCloudDialogflowCxV3TestConfig; } export interface Schema$GoogleCloudDialogflowCxV3TestCaseError { status?: Schema$GoogleRpcStatus; testCase?: Schema$GoogleCloudDialogflowCxV3TestCase; } export interface Schema$GoogleCloudDialogflowCxV3TestCaseResult { conversationTurns?: Schema$GoogleCloudDialogflowCxV3ConversationTurn[]; environment?: string | null; name?: string | null; testResult?: string | null; testTime?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3TestConfig { flow?: string | null; page?: string | null; trackingParameters?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3TestError { status?: Schema$GoogleRpcStatus; testCase?: string | null; testTime?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3TestRunDifference { description?: string | null; type?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3TextInput { text?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3ToolCall { action?: string | null; inputParameters?: { [key: string]: any; } | null; tool?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3ToolCallResult { action?: string | null; error?: Schema$GoogleCloudDialogflowCxV3ToolCallResultError; outputParameters?: { [key: string]: any; } | null; tool?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3ToolCallResultError { message?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3TransitionRoute { condition?: string | null; description?: string | null; intent?: string | null; name?: string | null; targetFlow?: string | null; targetPage?: string | null; triggerFulfillment?: Schema$GoogleCloudDialogflowCxV3Fulfillment; } export interface Schema$GoogleCloudDialogflowCxV3TurnSignals { agentEscalated?: boolean | null; dtmfUsed?: boolean | null; failureReasons?: string[] | null; noMatch?: boolean | null; noUserInput?: boolean | null; reachedEndPage?: boolean | null; sentimentMagnitude?: number | null; sentimentScore?: number | null; userEscalated?: boolean | null; webhookStatuses?: string[] | null; } export interface Schema$GoogleCloudDialogflowCxV3Webhook { disabled?: boolean | null; displayName?: string | null; genericWebService?: Schema$GoogleCloudDialogflowCxV3WebhookGenericWebService; name?: string | null; serviceDirectory?: Schema$GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig; timeout?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3WebhookGenericWebService { allowedCaCerts?: string[] | null; httpMethod?: string | null; oauthConfig?: Schema$GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig; parameterMapping?: { [key: string]: string; } | null; password?: string | null; requestBody?: string | null; requestHeaders?: { [key: string]: string; } | null; secretVersionForUsernamePassword?: string | null; secretVersionsForRequestHeaders?: { [key: string]: Schema$GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue; } | null; serviceAccountAuthConfig?: Schema$GoogleCloudDialogflowCxV3WebhookGenericWebServiceServiceAccountAuthConfig; serviceAgentAuth?: string | null; uri?: string | null; username?: string | null; webhookType?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig { clientId?: string | null; clientSecret?: string | null; scopes?: string[] | null; secretVersionForClientSecret?: string | null; tokenEndpoint?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue { secretVersion?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3WebhookGenericWebServiceServiceAccountAuthConfig { serviceAccount?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3WebhookRequest { detectIntentResponseId?: string | null; dtmfDigits?: string | null; fulfillmentInfo?: Schema$GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo; intentInfo?: Schema$GoogleCloudDialogflowCxV3WebhookRequestIntentInfo; languageCode?: string | null; languageInfo?: Schema$GoogleCloudDialogflowCxV3LanguageInfo; messages?: Schema$GoogleCloudDialogflowCxV3ResponseMessage[]; pageInfo?: Schema$GoogleCloudDialogflowCxV3PageInfo; payload?: { [key: string]: any; } | null; sentimentAnalysisResult?: Schema$GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult; sessionInfo?: Schema$GoogleCloudDialogflowCxV3SessionInfo; text?: string | null; transcript?: string | null; triggerEvent?: string | null; triggerIntent?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo { tag?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3WebhookRequestIntentInfo { confidence?: number | null; displayName?: string | null; lastMatchedIntent?: string | null; parameters?: { [key: string]: Schema$GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue; } | null; } export interface Schema$GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue { originalValue?: string | null; resolvedValue?: any | null; } export interface Schema$GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult { magnitude?: number | null; score?: number | null; } export interface Schema$GoogleCloudDialogflowCxV3WebhookResponse { fulfillmentResponse?: Schema$GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse; pageInfo?: Schema$GoogleCloudDialogflowCxV3PageInfo; payload?: { [key: string]: any; } | null; sessionInfo?: Schema$GoogleCloudDialogflowCxV3SessionInfo; targetFlow?: string | null; targetPage?: string | null; } export interface Schema$GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse { mergeBehavior?: string | null; messages?: Schema$GoogleCloudDialogflowCxV3ResponseMessage[]; } export interface Schema$GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig { genericWebService?: Schema$GoogleCloudDialogflowCxV3WebhookGenericWebService; service?: string | null; } export interface Schema$GoogleCloudDialogflowV2Agent { apiVersion?: string | null; avatarUri?: string | null; classificationThreshold?: number | null; defaultLanguageCode?: string | null; description?: string | null; displayName?: string | null; enableLogging?: boolean | null; matchMode?: string | null; parent?: string | null; supportedLanguageCodes?: string[] | null; tier?: string | null; timeZone?: string | null; } export interface Schema$GoogleCloudDialogflowV2AgentAssistantFeedback { answerRelevance?: string | null; documentCorrectness?: string | null; documentEfficiency?: string | null; knowledgeAssistFeedback?: Schema$GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeAssistFeedback; knowledgeSearchFeedback?: Schema$GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback; summarizationFeedback?: Schema$GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback; } export interface Schema$GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeAssistFeedback { answerCopied?: boolean | null; clickedUris?: string[] | null; } export interface Schema$GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback { answerCopied?: boolean | null; clickedUris?: string[] | null; } export interface Schema$GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback { startTime?: string | null; submitTime?: string | null; summaryText?: string | null; textSections?: { [key: string]: string; } | null; } export interface Schema$GoogleCloudDialogflowV2AgentAssistantRecord { articleSuggestionAnswer?: Schema$GoogleCloudDialogflowV2ArticleAnswer; dialogflowAssistAnswer?: Schema$GoogleCloudDialogflowV2DialogflowAssistAnswer; faqAnswer?: Schema$GoogleCloudDialogflowV2FaqAnswer; generatorSuggestion?: Schema$GoogleCloudDialogflowV2GeneratorSuggestion; } export interface Schema$GoogleCloudDialogflowV2AgentCoachingContext { instructions?: Schema$GoogleCloudDialogflowV2AgentCoachingInstruction[]; outputLanguageCode?: string | null; overarchingGuidance?: string | null; version?: string | null; } export interface Schema$GoogleCloudDialogflowV2AgentCoachingInstruction { agentAction?: string | null; condition?: string | null; displayDetails?: string | null; displayName?: string | null; duplicateCheckResult?: Schema$GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult; systemAction?: string | null; triggeringEvent?: string | null; } export interface Schema$GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult { duplicateSuggestions?: Schema$GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion[]; } export interface Schema$GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion { answerRecord?: string | null; similarityScore?: number | null; suggestionIndex?: number | null; } export interface Schema$GoogleCloudDialogflowV2AgentCoachingSuggestion { agentActionSuggestions?: Schema$GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion[]; applicableInstructions?: Schema$GoogleCloudDialogflowV2AgentCoachingInstruction[]; sampleResponses?: Schema$GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse[]; } export interface Schema$GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion { agentAction?: string | null; duplicateCheckResult?: Schema$GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult; sources?: Schema$GoogleCloudDialogflowV2AgentCoachingSuggestionSources; } export interface Schema$GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult { duplicateSuggestions?: Schema$GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion[]; } export interface Schema$GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion { answerRecord?: string | null; similarityScore?: number | null; sources?: Schema$GoogleCloudDialogflowV2AgentCoachingSuggestionSources; suggestionIndex?: number | null; } export interface Schema$GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse { duplicateCheckResult?: Schema$GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult; responseText?: string | null; sources?: Schema$GoogleCloudDialogflowV2AgentCoachingSuggestionSources; } export interface Schema$GoogleCloudDialogflowV2AgentCoachingSuggestionSources { instructionIndexes?: number[] | null; } export interface Schema$GoogleCloudDialogflowV2AnalyzeContentRequest { assistQueryParams?: Schema$GoogleCloudDialogflowV2AssistQueryParameters; audioInput?: Schema$GoogleCloudDialogflowV2AudioInput; cxParameters?: { [key: string]: any; } | null; eventInput?: Schema$GoogleCloudDialogflowV2EventInput; queryParams?: Schema$GoogleCloudDialogflowV2QueryParameters; replyAudioConfig?: Schema$GoogleCloudDialogflowV2OutputAudioConfig; requestId?: string | null; suggestionInput?: Schema$GoogleCloudDialogflowV2SuggestionInput; textInput?: Schema$GoogleCloudDialogflowV2TextInput; } export interface Schema$GoogleCloudDialogflowV2AnalyzeContentResponse { automatedAgentReply?: Schema$GoogleCloudDialogflowV2AutomatedAgentReply; dtmfParameters?: Schema$GoogleCloudDialogflowV2DtmfParameters; endUserSuggestionResults?: Schema$GoogleCloudDialogflowV2SuggestionResult[]; humanAgentSuggestionResults?: Schema$GoogleCloudDialogflowV2SuggestionResult[]; message?: Schema$GoogleCloudDialogflowV2Message; replyAudio?: Schema$GoogleCloudDialogflowV2OutputAudio; replyText?: string | null; } export interface Schema$GoogleCloudDialogflowV2AnnotatedMessagePart { entityType?: string | null; formattedValue?: any | null; text?: string | null; } export interface Schema$GoogleCloudDialogflowV2AnswerFeedback { agentAssistantDetailFeedback?: Schema$GoogleCloudDialogflowV2AgentAssistantFeedback; clicked?: boolean | null; clickTime?: string | null; correctnessLevel?: string | null; displayed?: boolean | null; displayTime?: string | null; } export interface Schema$GoogleCloudDialogflowV2AnswerRecord { agentAssistantRecord?: Schema$GoogleCloudDialogflowV2AgentAssistantRecord; answerFeedback?: Schema$GoogleCloudDialogflowV2AnswerFeedback; name?: string | null; } export interface Schema$GoogleCloudDialogflowV2ArticleAnswer { answerRecord?: string | null; confidence?: number | null; metadata?: { [key: string]: string; } | null; snippets?: string[] | null; title?: string | null; uri?: string | null; } export interface Schema$GoogleCloudDialogflowV2ArticleSuggestionModelMetadata { trainingModelType?: string | null; } export interface Schema$GoogleCloudDialogflowV2AssistQueryParameters { documentsMetadataFilters?: { [key: string]: string; } | null; } export interface Schema$GoogleCloudDialogflowV2AudioInput { audio?: string | null; config?: Schema$GoogleCloudDialogflowV2InputAudioConfig; } export interface Schema$GoogleCloudDialogflowV2AutomatedAgentConfig { agent?: string | null; sessionTtl?: string | null; } export interface Schema$GoogleCloudDialogflowV2AutomatedAgentReply { allowCancellation?: boolean | null; automatedAgentReplyType?: string | null; cxCurrentPage?: string | null; detectIntentResponse?: Schema$GoogleCloudDialogflowV2DetectIntentResponse; } export interface Schema$GoogleCloudDialogflowV2BatchCreateEntitiesRequest { entities?: Schema$GoogleCloudDialogflowV2EntityTypeEntity[]; languageCode?: string | null; } export interface Schema$GoogleCloudDialogflowV2BatchDeleteEntitiesRequest { entityValues?: string[] | null; languageCode?: string | null; } export interface Schema$GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest { entityTypeNames?: string[] | null; } export interface Schema$GoogleCloudDialogflowV2BatchDeleteIntentsRequest { intents?: Schema$GoogleCloudDialogflowV2Intent[]; } export interface Schema$GoogleCloudDialogflowV2BatchUpdateEntitiesRequest { entities?: Schema$GoogleCloudDialogflowV2EntityTypeEntity[]; languageCode?: string | null; updateMask?: string | null; } export interface Schema$GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest { entityTypeBatchInline?: Schema$GoogleCloudDialogflowV2EntityTypeBatch; entityTypeBatchUri?: string | null; languageCode?: string | null; updateMask?: string | null; } export interface Schema$GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse { entityTypes?: Schema$GoogleCloudDialogflowV2EntityType[]; } export interface Schema$GoogleCloudDialogflowV2BatchUpdateIntentsRequest { intentBatchInline?: Schema$GoogleCloudDialogflowV2IntentBatch; intentBatchUri?: string | null; intentView?: string | null; languageCode?: string | null; updateMask?: string | null; } export interface Schema$GoogleCloudDialogflowV2BatchUpdateIntentsResponse { intents?: Schema$GoogleCloudDialogflowV2Intent[]; } export interface Schema$GoogleCloudDialogflowV2beta1AgentCoachingInstruction { agentAction?: string | null; condition?: string | null; displayDetails?: string | null; displayName?: string | null; duplicateCheckResult?: Schema$GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult; systemAction?: string | null; triggeringEvent?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult { duplicateSuggestions?: Schema$GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion[]; } export interface Schema$GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion { answerRecord?: string | null; similarityScore?: number | null; suggestionIndex?: number | null; } export interface Schema$GoogleCloudDialogflowV2beta1AgentCoachingSuggestion { agentActionSuggestions?: Schema$GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion[]; applicableInstructions?: Schema$GoogleCloudDialogflowV2beta1AgentCoachingInstruction[]; sampleResponses?: Schema$GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse[]; } export interface Schema$GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion { agentAction?: string | null; duplicateCheckResult?: Schema$GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult; sources?: Schema$GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources; } export interface Schema$GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult { duplicateSuggestions?: Schema$GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion[]; } export interface Schema$GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion { answerRecord?: string | null; similarityScore?: number | null; sources?: Schema$GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources; suggestionIndex?: number | null; } export interface Schema$GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse { duplicateCheckResult?: Schema$GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult; responseText?: string | null; sources?: Schema$GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources; } export interface Schema$GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources { instructionIndexes?: number[] | null; } export interface Schema$GoogleCloudDialogflowV2beta1AnnotatedMessagePart { entityType?: string | null; formattedValue?: any | null; text?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1ArticleAnswer { answerRecord?: string | null; metadata?: { [key: string]: string; } | null; snippets?: string[] | null; title?: string | null; uri?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse { entityTypes?: Schema$GoogleCloudDialogflowV2beta1EntityType[]; } export interface Schema$GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse { intents?: Schema$GoogleCloudDialogflowV2beta1Intent[]; } export interface Schema$GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata { conversationProfile?: string | null; createTime?: string | null; participantRole?: string | null; suggestionFeatureType?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1Context { lifespanCount?: number | null; name?: string | null; parameters?: { [key: string]: any; } | null; } export interface Schema$GoogleCloudDialogflowV2beta1ConversationEvent { conversation?: string | null; errorStatus?: Schema$GoogleRpcStatus; newMessagePayload?: Schema$GoogleCloudDialogflowV2beta1Message; newRecognitionResultPayload?: Schema$GoogleCloudDialogflowV2beta1StreamingRecognitionResult; type?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1DialogflowAssistAnswer { answerRecord?: string | null; intentSuggestion?: Schema$GoogleCloudDialogflowV2beta1IntentSuggestion; queryResult?: Schema$GoogleCloudDialogflowV2beta1QueryResult; } export interface Schema$GoogleCloudDialogflowV2beta1EncryptionSpec { kmsKey?: string | null; name?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1EntityType { autoExpansionMode?: string | null; displayName?: string | null; enableFuzzyExtraction?: boolean | null; entities?: Schema$GoogleCloudDialogflowV2beta1EntityTypeEntity[]; kind?: string | null; name?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1EntityTypeEntity { synonyms?: string[] | null; value?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1EventInput { languageCode?: string | null; name?: string | null; parameters?: { [key: string]: any; } | null; } export interface Schema$GoogleCloudDialogflowV2beta1ExportAgentResponse { agentContent?: string | null; agentUri?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1ExportOperationMetadata { exportedGcsDestination?: Schema$GoogleCloudDialogflowV2beta1GcsDestination; } export interface Schema$GoogleCloudDialogflowV2beta1FaqAnswer { answer?: string | null; answerRecord?: string | null; confidence?: number | null; metadata?: { [key: string]: string; } | null; question?: string | null; source?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1FreeFormSuggestion { response?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1GcsDestination { uri?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse { generatorSuggestionAnswers?: Schema$GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer[]; latestMessage?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer { answerRecord?: string | null; generatorSuggestion?: Schema$GoogleCloudDialogflowV2beta1GeneratorSuggestion; sourceGenerator?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1GeneratorSuggestion { agentCoachingSuggestion?: Schema$GoogleCloudDialogflowV2beta1AgentCoachingSuggestion; freeFormSuggestion?: Schema$GoogleCloudDialogflowV2beta1FreeFormSuggestion; summarySuggestion?: Schema$GoogleCloudDialogflowV2beta1SummarySuggestion; toolCallInfo?: Schema$GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo[]; } export interface Schema$GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo { toolCall?: Schema$GoogleCloudDialogflowV2beta1ToolCall; toolCallResult?: Schema$GoogleCloudDialogflowV2beta1ToolCallResult; } export interface Schema$GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent { conversation?: string | null; participant?: string | null; suggestionResults?: Schema$GoogleCloudDialogflowV2beta1SuggestionResult[]; } export interface Schema$GoogleCloudDialogflowV2beta1ImportDocumentsResponse { warnings?: Schema$GoogleRpcStatus[]; } export interface Schema$GoogleCloudDialogflowV2beta1IngestedContextReferenceDebugInfo { contextReferenceRetrieved?: boolean | null; ingestedParametersDebugInfo?: Schema$GoogleCloudDialogflowV2beta1IngestedContextReferenceDebugInfoIngestedParameterDebugInfo[]; projectNotAllowlisted?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2beta1IngestedContextReferenceDebugInfoIngestedParameterDebugInfo { ingestionStatus?: string | null; parameter?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata { request?: Schema$GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest; } export interface Schema$GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest { encryptionSpec?: Schema$GoogleCloudDialogflowV2beta1EncryptionSpec; } export interface Schema$GoogleCloudDialogflowV2beta1Intent { action?: string | null; defaultResponsePlatforms?: string[] | null; displayName?: string | null; endInteraction?: boolean | null; events?: string[] | null; followupIntentInfo?: Schema$GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo[]; inputContextNames?: string[] | null; isFallback?: boolean | null; liveAgentHandoff?: boolean | null; messages?: Schema$GoogleCloudDialogflowV2beta1IntentMessage[]; mlDisabled?: boolean | null; mlEnabled?: boolean | null; name?: string | null; outputContexts?: Schema$GoogleCloudDialogflowV2beta1Context[]; parameters?: Schema$GoogleCloudDialogflowV2beta1IntentParameter[]; parentFollowupIntentName?: string | null; priority?: number | null; resetContexts?: boolean | null; rootFollowupIntentName?: string | null; trainingPhrases?: Schema$GoogleCloudDialogflowV2beta1IntentTrainingPhrase[]; webhookState?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo { followupIntentName?: string | null; parentFollowupIntentName?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessage { basicCard?: Schema$GoogleCloudDialogflowV2beta1IntentMessageBasicCard; browseCarouselCard?: Schema$GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard; card?: Schema$GoogleCloudDialogflowV2beta1IntentMessageCard; carouselSelect?: Schema$GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect; image?: Schema$GoogleCloudDialogflowV2beta1IntentMessageImage; linkOutSuggestion?: Schema$GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion; listSelect?: Schema$GoogleCloudDialogflowV2beta1IntentMessageListSelect; mediaContent?: Schema$GoogleCloudDialogflowV2beta1IntentMessageMediaContent; payload?: { [key: string]: any; } | null; platform?: string | null; quickReplies?: Schema$GoogleCloudDialogflowV2beta1IntentMessageQuickReplies; rbmCarouselRichCard?: Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard; rbmStandaloneRichCard?: Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard; rbmText?: Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmText; simpleResponses?: Schema$GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses; suggestions?: Schema$GoogleCloudDialogflowV2beta1IntentMessageSuggestions; tableCard?: Schema$GoogleCloudDialogflowV2beta1IntentMessageTableCard; telephonyPlayAudio?: Schema$GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio; telephonySynthesizeSpeech?: Schema$GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech; telephonyTransferCall?: Schema$GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall; text?: Schema$GoogleCloudDialogflowV2beta1IntentMessageText; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageBasicCard { buttons?: Schema$GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton[]; formattedText?: string | null; image?: Schema$GoogleCloudDialogflowV2beta1IntentMessageImage; subtitle?: string | null; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton { openUriAction?: Schema$GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction { uri?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard { imageDisplayOptions?: string | null; items?: Schema$GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem[]; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem { description?: string | null; footer?: string | null; image?: Schema$GoogleCloudDialogflowV2beta1IntentMessageImage; openUriAction?: Schema$GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction { url?: string | null; urlTypeHint?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageCard { buttons?: Schema$GoogleCloudDialogflowV2beta1IntentMessageCardButton[]; imageUri?: string | null; subtitle?: string | null; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageCardButton { postback?: string | null; text?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect { items?: Schema$GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem[]; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem { description?: string | null; image?: Schema$GoogleCloudDialogflowV2beta1IntentMessageImage; info?: Schema$GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageColumnProperties { header?: string | null; horizontalAlignment?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageImage { accessibilityText?: string | null; imageUri?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion { destinationName?: string | null; uri?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageListSelect { items?: Schema$GoogleCloudDialogflowV2beta1IntentMessageListSelectItem[]; subtitle?: string | null; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageListSelectItem { description?: string | null; image?: Schema$GoogleCloudDialogflowV2beta1IntentMessageImage; info?: Schema$GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageMediaContent { mediaObjects?: Schema$GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject[]; mediaType?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject { contentUrl?: string | null; description?: string | null; icon?: Schema$GoogleCloudDialogflowV2beta1IntentMessageImage; largeImage?: Schema$GoogleCloudDialogflowV2beta1IntentMessageImage; name?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageQuickReplies { quickReplies?: string[] | null; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent { description?: string | null; media?: Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia; suggestions?: Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion[]; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia { fileUri?: string | null; height?: string | null; thumbnailUri?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard { cardContents?: Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent[]; cardWidth?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard { cardContent?: Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent; cardOrientation?: string | null; thumbnailImageAlignment?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction { dial?: Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial; openUrl?: Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri; postbackData?: string | null; shareLocation?: Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation; text?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial { phoneNumber?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri { uri?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation { } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply { postbackData?: string | null; text?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion { action?: Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction; reply?: Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmText { rbmSuggestion?: Schema$GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion[]; text?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo { key?: string | null; synonyms?: string[] | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse { displayText?: string | null; ssml?: string | null; textToSpeech?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses { simpleResponses?: Schema$GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse[]; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageSuggestion { title?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageSuggestions { suggestions?: Schema$GoogleCloudDialogflowV2beta1IntentMessageSuggestion[]; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageTableCard { buttons?: Schema$GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton[]; columnProperties?: Schema$GoogleCloudDialogflowV2beta1IntentMessageColumnProperties[]; image?: Schema$GoogleCloudDialogflowV2beta1IntentMessageImage; rows?: Schema$GoogleCloudDialogflowV2beta1IntentMessageTableCardRow[]; subtitle?: string | null; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageTableCardCell { text?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageTableCardRow { cells?: Schema$GoogleCloudDialogflowV2beta1IntentMessageTableCardCell[]; dividerAfter?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio { audioUri?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech { ssml?: string | null; text?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall { phoneNumber?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentMessageText { text?: string[] | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentParameter { defaultValue?: string | null; displayName?: string | null; entityTypeDisplayName?: string | null; isList?: boolean | null; mandatory?: boolean | null; name?: string | null; prompts?: string[] | null; value?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentSuggestion { description?: string | null; displayName?: string | null; intentV2?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentTrainingPhrase { name?: string | null; parts?: Schema$GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart[]; timesAddedCount?: number | null; type?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart { alias?: string | null; entityType?: string | null; text?: string | null; userDefined?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2beta1KnowledgeAnswers { answers?: Schema$GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer[]; } export interface Schema$GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer { answer?: string | null; faqQuestion?: string | null; matchConfidence?: number | null; matchConfidenceLevel?: string | null; source?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer { answerRecord?: string | null; knowledgeAssistDebugInfo?: Schema$GoogleCloudDialogflowV2beta1KnowledgeAssistDebugInfo; suggestedQuery?: Schema$GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery; suggestedQueryAnswer?: Schema$GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer; } export interface Schema$GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer { answerText?: string | null; faqSource?: Schema$GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource; generativeSource?: Schema$GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource; } export interface Schema$GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource { question?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource { snippets?: Schema$GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet[]; } export interface Schema$GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet { metadata?: { [key: string]: any; } | null; text?: string | null; title?: string | null; uri?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery { queryText?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1KnowledgeAssistDebugInfo { datastoreResponseReason?: string | null; ingestedContextReferenceDebugInfo?: Schema$GoogleCloudDialogflowV2beta1IngestedContextReferenceDebugInfo; knowledgeAssistBehavior?: Schema$GoogleCloudDialogflowV2beta1KnowledgeAssistDebugInfoKnowledgeAssistBehavior; queryCategorizationFailureReason?: string | null; queryGenerationFailureReason?: string | null; serviceLatency?: Schema$GoogleCloudDialogflowV2beta1ServiceLatency; } export interface Schema$GoogleCloudDialogflowV2beta1KnowledgeAssistDebugInfoKnowledgeAssistBehavior { answerGenerationRewriterOn?: boolean | null; appendedSearchContextCount?: number | null; conversationTranscriptHasMixedLanguages?: boolean | null; disableSyncDelivery?: boolean | null; endUserMetadataIncluded?: boolean | null; invalidItemsQuerySuggestionSkipped?: boolean | null; multipleQueriesGenerated?: boolean | null; previousQueriesIncluded?: boolean | null; primaryQueryRedactedAndReplaced?: boolean | null; queryContainedSearchContext?: boolean | null; queryGenerationAgentLanguageMismatch?: boolean | null; queryGenerationEndUserLanguageMismatch?: boolean | null; returnQueryOnly?: boolean | null; thirdPartyConnectorAllowed?: boolean | null; useCustomSafetyFilterLevel?: boolean | null; usePubsubDelivery?: boolean | null; useTranslatedMessage?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata { doneTime?: string | null; exportOperationMetadata?: Schema$GoogleCloudDialogflowV2beta1ExportOperationMetadata; knowledgeBase?: string | null; state?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1Message { content?: string | null; createTime?: string | null; languageCode?: string | null; messageAnnotation?: Schema$GoogleCloudDialogflowV2beta1MessageAnnotation; name?: string | null; participant?: string | null; participantRole?: string | null; responseMessages?: Schema$GoogleCloudDialogflowV2beta1ResponseMessage[]; sendTime?: string | null; sentimentAnalysis?: Schema$GoogleCloudDialogflowV2beta1SentimentAnalysisResult; } export interface Schema$GoogleCloudDialogflowV2beta1MessageAnnotation { containEntities?: boolean | null; parts?: Schema$GoogleCloudDialogflowV2beta1AnnotatedMessagePart[]; } export interface Schema$GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest { payload?: { [key: string]: any; } | null; source?: string | null; version?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1QueryResult { action?: string | null; allRequiredParamsPresent?: boolean | null; cancelsSlotFilling?: boolean | null; diagnosticInfo?: { [key: string]: any; } | null; fulfillmentMessages?: Schema$GoogleCloudDialogflowV2beta1IntentMessage[]; fulfillmentText?: string | null; intent?: Schema$GoogleCloudDialogflowV2beta1Intent; intentDetectionConfidence?: number | null; knowledgeAnswers?: Schema$GoogleCloudDialogflowV2beta1KnowledgeAnswers; languageCode?: string | null; outputContexts?: Schema$GoogleCloudDialogflowV2beta1Context[]; parameters?: { [key: string]: any; } | null; queryText?: string | null; sentimentAnalysisResult?: Schema$GoogleCloudDialogflowV2beta1SentimentAnalysisResult; speechRecognitionConfidence?: number | null; webhookPayload?: { [key: string]: any; } | null; webhookSource?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1ResponseMessage { endInteraction?: Schema$GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction; liveAgentHandoff?: Schema$GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff; mixedAudio?: Schema$GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio; payload?: { [key: string]: any; } | null; telephonyTransferCall?: Schema$GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall; text?: Schema$GoogleCloudDialogflowV2beta1ResponseMessageText; } export interface Schema$GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction { } export interface Schema$GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff { metadata?: { [key: string]: any; } | null; } export interface Schema$GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio { segments?: Schema$GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment[]; } export interface Schema$GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment { allowPlaybackInterruption?: boolean | null; audio?: string | null; uri?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall { phoneNumber?: string | null; sipUri?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1ResponseMessageText { text?: string[] | null; } export interface Schema$GoogleCloudDialogflowV2beta1Sentiment { magnitude?: number | null; score?: number | null; } export interface Schema$GoogleCloudDialogflowV2beta1SentimentAnalysisResult { queryTextSentiment?: Schema$GoogleCloudDialogflowV2beta1Sentiment; } export interface Schema$GoogleCloudDialogflowV2beta1ServiceLatency { internalServiceLatencies?: Schema$GoogleCloudDialogflowV2beta1ServiceLatencyInternalServiceLatency[]; } export interface Schema$GoogleCloudDialogflowV2beta1ServiceLatencyInternalServiceLatency { completeTime?: string | null; latencyMs?: number | null; startTime?: string | null; step?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1SessionEntityType { entities?: Schema$GoogleCloudDialogflowV2beta1EntityTypeEntity[]; entityOverrideMode?: string | null; name?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata { conversationProfile?: string | null; createTime?: string | null; participantRole?: string | null; suggestionFeatureType?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1SmartReplyAnswer { answerRecord?: string | null; confidence?: number | null; reply?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1SpeechWordInfo { confidence?: number | null; endOffset?: string | null; startOffset?: string | null; word?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1StreamingRecognitionResult { confidence?: number | null; dtmfDigits?: Schema$GoogleCloudDialogflowV2beta1TelephonyDtmfEvents; isFinal?: boolean | null; languageCode?: string | null; messageType?: string | null; speechEndOffset?: string | null; speechWordInfo?: Schema$GoogleCloudDialogflowV2beta1SpeechWordInfo[]; stability?: number | null; transcript?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1SuggestArticlesResponse { articleAnswers?: Schema$GoogleCloudDialogflowV2beta1ArticleAnswer[]; contextSize?: number | null; latestMessage?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse { contextSize?: number | null; dialogflowAssistAnswers?: Schema$GoogleCloudDialogflowV2beta1DialogflowAssistAnswer[]; latestMessage?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse { contextSize?: number | null; faqAnswers?: Schema$GoogleCloudDialogflowV2beta1FaqAnswer[]; latestMessage?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1SuggestionResult { error?: Schema$GoogleRpcStatus; generateSuggestionsResponse?: Schema$GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse; suggestArticlesResponse?: Schema$GoogleCloudDialogflowV2beta1SuggestArticlesResponse; suggestDialogflowAssistsResponse?: Schema$GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse; suggestEntityExtractionResponse?: Schema$GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse; suggestFaqAnswersResponse?: Schema$GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse; suggestKnowledgeAssistResponse?: Schema$GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse; suggestSmartRepliesResponse?: Schema$GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse; } export interface Schema$GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse { contextSize?: number | null; knowledgeAssistAnswer?: Schema$GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer; latestMessage?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse { contextSize?: number | null; latestMessage?: string | null; smartReplyAnswers?: Schema$GoogleCloudDialogflowV2beta1SmartReplyAnswer[]; } export interface Schema$GoogleCloudDialogflowV2beta1SummarySuggestion { summarySections?: Schema$GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection[]; } export interface Schema$GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection { section?: string | null; summary?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1TelephonyDtmfEvents { dtmfEvents?: string[] | null; } export interface Schema$GoogleCloudDialogflowV2beta1ToolCall { action?: string | null; answerRecord?: string | null; createTime?: string | null; inputParameters?: { [key: string]: any; } | null; state?: string | null; tool?: string | null; toolDisplayDetails?: string | null; toolDisplayName?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1ToolCallResult { action?: string | null; answerRecord?: string | null; content?: string | null; createTime?: string | null; error?: Schema$GoogleCloudDialogflowV2beta1ToolCallResultError; rawContent?: string | null; tool?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1ToolCallResultError { message?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1WebhookRequest { alternativeQueryResults?: Schema$GoogleCloudDialogflowV2beta1QueryResult[]; originalDetectIntentRequest?: Schema$GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest; queryResult?: Schema$GoogleCloudDialogflowV2beta1QueryResult; responseId?: string | null; session?: string | null; } export interface Schema$GoogleCloudDialogflowV2beta1WebhookResponse { endInteraction?: boolean | null; followupEventInput?: Schema$GoogleCloudDialogflowV2beta1EventInput; fulfillmentMessages?: Schema$GoogleCloudDialogflowV2beta1IntentMessage[]; fulfillmentText?: string | null; liveAgentHandoff?: boolean | null; outputContexts?: Schema$GoogleCloudDialogflowV2beta1Context[]; payload?: { [key: string]: any; } | null; sessionEntityTypes?: Schema$GoogleCloudDialogflowV2beta1SessionEntityType[]; source?: string | null; } export interface Schema$GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata { conversationProfile?: string | null; createTime?: string | null; participantRole?: string | null; suggestionFeatureType?: string | null; } export interface Schema$GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest { participantRole?: string | null; suggestionFeatureType?: string | null; } export interface Schema$GoogleCloudDialogflowV2CompleteConversationRequest { } export interface Schema$GoogleCloudDialogflowV2Connection { connectionId?: string | null; errorDetails?: Schema$GoogleCloudDialogflowV2ConnectionErrorDetails; state?: string | null; updateTime?: string | null; } export interface Schema$GoogleCloudDialogflowV2ConnectionErrorDetails { certificateState?: string | null; errorMessage?: string | null; } export interface Schema$GoogleCloudDialogflowV2Context { lifespanCount?: number | null; name?: string | null; parameters?: { [key: string]: any; } | null; } export interface Schema$GoogleCloudDialogflowV2Conversation { conversationProfile?: string | null; conversationStage?: string | null; endTime?: string | null; ingestedContextReferences?: { [key: string]: Schema$GoogleCloudDialogflowV2ConversationContextReference; } | null; lifecycleState?: string | null; name?: string | null; phoneNumber?: Schema$GoogleCloudDialogflowV2ConversationPhoneNumber; startTime?: string | null; telephonyConnectionInfo?: Schema$GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo; } export interface Schema$GoogleCloudDialogflowV2ConversationContext { messageEntries?: Schema$GoogleCloudDialogflowV2MessageEntry[]; } export interface Schema$GoogleCloudDialogflowV2ConversationContextReference { contextContents?: Schema$GoogleCloudDialogflowV2ConversationContextReferenceContextContent[]; createTime?: string | null; languageCode?: string | null; updateMode?: string | null; } export interface Schema$GoogleCloudDialogflowV2ConversationContextReferenceContextContent { answerRecord?: string | null; content?: string | null; contentFormat?: string | null; ingestionTime?: string | null; } export interface Schema$GoogleCloudDialogflowV2ConversationDataset { conversationCount?: string | null; conversationInfo?: Schema$GoogleCloudDialogflowV2ConversationInfo; createTime?: string | null; description?: string | null; displayName?: string | null; inputConfig?: Schema$GoogleCloudDialogflowV2InputConfig; name?: string | null; satisfiesPzi?: boolean | null; satisfiesPzs?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2ConversationEvent { conversation?: string | null; errorStatus?: Schema$GoogleRpcStatus; newMessagePayload?: Schema$GoogleCloudDialogflowV2Message; newRecognitionResultPayload?: Schema$GoogleCloudDialogflowV2StreamingRecognitionResult; type?: string | null; } export interface Schema$GoogleCloudDialogflowV2ConversationInfo { languageCode?: string | null; } export interface Schema$GoogleCloudDialogflowV2ConversationModel { articleSuggestionModelMetadata?: Schema$GoogleCloudDialogflowV2ArticleSuggestionModelMetadata; createTime?: string | null; datasets?: Schema$GoogleCloudDialogflowV2InputDataset[]; displayName?: string | null; languageCode?: string | null; name?: string | null; satisfiesPzi?: boolean | null; satisfiesPzs?: boolean | null; smartReplyModelMetadata?: Schema$GoogleCloudDialogflowV2SmartReplyModelMetadata; state?: string | null; } export interface Schema$GoogleCloudDialogflowV2ConversationModelEvaluation { createTime?: string | null; displayName?: string | null; evaluationConfig?: Schema$GoogleCloudDialogflowV2EvaluationConfig; name?: string | null; rawHumanEvalTemplateCsv?: string | null; smartReplyMetrics?: Schema$GoogleCloudDialogflowV2SmartReplyMetrics; } export interface Schema$GoogleCloudDialogflowV2ConversationPhoneNumber { countryCode?: number | null; phoneNumber?: string | null; } export interface Schema$GoogleCloudDialogflowV2ConversationProfile { automatedAgentConfig?: Schema$GoogleCloudDialogflowV2AutomatedAgentConfig; createTime?: string | null; displayName?: string | null; humanAgentAssistantConfig?: Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfig; humanAgentHandoffConfig?: Schema$GoogleCloudDialogflowV2HumanAgentHandoffConfig; languageCode?: string | null; loggingConfig?: Schema$GoogleCloudDialogflowV2LoggingConfig; name?: string | null; newMessageEventNotificationConfig?: Schema$GoogleCloudDialogflowV2NotificationConfig; newRecognitionResultNotificationConfig?: Schema$GoogleCloudDialogflowV2NotificationConfig; notificationConfig?: Schema$GoogleCloudDialogflowV2NotificationConfig; securitySettings?: string | null; sttConfig?: Schema$GoogleCloudDialogflowV2SpeechToTextConfig; timeZone?: string | null; ttsConfig?: Schema$GoogleCloudDialogflowV2SynthesizeSpeechConfig; updateTime?: string | null; } export interface Schema$GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo { dialedNumber?: string | null; extraMimeContents?: Schema$GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent[]; sdp?: string | null; sipHeaders?: Schema$GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader[]; } export interface Schema$GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent { content?: string | null; mimeType?: string | null; } export interface Schema$GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader { name?: string | null; value?: string | null; } export interface Schema$GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata { conversationDataset?: string | null; } export interface Schema$GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata { conversationModel?: string | null; conversationModelEvaluation?: string | null; createTime?: string | null; state?: string | null; } export interface Schema$GoogleCloudDialogflowV2CreateConversationModelEvaluationRequest { conversationModelEvaluation?: Schema$GoogleCloudDialogflowV2ConversationModelEvaluation; } export interface Schema$GoogleCloudDialogflowV2CreateConversationModelOperationMetadata { conversationModel?: string | null; createTime?: string | null; doneTime?: string | null; state?: string | null; } export interface Schema$GoogleCloudDialogflowV2CustomPronunciationParams { phoneticEncoding?: string | null; phrase?: string | null; pronunciation?: string | null; } export interface Schema$GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata { } export interface Schema$GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata { conversationModel?: string | null; createTime?: string | null; doneTime?: string | null; } export interface Schema$GoogleCloudDialogflowV2DeployConversationModelOperationMetadata { conversationModel?: string | null; createTime?: string | null; doneTime?: string | null; } export interface Schema$GoogleCloudDialogflowV2DeployConversationModelRequest { } export interface Schema$GoogleCloudDialogflowV2DetectIntentRequest { inputAudio?: string | null; outputAudioConfig?: Schema$GoogleCloudDialogflowV2OutputAudioConfig; outputAudioConfigMask?: string | null; queryInput?: Schema$GoogleCloudDialogflowV2QueryInput; queryParams?: Schema$GoogleCloudDialogflowV2QueryParameters; } export interface Schema$GoogleCloudDialogflowV2DetectIntentResponse { outputAudio?: string | null; outputAudioConfig?: Schema$GoogleCloudDialogflowV2OutputAudioConfig; queryResult?: Schema$GoogleCloudDialogflowV2QueryResult; responseId?: string | null; webhookStatus?: Schema$GoogleRpcStatus; } export interface Schema$GoogleCloudDialogflowV2DialogflowAssistAnswer { answerRecord?: string | null; intentSuggestion?: Schema$GoogleCloudDialogflowV2IntentSuggestion; queryResult?: Schema$GoogleCloudDialogflowV2QueryResult; } export interface Schema$GoogleCloudDialogflowV2Document { contentUri?: string | null; displayName?: string | null; enableAutoReload?: boolean | null; knowledgeTypes?: string[] | null; latestReloadStatus?: Schema$GoogleCloudDialogflowV2DocumentReloadStatus; metadata?: { [key: string]: string; } | null; mimeType?: string | null; name?: string | null; rawContent?: string | null; state?: string | null; } export interface Schema$GoogleCloudDialogflowV2DocumentReloadStatus { status?: Schema$GoogleRpcStatus; time?: string | null; } export interface Schema$GoogleCloudDialogflowV2DtmfParameters { acceptsDtmfInput?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2EncryptionSpec { kmsKey?: string | null; name?: string | null; } export interface Schema$GoogleCloudDialogflowV2EntityType { autoExpansionMode?: string | null; displayName?: string | null; enableFuzzyExtraction?: boolean | null; entities?: Schema$GoogleCloudDialogflowV2EntityTypeEntity[]; kind?: string | null; name?: string | null; } export interface Schema$GoogleCloudDialogflowV2EntityTypeBatch { entityTypes?: Schema$GoogleCloudDialogflowV2EntityType[]; } export interface Schema$GoogleCloudDialogflowV2EntityTypeEntity { synonyms?: string[] | null; value?: string | null; } export interface Schema$GoogleCloudDialogflowV2Environment { agentVersion?: string | null; description?: string | null; fulfillment?: Schema$GoogleCloudDialogflowV2Fulfillment; name?: string | null; state?: string | null; textToSpeechSettings?: Schema$GoogleCloudDialogflowV2TextToSpeechSettings; updateTime?: string | null; } export interface Schema$GoogleCloudDialogflowV2EnvironmentHistory { entries?: Schema$GoogleCloudDialogflowV2EnvironmentHistoryEntry[]; nextPageToken?: string | null; parent?: string | null; } export interface Schema$GoogleCloudDialogflowV2EnvironmentHistoryEntry { agentVersion?: string | null; createTime?: string | null; description?: string | null; } export interface Schema$GoogleCloudDialogflowV2EvaluationConfig { datasets?: Schema$GoogleCloudDialogflowV2InputDataset[]; smartComposeConfig?: Schema$GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig; smartReplyConfig?: Schema$GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig; } export interface Schema$GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig { allowlistDocument?: string | null; maxResultCount?: number | null; } export interface Schema$GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig { allowlistDocument?: string | null; maxResultCount?: number | null; } export interface Schema$GoogleCloudDialogflowV2EvaluationStatus { done?: boolean | null; pipelineStatus?: Schema$GoogleRpcStatus; } export interface Schema$GoogleCloudDialogflowV2EventInput { languageCode?: string | null; name?: string | null; parameters?: { [key: string]: any; } | null; } export interface Schema$GoogleCloudDialogflowV2ExportAgentRequest { agentUri?: string | null; } export interface Schema$GoogleCloudDialogflowV2ExportAgentResponse { agentContent?: string | null; agentUri?: string | null; } export interface Schema$GoogleCloudDialogflowV2ExportDocumentRequest { exportFullContent?: boolean | null; gcsDestination?: Schema$GoogleCloudDialogflowV2GcsDestination; smartMessagingPartialUpdate?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2ExportOperationMetadata { exportedGcsDestination?: Schema$GoogleCloudDialogflowV2GcsDestination; } export interface Schema$GoogleCloudDialogflowV2FaqAnswer { answer?: string | null; answerRecord?: string | null; confidence?: number | null; metadata?: { [key: string]: string; } | null; question?: string | null; source?: string | null; } export interface Schema$GoogleCloudDialogflowV2FewShotExample { conversationContext?: Schema$GoogleCloudDialogflowV2ConversationContext; extraInfo?: { [key: string]: string; } | null; output?: Schema$GoogleCloudDialogflowV2GeneratorSuggestion; summarizationSectionList?: Schema$GoogleCloudDialogflowV2SummarizationSectionList; } export interface Schema$GoogleCloudDialogflowV2FreeFormContext { text?: string | null; } export interface Schema$GoogleCloudDialogflowV2FreeFormSuggestion { response?: string | null; } export interface Schema$GoogleCloudDialogflowV2Fulfillment { displayName?: string | null; enabled?: boolean | null; features?: Schema$GoogleCloudDialogflowV2FulfillmentFeature[]; genericWebService?: Schema$GoogleCloudDialogflowV2FulfillmentGenericWebService; name?: string | null; } export interface Schema$GoogleCloudDialogflowV2FulfillmentFeature { type?: string | null; } export interface Schema$GoogleCloudDialogflowV2FulfillmentGenericWebService { isCloudFunction?: boolean | null; password?: string | null; requestHeaders?: { [key: string]: string; } | null; uri?: string | null; username?: string | null; } export interface Schema$GoogleCloudDialogflowV2GcsDestination { uri?: string | null; } export interface Schema$GoogleCloudDialogflowV2GcsSources { uris?: string[] | null; } export interface Schema$GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest { contextReferences?: { [key: string]: Schema$GoogleCloudDialogflowV2ConversationContextReference; } | null; conversationContext?: Schema$GoogleCloudDialogflowV2ConversationContext; generator?: Schema$GoogleCloudDialogflowV2Generator; generatorName?: string | null; securitySettings?: string | null; triggerEvents?: string[] | null; } export interface Schema$GoogleCloudDialogflowV2GenerateStatelessSuggestionResponse { generatorSuggestion?: Schema$GoogleCloudDialogflowV2GeneratorSuggestion; } export interface Schema$GoogleCloudDialogflowV2GenerateStatelessSummaryRequest { conversationProfile?: Schema$GoogleCloudDialogflowV2ConversationProfile; latestMessage?: string | null; maxContextSize?: number | null; statelessConversation?: Schema$GoogleCloudDialogflowV2GenerateStatelessSummaryRequestMinimalConversation; } export interface Schema$GoogleCloudDialogflowV2GenerateStatelessSummaryRequestMinimalConversation { messages?: Schema$GoogleCloudDialogflowV2Message[]; } export interface Schema$GoogleCloudDialogflowV2GenerateStatelessSummaryResponse { contextSize?: number | null; latestMessage?: string | null; summary?: Schema$GoogleCloudDialogflowV2GenerateStatelessSummaryResponseSummary; } export interface Schema$GoogleCloudDialogflowV2GenerateStatelessSummaryResponseSummary { baselineModelVersion?: string | null; text?: string | null; textSections?: { [key: string]: string; } | null; } export interface Schema$GoogleCloudDialogflowV2GenerateSuggestionsRequest { latestMessage?: string | null; triggerEvents?: string[] | null; } export interface Schema$GoogleCloudDialogflowV2GenerateSuggestionsResponse { generatorSuggestionAnswers?: Schema$GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer[]; latestMessage?: string | null; } export interface Schema$GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer { answerRecord?: string | null; generatorSuggestion?: Schema$GoogleCloudDialogflowV2GeneratorSuggestion; sourceGenerator?: string | null; } export interface Schema$GoogleCloudDialogflowV2Generator { agentCoachingContext?: Schema$GoogleCloudDialogflowV2AgentCoachingContext; createTime?: string | null; description?: string | null; freeFormContext?: Schema$GoogleCloudDialogflowV2FreeFormContext; inferenceParameter?: Schema$GoogleCloudDialogflowV2InferenceParameter; name?: string | null; publishedModel?: string | null; suggestionDedupingConfig?: Schema$GoogleCloudDialogflowV2SuggestionDedupingConfig; summarizationContext?: Schema$GoogleCloudDialogflowV2SummarizationContext; tools?: string[] | null; triggerEvent?: string | null; updateTime?: string | null; } export interface Schema$GoogleCloudDialogflowV2GeneratorEvaluation { completeTime?: string | null; createTime?: string | null; displayName?: string | null; evaluationStatus?: Schema$GoogleCloudDialogflowV2EvaluationStatus; generatorEvaluationConfig?: Schema$GoogleCloudDialogflowV2GeneratorEvaluationConfig; initialGenerator?: Schema$GoogleCloudDialogflowV2Generator; name?: string | null; satisfiesPzi?: boolean | null; satisfiesPzs?: boolean | null; summarizationMetrics?: Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetrics; } export interface Schema$GoogleCloudDialogflowV2GeneratorEvaluationConfig { inputDataConfig?: Schema$GoogleCloudDialogflowV2GeneratorEvaluationConfigInputDataConfig; outputGcsBucketPath?: string | null; summarizationConfig?: Schema$GoogleCloudDialogflowV2GeneratorEvaluationConfigSummarizationConfig; } export interface Schema$GoogleCloudDialogflowV2GeneratorEvaluationConfigAgentAssistInputDataConfig { endTime?: string | null; startTime?: string | null; } export interface Schema$GoogleCloudDialogflowV2GeneratorEvaluationConfigDatasetInputDataConfig { dataset?: string | null; } export interface Schema$GoogleCloudDialogflowV2GeneratorEvaluationConfigInputDataConfig { agentAssistInputDataConfig?: Schema$GoogleCloudDialogflowV2GeneratorEvaluationConfigAgentAssistInputDataConfig; datasetInputDataConfig?: Schema$GoogleCloudDialogflowV2GeneratorEvaluationConfigDatasetInputDataConfig; endTime?: string | null; inputDataSourceType?: string | null; isSummaryGenerationAllowed?: boolean | null; sampleSize?: number | null; startTime?: string | null; summaryGenerationOption?: string | null; } export interface Schema$GoogleCloudDialogflowV2GeneratorEvaluationConfigSummarizationConfig { accuracyEvaluationVersion?: string | null; completenessEvaluationVersion?: string | null; enableAccuracyEvaluation?: boolean | null; enableCompletenessEvaluation?: boolean | null; evaluatorVersion?: string | null; } export interface Schema$GoogleCloudDialogflowV2GeneratorSuggestion { agentCoachingSuggestion?: Schema$GoogleCloudDialogflowV2AgentCoachingSuggestion; freeFormSuggestion?: Schema$GoogleCloudDialogflowV2FreeFormSuggestion; summarySuggestion?: Schema$GoogleCloudDialogflowV2SummarySuggestion; toolCallInfo?: Schema$GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo[]; } export interface Schema$GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo { toolCall?: Schema$GoogleCloudDialogflowV2ToolCall; toolCallResult?: Schema$GoogleCloudDialogflowV2ToolCallResult; } export interface Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfig { endUserSuggestionConfig?: Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig; humanAgentSuggestionConfig?: Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig; messageAnalysisConfig?: Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig; notificationConfig?: Schema$GoogleCloudDialogflowV2NotificationConfig; } export interface Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig { baselineModelVersion?: string | null; model?: string | null; } export interface Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationProcessConfig { recentSentencesCount?: number | null; } export interface Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig { enableEntityExtraction?: boolean | null; enableSentimentAnalysis?: boolean | null; enableSentimentAnalysisV3?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig { disableHighLatencyFeaturesSyncDelivery?: boolean | null; enableAsyncToolCall?: boolean | null; featureConfigs?: Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig[]; generators?: string[] | null; groupSuggestionResponses?: boolean | null; skipEmptyEventBasedSuggestion?: boolean | null; useUnredactedConversationData?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig { conversationModelConfig?: Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig; conversationProcessConfig?: Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationProcessConfig; disableAgentQueryLogging?: boolean | null; enableConversationAugmentedQuery?: boolean | null; enableEventBasedSuggestion?: boolean | null; enableQuerySuggestionOnly?: boolean | null; enableQuerySuggestionWhenNoAnswer?: boolean | null; enableResponseDebugInfo?: boolean | null; queryConfig?: Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig; raiSettings?: Schema$GoogleCloudDialogflowV2RaiSettings; suggestionFeature?: Schema$GoogleCloudDialogflowV2SuggestionFeature; suggestionTriggerSettings?: Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionTriggerSettings; } export interface Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig { confidenceThreshold?: number | null; contextFilterSettings?: Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings; contextSize?: number | null; dialogflowQuerySource?: Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource; documentQuerySource?: Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource; knowledgeBaseQuerySource?: Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource; maxResults?: number | null; sections?: Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigSections; } export interface Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings { dropHandoffMessages?: boolean | null; dropIvrMessages?: boolean | null; dropVirtualAgentMessages?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource { agent?: string | null; humanAgentSideConfig?: Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig; } export interface Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig { agent?: string | null; } export interface Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource { documents?: string[] | null; } export interface Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource { knowledgeBases?: string[] | null; } export interface Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigSections { sectionTypes?: string[] | null; } export interface Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionTriggerSettings { noSmalltalk?: boolean | null; onlyEndUser?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2HumanAgentAssistantEvent { conversation?: string | null; participant?: string | null; suggestionResults?: Schema$GoogleCloudDialogflowV2SuggestionResult[]; } export interface Schema$GoogleCloudDialogflowV2HumanAgentHandoffConfig { livePersonConfig?: Schema$GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig; salesforceLiveAgentConfig?: Schema$GoogleCloudDialogflowV2HumanAgentHandoffConfigSalesforceLiveAgentConfig; } export interface Schema$GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig { accountNumber?: string | null; } export interface Schema$GoogleCloudDialogflowV2HumanAgentHandoffConfigSalesforceLiveAgentConfig { buttonId?: string | null; deploymentId?: string | null; endpointDomain?: string | null; organizationId?: string | null; } export interface Schema$GoogleCloudDialogflowV2ImportAgentRequest { agentContent?: string | null; agentUri?: string | null; } export interface Schema$GoogleCloudDialogflowV2ImportConversationDataOperationMetadata { conversationDataset?: string | null; createTime?: string | null; partialFailures?: Schema$GoogleRpcStatus[]; } export interface Schema$GoogleCloudDialogflowV2ImportConversationDataOperationResponse { conversationDataset?: string | null; importCount?: number | null; } export interface Schema$GoogleCloudDialogflowV2ImportConversationDataRequest { inputConfig?: Schema$GoogleCloudDialogflowV2InputConfig; } export interface Schema$GoogleCloudDialogflowV2ImportDocumentsRequest { documentTemplate?: Schema$GoogleCloudDialogflowV2ImportDocumentTemplate; gcsSource?: Schema$GoogleCloudDialogflowV2GcsSources; importGcsCustomMetadata?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2ImportDocumentsResponse { warnings?: Schema$GoogleRpcStatus[]; } export interface Schema$GoogleCloudDialogflowV2ImportDocumentTemplate { knowledgeTypes?: string[] | null; metadata?: { [key: string]: string; } | null; mimeType?: string | null; } export interface Schema$GoogleCloudDialogflowV2InferenceParameter { maxOutputTokens?: number | null; temperature?: number | null; topK?: number | null; topP?: number | null; } export interface Schema$GoogleCloudDialogflowV2IngestContextReferencesRequest { contextReferences?: { [key: string]: Schema$GoogleCloudDialogflowV2ConversationContextReference; } | null; } export interface Schema$GoogleCloudDialogflowV2IngestContextReferencesResponse { ingestedContextReferences?: { [key: string]: Schema$GoogleCloudDialogflowV2ConversationContextReference; } | null; } export interface Schema$GoogleCloudDialogflowV2IngestedContextReferenceDebugInfo { contextReferenceRetrieved?: boolean | null; ingestedParametersDebugInfo?: Schema$GoogleCloudDialogflowV2IngestedContextReferenceDebugInfoIngestedParameterDebugInfo[]; projectNotAllowlisted?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2IngestedContextReferenceDebugInfoIngestedParameterDebugInfo { ingestionStatus?: string | null; parameter?: string | null; } export interface Schema$GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata { request?: Schema$GoogleCloudDialogflowV2InitializeEncryptionSpecRequest; } export interface Schema$GoogleCloudDialogflowV2InitializeEncryptionSpecRequest { encryptionSpec?: Schema$GoogleCloudDialogflowV2EncryptionSpec; } export interface Schema$GoogleCloudDialogflowV2InputAudioConfig { audioEncoding?: string | null; disableNoSpeechRecognizedEvent?: boolean | null; enableAutomaticPunctuation?: boolean | null; enableWordInfo?: boolean | null; languageCode?: string | null; model?: string | null; modelVariant?: string | null; optOutConformerModelMigration?: boolean | null; phraseHints?: string[] | null; phraseSets?: string[] | null; sampleRateHertz?: number | null; singleUtterance?: boolean | null; speechContexts?: Schema$GoogleCloudDialogflowV2SpeechContext[]; } export interface Schema$GoogleCloudDialogflowV2InputConfig { gcsSource?: Schema$GoogleCloudDialogflowV2GcsSources; } export interface Schema$GoogleCloudDialogflowV2InputDataset { dataset?: string | null; } export interface Schema$GoogleCloudDialogflowV2Intent { action?: string | null; defaultResponsePlatforms?: string[] | null; displayName?: string | null; endInteraction?: boolean | null; events?: string[] | null; followupIntentInfo?: Schema$GoogleCloudDialogflowV2IntentFollowupIntentInfo[]; inputContextNames?: string[] | null; isFallback?: boolean | null; liveAgentHandoff?: boolean | null; messages?: Schema$GoogleCloudDialogflowV2IntentMessage[]; mlDisabled?: boolean | null; name?: string | null; outputContexts?: Schema$GoogleCloudDialogflowV2Context[]; parameters?: Schema$GoogleCloudDialogflowV2IntentParameter[]; parentFollowupIntentName?: string | null; priority?: number | null; resetContexts?: boolean | null; rootFollowupIntentName?: string | null; trainingPhrases?: Schema$GoogleCloudDialogflowV2IntentTrainingPhrase[]; webhookState?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentBatch { intents?: Schema$GoogleCloudDialogflowV2Intent[]; } export interface Schema$GoogleCloudDialogflowV2IntentFollowupIntentInfo { followupIntentName?: string | null; parentFollowupIntentName?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessage { basicCard?: Schema$GoogleCloudDialogflowV2IntentMessageBasicCard; browseCarouselCard?: Schema$GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard; card?: Schema$GoogleCloudDialogflowV2IntentMessageCard; carouselSelect?: Schema$GoogleCloudDialogflowV2IntentMessageCarouselSelect; image?: Schema$GoogleCloudDialogflowV2IntentMessageImage; linkOutSuggestion?: Schema$GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion; listSelect?: Schema$GoogleCloudDialogflowV2IntentMessageListSelect; mediaContent?: Schema$GoogleCloudDialogflowV2IntentMessageMediaContent; payload?: { [key: string]: any; } | null; platform?: string | null; quickReplies?: Schema$GoogleCloudDialogflowV2IntentMessageQuickReplies; simpleResponses?: Schema$GoogleCloudDialogflowV2IntentMessageSimpleResponses; suggestions?: Schema$GoogleCloudDialogflowV2IntentMessageSuggestions; tableCard?: Schema$GoogleCloudDialogflowV2IntentMessageTableCard; text?: Schema$GoogleCloudDialogflowV2IntentMessageText; } export interface Schema$GoogleCloudDialogflowV2IntentMessageBasicCard { buttons?: Schema$GoogleCloudDialogflowV2IntentMessageBasicCardButton[]; formattedText?: string | null; image?: Schema$GoogleCloudDialogflowV2IntentMessageImage; subtitle?: string | null; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageBasicCardButton { openUriAction?: Schema$GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction { uri?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard { imageDisplayOptions?: string | null; items?: Schema$GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem[]; } export interface Schema$GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem { description?: string | null; footer?: string | null; image?: Schema$GoogleCloudDialogflowV2IntentMessageImage; openUriAction?: Schema$GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction { url?: string | null; urlTypeHint?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageCard { buttons?: Schema$GoogleCloudDialogflowV2IntentMessageCardButton[]; imageUri?: string | null; subtitle?: string | null; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageCardButton { postback?: string | null; text?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageCarouselSelect { items?: Schema$GoogleCloudDialogflowV2IntentMessageCarouselSelectItem[]; } export interface Schema$GoogleCloudDialogflowV2IntentMessageCarouselSelectItem { description?: string | null; image?: Schema$GoogleCloudDialogflowV2IntentMessageImage; info?: Schema$GoogleCloudDialogflowV2IntentMessageSelectItemInfo; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageColumnProperties { header?: string | null; horizontalAlignment?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageImage { accessibilityText?: string | null; imageUri?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion { destinationName?: string | null; uri?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageListSelect { items?: Schema$GoogleCloudDialogflowV2IntentMessageListSelectItem[]; subtitle?: string | null; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageListSelectItem { description?: string | null; image?: Schema$GoogleCloudDialogflowV2IntentMessageImage; info?: Schema$GoogleCloudDialogflowV2IntentMessageSelectItemInfo; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageMediaContent { mediaObjects?: Schema$GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject[]; mediaType?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject { contentUrl?: string | null; description?: string | null; icon?: Schema$GoogleCloudDialogflowV2IntentMessageImage; largeImage?: Schema$GoogleCloudDialogflowV2IntentMessageImage; name?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageQuickReplies { quickReplies?: string[] | null; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageSelectItemInfo { key?: string | null; synonyms?: string[] | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageSimpleResponse { displayText?: string | null; ssml?: string | null; textToSpeech?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageSimpleResponses { simpleResponses?: Schema$GoogleCloudDialogflowV2IntentMessageSimpleResponse[]; } export interface Schema$GoogleCloudDialogflowV2IntentMessageSuggestion { title?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageSuggestions { suggestions?: Schema$GoogleCloudDialogflowV2IntentMessageSuggestion[]; } export interface Schema$GoogleCloudDialogflowV2IntentMessageTableCard { buttons?: Schema$GoogleCloudDialogflowV2IntentMessageBasicCardButton[]; columnProperties?: Schema$GoogleCloudDialogflowV2IntentMessageColumnProperties[]; image?: Schema$GoogleCloudDialogflowV2IntentMessageImage; rows?: Schema$GoogleCloudDialogflowV2IntentMessageTableCardRow[]; subtitle?: string | null; title?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageTableCardCell { text?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageTableCardRow { cells?: Schema$GoogleCloudDialogflowV2IntentMessageTableCardCell[]; dividerAfter?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2IntentMessageText { text?: string[] | null; } export interface Schema$GoogleCloudDialogflowV2IntentParameter { defaultValue?: string | null; displayName?: string | null; entityTypeDisplayName?: string | null; isList?: boolean | null; mandatory?: boolean | null; name?: string | null; prompts?: string[] | null; value?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentSuggestion { description?: string | null; displayName?: string | null; intentV2?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentTrainingPhrase { name?: string | null; parts?: Schema$GoogleCloudDialogflowV2IntentTrainingPhrasePart[]; timesAddedCount?: number | null; type?: string | null; } export interface Schema$GoogleCloudDialogflowV2IntentTrainingPhrasePart { alias?: string | null; entityType?: string | null; text?: string | null; userDefined?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2KnowledgeAssistAnswer { answerRecord?: string | null; knowledgeAssistDebugInfo?: Schema$GoogleCloudDialogflowV2KnowledgeAssistDebugInfo; suggestedQuery?: Schema$GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery; suggestedQueryAnswer?: Schema$GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer; } export interface Schema$GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer { answerText?: string | null; faqSource?: Schema$GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource; generativeSource?: Schema$GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource; } export interface Schema$GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource { question?: string | null; } export interface Schema$GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource { snippets?: Schema$GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet[]; } export interface Schema$GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet { metadata?: { [key: string]: any; } | null; text?: string | null; title?: string | null; uri?: string | null; } export interface Schema$GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery { queryText?: string | null; } export interface Schema$GoogleCloudDialogflowV2KnowledgeAssistDebugInfo { datastoreResponseReason?: string | null; ingestedContextReferenceDebugInfo?: Schema$GoogleCloudDialogflowV2IngestedContextReferenceDebugInfo; knowledgeAssistBehavior?: Schema$GoogleCloudDialogflowV2KnowledgeAssistDebugInfoKnowledgeAssistBehavior; queryCategorizationFailureReason?: string | null; queryGenerationFailureReason?: string | null; serviceLatency?: Schema$GoogleCloudDialogflowV2ServiceLatency; } export interface Schema$GoogleCloudDialogflowV2KnowledgeAssistDebugInfoKnowledgeAssistBehavior { answerGenerationRewriterOn?: boolean | null; appendedSearchContextCount?: number | null; conversationTranscriptHasMixedLanguages?: boolean | null; disableSyncDelivery?: boolean | null; endUserMetadataIncluded?: boolean | null; invalidItemsQuerySuggestionSkipped?: boolean | null; multipleQueriesGenerated?: boolean | null; previousQueriesIncluded?: boolean | null; primaryQueryRedactedAndReplaced?: boolean | null; queryContainedSearchContext?: boolean | null; queryGenerationAgentLanguageMismatch?: boolean | null; queryGenerationEndUserLanguageMismatch?: boolean | null; returnQueryOnly?: boolean | null; thirdPartyConnectorAllowed?: boolean | null; useCustomSafetyFilterLevel?: boolean | null; usePubsubDelivery?: boolean | null; useTranslatedMessage?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2KnowledgeBase { displayName?: string | null; languageCode?: string | null; name?: string | null; } export interface Schema$GoogleCloudDialogflowV2KnowledgeOperationMetadata { doneTime?: string | null; exportOperationMetadata?: Schema$GoogleCloudDialogflowV2ExportOperationMetadata; knowledgeBase?: string | null; state?: string | null; } export interface Schema$GoogleCloudDialogflowV2ListAnswerRecordsResponse { answerRecords?: Schema$GoogleCloudDialogflowV2AnswerRecord[]; nextPageToken?: string | null; } export interface Schema$GoogleCloudDialogflowV2ListContextsResponse { contexts?: Schema$GoogleCloudDialogflowV2Context[]; nextPageToken?: string | null; } export interface Schema$GoogleCloudDialogflowV2ListConversationDatasetsResponse { conversationDatasets?: Schema$GoogleCloudDialogflowV2ConversationDataset[]; nextPageToken?: string | null; } export interface Schema$GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse { conversationModelEvaluations?: Schema$GoogleCloudDialogflowV2ConversationModelEvaluation[]; nextPageToken?: string | null; } export interface Schema$GoogleCloudDialogflowV2ListConversationModelsResponse { conversationModels?: Schema$GoogleCloudDialogflowV2ConversationModel[]; nextPageToken?: string | null; } export interface Schema$GoogleCloudDialogflowV2ListConversationProfilesResponse { conversationProfiles?: Schema$GoogleCloudDialogflowV2ConversationProfile[]; nextPageToken?: string | null; } export interface Schema$GoogleCloudDialogflowV2ListConversationsResponse { conversations?: Schema$GoogleCloudDialogflowV2Conversation[]; nextPageToken?: string | null; } export interface Schema$GoogleCloudDialogflowV2ListDocumentsResponse { documents?: Schema$GoogleCloudDialogflowV2Document[]; nextPageToken?: string | null; } export interface Schema$GoogleCloudDialogflowV2ListEntityTypesResponse { entityTypes?: Schema$GoogleCloudDialogflowV2EntityType[]; nextPageToken?: string | null; } export interface Schema$GoogleCloudDialogflowV2ListEnvironmentsResponse { environments?: Schema$GoogleCloudDialogflowV2Environment[]; nextPageToken?: string | null; } export interface Schema$GoogleCloudDialogflowV2ListGeneratorEvaluationsResponse { generatorEvaluations?: Schema$GoogleCloudDialogflowV2GeneratorEvaluation[]; nextPageToken?: string | null; } export interface Schema$GoogleCloudDialogflowV2ListGeneratorsResponse { generators?: Schema$GoogleCloudDialogflowV2Generator[]; nextPageToken?: string | null; } export interface Schema$GoogleCloudDialogflowV2ListIntentsResponse { intents?: Schema$GoogleCloudDialogflowV2Intent[]; nextPageToken?: string | null; } export interface Schema$GoogleCloudDialogflowV2ListKnowledgeBasesResponse { knowledgeBases?: Schema$GoogleCloudDialogflowV2KnowledgeBase[]; nextPageToken?: string | null; } export interface Schema$GoogleCloudDialogflowV2ListMessagesResponse { messages?: Schema$GoogleCloudDialogflowV2Message[]; nextPageToken?: string | null; } export interface Schema$GoogleCloudDialogflowV2ListParticipantsResponse { nextPageToken?: string | null; participants?: Schema$GoogleCloudDialogflowV2Participant[]; } export interface Schema$GoogleCloudDialogflowV2ListSessionEntityTypesResponse { nextPageToken?: string | null; sessionEntityTypes?: Schema$GoogleCloudDialogflowV2SessionEntityType[]; } export interface Schema$GoogleCloudDialogflowV2ListSipTrunksResponse { nextPageToken?: string | null; sipTrunks?: Schema$GoogleCloudDialogflowV2SipTrunk[]; } export interface Schema$GoogleCloudDialogflowV2ListToolsResponse { nextPageToken?: string | null; tools?: Schema$GoogleCloudDialogflowV2Tool[]; } export interface Schema$GoogleCloudDialogflowV2ListVersionsResponse { nextPageToken?: string | null; versions?: Schema$GoogleCloudDialogflowV2Version[]; } export interface Schema$GoogleCloudDialogflowV2LoggingConfig { enableStackdriverLogging?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2Message { content?: string | null; createTime?: string | null; languageCode?: string | null; messageAnnotation?: Schema$GoogleCloudDialogflowV2MessageAnnotation; name?: string | null; participant?: string | null; participantRole?: string | null; sendTime?: string | null; sentimentAnalysis?: Schema$GoogleCloudDialogflowV2SentimentAnalysisResult; } export interface Schema$GoogleCloudDialogflowV2MessageAnnotation { containEntities?: boolean | null; parts?: Schema$GoogleCloudDialogflowV2AnnotatedMessagePart[]; } export interface Schema$GoogleCloudDialogflowV2MessageEntry { createTime?: string | null; languageCode?: string | null; role?: string | null; text?: string | null; } export interface Schema$GoogleCloudDialogflowV2NotificationConfig { messageFormat?: string | null; topic?: string | null; } export interface Schema$GoogleCloudDialogflowV2OriginalDetectIntentRequest { payload?: { [key: string]: any; } | null; source?: string | null; version?: string | null; } export interface Schema$GoogleCloudDialogflowV2OutputAudio { audio?: string | null; config?: Schema$GoogleCloudDialogflowV2OutputAudioConfig; } export interface Schema$GoogleCloudDialogflowV2OutputAudioConfig { audioEncoding?: string | null; sampleRateHertz?: number | null; synthesizeSpeechConfig?: Schema$GoogleCloudDialogflowV2SynthesizeSpeechConfig; } export interface Schema$GoogleCloudDialogflowV2Participant { agentDesktopSource?: string | null; documentsMetadataFilters?: { [key: string]: string; } | null; name?: string | null; obfuscatedExternalUserId?: string | null; role?: string | null; sipRecordingMediaLabel?: string | null; } export interface Schema$GoogleCloudDialogflowV2QueryInput { audioConfig?: Schema$GoogleCloudDialogflowV2InputAudioConfig; event?: Schema$GoogleCloudDialogflowV2EventInput; text?: Schema$GoogleCloudDialogflowV2TextInput; } export interface Schema$GoogleCloudDialogflowV2QueryParameters { contexts?: Schema$GoogleCloudDialogflowV2Context[]; geoLocation?: Schema$GoogleTypeLatLng; payload?: { [key: string]: any; } | null; platform?: string | null; resetContexts?: boolean | null; sentimentAnalysisRequestConfig?: Schema$GoogleCloudDialogflowV2SentimentAnalysisRequestConfig; sessionEntityTypes?: Schema$GoogleCloudDialogflowV2SessionEntityType[]; timeZone?: string | null; webhookHeaders?: { [key: string]: string; } | null; } export interface Schema$GoogleCloudDialogflowV2QueryResult { action?: string | null; allRequiredParamsPresent?: boolean | null; cancelsSlotFilling?: boolean | null; diagnosticInfo?: { [key: string]: any; } | null; fulfillmentMessages?: Schema$GoogleCloudDialogflowV2IntentMessage[]; fulfillmentText?: string | null; intent?: Schema$GoogleCloudDialogflowV2Intent; intentDetectionConfidence?: number | null; languageCode?: string | null; outputContexts?: Schema$GoogleCloudDialogflowV2Context[]; parameters?: { [key: string]: any; } | null; queryText?: string | null; sentimentAnalysisResult?: Schema$GoogleCloudDialogflowV2SentimentAnalysisResult; speechRecognitionConfidence?: number | null; webhookPayload?: { [key: string]: any; } | null; webhookSource?: string | null; } export interface Schema$GoogleCloudDialogflowV2RaiSettings { raiCategoryConfigs?: Schema$GoogleCloudDialogflowV2RaiSettingsRaiCategoryConfig[]; } export interface Schema$GoogleCloudDialogflowV2RaiSettingsRaiCategoryConfig { category?: string | null; sensitivityLevel?: string | null; } export interface Schema$GoogleCloudDialogflowV2ReloadDocumentRequest { contentUri?: string | null; importGcsCustomMetadata?: boolean | null; smartMessagingPartialUpdate?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2RestoreAgentRequest { agentContent?: string | null; agentUri?: string | null; } export interface Schema$GoogleCloudDialogflowV2SearchAgentsResponse { agents?: Schema$GoogleCloudDialogflowV2Agent[]; nextPageToken?: string | null; } export interface Schema$GoogleCloudDialogflowV2SearchKnowledgeAnswer { answer?: string | null; answerRecord?: string | null; answerSources?: Schema$GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource[]; answerType?: string | null; } export interface Schema$GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource { metadata?: { [key: string]: any; } | null; snippet?: string | null; title?: string | null; uri?: string | null; } export interface Schema$GoogleCloudDialogflowV2SearchKnowledgeDebugInfo { datastoreResponseReason?: string | null; ingestedContextReferenceDebugInfo?: Schema$GoogleCloudDialogflowV2IngestedContextReferenceDebugInfo; searchKnowledgeBehavior?: Schema$GoogleCloudDialogflowV2SearchKnowledgeDebugInfoSearchKnowledgeBehavior; serviceLatency?: Schema$GoogleCloudDialogflowV2ServiceLatency; } export interface Schema$GoogleCloudDialogflowV2SearchKnowledgeDebugInfoSearchKnowledgeBehavior { answerGenerationRewriterOn?: boolean | null; endUserMetadataIncluded?: boolean | null; thirdPartyConnectorAllowed?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2SearchKnowledgeRequest { conversation?: string | null; conversationProfile?: string | null; endUserMetadata?: { [key: string]: any; } | null; exactSearch?: boolean | null; latestMessage?: string | null; parent?: string | null; query?: Schema$GoogleCloudDialogflowV2TextInput; querySource?: string | null; searchConfig?: Schema$GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfig; sessionId?: string | null; } export interface Schema$GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfig { boostSpecs?: Schema$GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecs[]; filterSpecs?: Schema$GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigFilterSpecs[]; } export interface Schema$GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecs { dataStores?: string[] | null; spec?: Schema$GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpec[]; } export interface Schema$GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpec { conditionBoostSpecs?: Schema$GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpec[]; } export interface Schema$GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpec { boost?: number | null; boostControlSpec?: Schema$GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpec; condition?: string | null; } export interface Schema$GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpec { attributeType?: string | null; controlPoints?: Schema$GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint[]; fieldName?: string | null; interpolationType?: string | null; } export interface Schema$GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint { attributeValue?: string | null; boostAmount?: number | null; } export interface Schema$GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigFilterSpecs { dataStores?: string[] | null; filter?: string | null; } export interface Schema$GoogleCloudDialogflowV2SearchKnowledgeResponse { answers?: Schema$GoogleCloudDialogflowV2SearchKnowledgeAnswer[]; rewrittenQuery?: string | null; searchKnowledgeDebugInfo?: Schema$GoogleCloudDialogflowV2SearchKnowledgeDebugInfo; } export interface Schema$GoogleCloudDialogflowV2Sentiment { magnitude?: number | null; score?: number | null; } export interface Schema$GoogleCloudDialogflowV2SentimentAnalysisRequestConfig { analyzeQueryTextSentiment?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2SentimentAnalysisResult { queryTextSentiment?: Schema$GoogleCloudDialogflowV2Sentiment; } export interface Schema$GoogleCloudDialogflowV2ServiceLatency { internalServiceLatencies?: Schema$GoogleCloudDialogflowV2ServiceLatencyInternalServiceLatency[]; } export interface Schema$GoogleCloudDialogflowV2ServiceLatencyInternalServiceLatency { completeTime?: string | null; latencyMs?: number | null; startTime?: string | null; step?: string | null; } export interface Schema$GoogleCloudDialogflowV2SessionEntityType { entities?: Schema$GoogleCloudDialogflowV2EntityTypeEntity[]; entityOverrideMode?: string | null; name?: string | null; } export interface Schema$GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata { conversationProfile?: string | null; createTime?: string | null; participantRole?: string | null; suggestionFeatureType?: string | null; } export interface Schema$GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest { participantRole?: string | null; suggestionFeatureConfig?: Schema$GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig; } export interface Schema$GoogleCloudDialogflowV2SipTrunk { connections?: Schema$GoogleCloudDialogflowV2Connection[]; displayName?: string | null; expectedHostname?: string[] | null; name?: string | null; } export interface Schema$GoogleCloudDialogflowV2SmartReplyAnswer { answerRecord?: string | null; confidence?: number | null; reply?: string | null; } export interface Schema$GoogleCloudDialogflowV2SmartReplyMetrics { allowlistCoverage?: number | null; conversationCount?: string | null; topNMetrics?: Schema$GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics[]; } export interface Schema$GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics { n?: number | null; recall?: number | null; } export interface Schema$GoogleCloudDialogflowV2SmartReplyModelMetadata { trainingModelType?: string | null; } export interface Schema$GoogleCloudDialogflowV2SpeechContext { boost?: number | null; phrases?: string[] | null; } export interface Schema$GoogleCloudDialogflowV2SpeechToTextConfig { audioEncoding?: string | null; enableWordInfo?: boolean | null; languageCode?: string | null; model?: string | null; phraseSets?: string[] | null; sampleRateHertz?: number | null; speechModelVariant?: string | null; useTimeoutBasedEndpointing?: boolean | null; } export interface Schema$GoogleCloudDialogflowV2SpeechWordInfo { confidence?: number | null; endOffset?: string | null; startOffset?: string | null; word?: string | null; } export interface Schema$GoogleCloudDialogflowV2StreamingRecognitionResult { confidence?: number | null; isFinal?: boolean | null; languageCode?: string | null; messageType?: string | null; speechEndOffset?: string | null; speechWordInfo?: Schema$GoogleCloudDialogflowV2SpeechWordInfo[]; transcript?: string | null; } export interface Schema$GoogleCloudDialogflowV2SuggestArticlesRequest { assistQueryParams?: Schema$GoogleCloudDialogflowV2AssistQueryParameters; contextSize?: number | null; latestMessage?: string | null; } export interface Schema$GoogleCloudDialogflowV2SuggestArticlesResponse { articleAnswers?: Schema$GoogleCloudDialogflowV2ArticleAnswer[]; contextSize?: number | null; latestMessage?: string | null; } export interface Schema$GoogleCloudDialogflowV2SuggestConversationSummaryRequest { assistQueryParams?: Schema$GoogleCloudDialogflowV2AssistQueryParameters; contextSize?: number | null; latestMessage?: string | null; } export interface Schema$GoogleCloudDialogflowV2SuggestConversationSummaryResponse { contextSize?: number | null; latestMessage?: string | null; summary?: Schema$GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary; } export interface Schema$GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary { answerRecord?: string | null; baselineModelVersion?: string | null; sortedTextSections?: Schema$GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummarySummarySection[]; text?: string | null; textSections?: { [key: string]: string; } | null; } export interface Schema$GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummarySummarySection { section?: string | null; summary?: string | null; } export interface Schema$GoogleCloudDialogflowV2SuggestFaqAnswersRequest { assistQueryParams?: Schema$GoogleCloudDialogflowV2AssistQueryParameters; contextSize?: number | null; latestMessage?: string | null; } export interface Schema$GoogleCloudDialogflowV2SuggestFaqAnswersResponse { contextSize?: number | null; faqAnswers?: Schema$GoogleCloudDialogflowV2FaqAnswer[]; latestMessage?: string | null; } export interface Schema$GoogleCloudDialogflowV2SuggestionDedupingConfig { enableDeduping?: boolean | null; similarityThreshold?: number | null; } export interface Schema$GoogleCloudDialogflowV2SuggestionFeature { type?: string | null; } export interface Schema$GoogleCloudDialogflowV2SuggestionInput { action?: string | null; answerRecord?: string | null; parameters?: { [key: string]: any; } | null; sendTime?: string | null; } export interface Schema$GoogleCloudDialogflowV2SuggestionResult { error?: Schema$GoogleRpcStatus; generateSuggestionsResponse?: Schema$GoogleCloudDialogflowV2GenerateSuggestionsResponse; suggestArticlesResponse?: Schema$GoogleCloudDialogflowV2SuggestArticlesResponse; suggestFaqAnswersResponse?: Schema$GoogleCloudDialogflowV2SuggestFaqAnswersResponse; suggestKnowledgeAssistResponse?: Schema$GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse; suggestSmartRepliesResponse?: Schema$GoogleCloudDialogflowV2SuggestSmartRepliesResponse; } export interface Schema$GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest { contextSize?: number | null; latestMessage?: string | null; previousSuggestedQuery?: string | null; } export interface Schema$GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse { contextSize?: number | null; knowledgeAssistAnswer?: Schema$GoogleCloudDialogflowV2KnowledgeAssistAnswer; latestMessage?: string | null; } export interface Schema$GoogleCloudDialogflowV2SuggestSmartRepliesRequest { contextSize?: number | null; currentTextInput?: Schema$GoogleCloudDialogflowV2TextInput; latestMessage?: string | null; } export interface Schema$GoogleCloudDialogflowV2SuggestSmartRepliesResponse { contextSize?: number | null; latestMessage?: string | null; smartReplyAnswers?: Schema$GoogleCloudDialogflowV2SmartReplyAnswer[]; } export interface Schema$GoogleCloudDialogflowV2SummarizationContext { fewShotExamples?: Schema$GoogleCloudDialogflowV2FewShotExample[]; outputLanguageCode?: string | null; summarizationSections?: Schema$GoogleCloudDialogflowV2SummarizationSection[]; version?: string | null; } export interface Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetrics { conversationDetails?: Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsConversationDetail[]; overallMetrics?: Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsOverallScoresByMetric[]; overallSectionTokens?: Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsSectionToken[]; summarizationEvaluationMergedResultsUri?: string | null; summarizationEvaluationResults?: Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsSummarizationEvaluationResult[]; } export interface Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsAccuracyDecomposition { accuracyReasoning?: string | null; isAccurate?: boolean | null; point?: string | null; } export interface Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsAdherenceDecomposition { adherenceReasoning?: string | null; isAdherent?: boolean | null; point?: string | null; } export interface Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsAdherenceRubric { isAddressed?: boolean | null; question?: string | null; reasoning?: string | null; } export interface Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsCompletenessRubric { isAddressed?: boolean | null; question?: string | null; } export interface Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsConversationDetail { messageEntries?: Schema$GoogleCloudDialogflowV2MessageEntry[]; metricDetails?: Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsConversationDetailMetricDetail[]; sectionTokens?: Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsSectionToken[]; summarySections?: Schema$GoogleCloudDialogflowV2SummarySuggestionSummarySection[]; } export interface Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsConversationDetailMetricDetail { metric?: string | null; score?: number | null; sectionDetails?: Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsConversationDetailMetricDetailSectionDetail[]; } export interface Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsConversationDetailMetricDetailSectionDetail { evaluationResults?: Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsEvaluationResult[]; score?: number | null; section?: string | null; sectionSummary?: string | null; } export interface Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsDecomposition { accuracyDecomposition?: Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsAccuracyDecomposition; adherenceDecomposition?: Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsAdherenceDecomposition; } export interface Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsEvaluationResult { accuracyDecomposition?: Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsAccuracyDecomposition; adherenceRubric?: Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsAdherenceRubric; completenessRubric?: Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsCompletenessRubric; } export interface Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsOverallScoresByMetric { metric?: string | null; } export interface Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsSectionToken { section?: string | null; tokenCount?: string | null; } export interface Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsSummarizationEvaluationResult { decompositions?: Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsDecomposition[]; evaluationResults?: Schema$GoogleCloudDialogflowV2SummarizationEvaluationMetricsEvaluationResult[]; metric?: string | null; score?: number | null; section?: string | null; sectionSummary?: string | null; sessionId?: string | null; } export interface Schema$GoogleCloudDialogflowV2SummarizationSection { definition?: string | null; key?: string | null; type?: string | null; } export interface Schema$GoogleCloudDialogflowV2SummarizationSectionList { summarizationSections?: Schema$GoogleCloudDialogflowV2SummarizationSection[]; } export interface Schema$GoogleCloudDialogflowV2SummarySuggestion { summarySections?: Schema$GoogleCloudDialogflowV2SummarySuggestionSummarySection[]; } export interface Schema$GoogleCloudDialogflowV2SummarySuggestionSummarySection { section?: string | null; summary?: string | null; } export interface Schema$GoogleCloudDialogflowV2SynthesizeSpeechConfig { effectsProfileId?: string[] | null; pitch?: number | null; pronunciations?: Schema$GoogleCloudDialogflowV2CustomPronunciationParams[]; speakingRate?: number | null; voice?: Schema$GoogleCloudDialogflowV2VoiceSelectionParams; volumeGainDb?: number | null; } export interface Schema$GoogleCloudDialogflowV2TextInput { languageCode?: string | null; text?: string | null; } export interface Schema$GoogleCloudDialogflowV2TextToSpeechSettings { enableTextToSpeech?: boolean | null; outputAudioEncoding?: string | null; sampleRateHertz?: number | null; synthesizeSpeechConfigs?: { [key: string]: Schema$GoogleCloudDialogflowV2SynthesizeSpeechConfig; } | null; } export interface Schema$GoogleCloudDialogflowV2Tool { actionConfirmationRequirement?: { [key: string]: string; } | null; connectorSpec?: Schema$GoogleCloudDialogflowV2ToolConnectorTool; createTime?: string | null; description?: string | null; displayName?: string | null; extensionSpec?: Schema$GoogleCloudDialogflowV2ToolExtensionTool; functionSpec?: Schema$GoogleCloudDialogflowV2ToolFunctionTool; name?: string | null; openApiSpec?: Schema$GoogleCloudDialogflowV2ToolOpenApiTool; satisfiesPzi?: boolean | null; satisfiesPzs?: boolean | null; toolKey?: string | null; updateTime?: string | null; } export interface Schema$GoogleCloudDialogflowV2ToolAuthentication { apiKeyConfig?: Schema$GoogleCloudDialogflowV2ToolAuthenticationApiKeyConfig; bearerTokenConfig?: Schema$GoogleCloudDialogflowV2ToolAuthenticationBearerTokenConfig; oauthConfig?: Schema$GoogleCloudDialogflowV2ToolAuthenticationOAuthConfig; serviceAgentAuthConfig?: Schema$GoogleCloudDialogflowV2ToolAuthenticationServiceAgentAuthConfig; } export interface Schema$GoogleCloudDialogflowV2ToolAuthenticationApiKeyConfig { apiKey?: string | null; keyName?: string | null; requestLocation?: string | null; secretVersionForApiKey?: string | null; } export interface Schema$GoogleCloudDialogflowV2ToolAuthenticationBearerTokenConfig { secretVersionForToken?: string | null; token?: string | null; } export interface Schema$GoogleCloudDialogflowV2ToolAuthenticationOAuthConfig { clientId?: string | null; clientSecret?: string | null; oauthGrantType?: string | null; scopes?: string[] | null; secretVersionForClientSecret?: string | null; tokenEndpoint?: string | null; } export interface Schema$GoogleCloudDialogflowV2ToolAuthenticationServiceAgentAuthConfig { serviceAgentAuth?: string | null; } export interface Schema$GoogleCloudDialogflowV2ToolCall { action?: string | null; answerRecord?: string | null; createTime?: string | null; inputParameters?: { [key: string]: any; } | null; state?: string | null; tool?: string | null; toolDisplayDetails?: string | null; toolDisplayName?: string | null; } export interface Schema$GoogleCloudDialogflowV2ToolCallResult { action?: string | null; answerRecord?: string | null; content?: string | null; createTime?: string | null; error?: Schema$GoogleCloudDialogflowV2ToolCallResultError; rawContent?: string | null; tool?: string | null; } export interface Schema$GoogleCloudDialogflowV2ToolCallResultError { message?: string | null; } export interface Schema$GoogleCloudDialogflowV2ToolConnectorTool { actions?: Schema$GoogleCloudDialogflowV2ToolConnectorToolAction[]; name?: string | null; } export interface Schema$GoogleCloudDialogflowV2ToolConnectorToolAction { connectionActionId?: string | null; entityOperation?: Schema$GoogleCloudDialogflowV2ToolConnectorToolActionEntityOperation; inputFields?: string[] | null; outputFields?: string[] | null; } export interface Schema$GoogleCloudDialogflowV2ToolConnectorToolActionEntityOperation { entityId?: string | null; operation?: string | null; } export interface Schema$GoogleCloudDialogflowV2ToolExtensionTool { name?: string | null; } export interface Schema$GoogleCloudDialogflowV2ToolFunctionTool { inputSchema?: { [key: string]: any; } | null; methodType?: string | null; outputSchema?: { [key: string]: any; } | null; } export interface Schema$GoogleCloudDialogflowV2ToolOpenApiTool { authentication?: Schema$GoogleCloudDialogflowV2ToolAuthentication; serviceDirectoryConfig?: Schema$GoogleCloudDialogflowV2ToolServiceDirectoryConfig; textSchema?: string | null; tlsConfig?: Schema$GoogleCloudDialogflowV2ToolTLSConfig; } export interface Schema$GoogleCloudDialogflowV2ToolServiceDirectoryConfig { service?: string | null; } export interface Schema$GoogleCloudDialogflowV2ToolTLSConfig { caCerts?: Schema$GoogleCloudDialogflowV2ToolTLSConfigCACert[]; } export interface Schema$GoogleCloudDialogflowV2ToolTLSConfigCACert { cert?: string | null; displayName?: string | null; } export interface Schema$GoogleCloudDialogflowV2TrainAgentRequest { } export interface Schema$GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata { conversationModel?: string | null; createTime?: string | null; doneTime?: string | null; } export interface Schema$GoogleCloudDialogflowV2UndeployConversationModelRequest { } export interface Schema$GoogleCloudDialogflowV2ValidationError { entries?: string[] | null; errorMessage?: string | null; severity?: string | null; } export interface Schema$GoogleCloudDialogflowV2ValidationResult { validationErrors?: Schema$GoogleCloudDialogflowV2ValidationError[]; } export interface Schema$GoogleCloudDialogflowV2Version { createTime?: string | null; description?: string | null; name?: string | null; status?: string | null; versionNumber?: number | null; } export interface Schema$GoogleCloudDialogflowV2VoiceSelectionParams { name?: string | null; ssmlGender?: string | null; } export interface Schema$GoogleCloudDialogflowV2WebhookRequest { originalDetectIntentRequest?: Schema$GoogleCloudDialogflowV2OriginalDetectIntentRequest; queryResult?: Schema$GoogleCloudDialogflowV2QueryResult; responseId?: string | null; session?: string | null; } export interface Schema$GoogleCloudDialogflowV2WebhookResponse { followupEventInput?: Schema$GoogleCloudDialogflowV2EventInput; fulfillmentMessages?: Schema$GoogleCloudDialogflowV2IntentMessage[]; fulfillmentText?: string | null; outputContexts?: Schema$GoogleCloudDialogflowV2Context[]; payload?: { [key: string]: any; } | null; sessionEntityTypes?: Schema$GoogleCloudDialogflowV2SessionEntityType[]; source?: string | null; } export interface Schema$GoogleCloudDialogflowV3alpha1ConversationSignals { turnSignals?: Schema$GoogleCloudDialogflowV3alpha1TurnSignals; } export interface Schema$GoogleCloudDialogflowV3alpha1TurnSignals { agentEscalated?: boolean | null; dtmfUsed?: boolean | null; failureReasons?: string[] | null; noMatch?: boolean | null; noUserInput?: boolean | null; reachedEndPage?: boolean | null; sentimentMagnitude?: number | null; sentimentScore?: number | null; triggeredAbandonmentEvent?: boolean | null; userEscalated?: boolean | null; webhookStatuses?: string[] | null; } export interface Schema$GoogleCloudLocationListLocationsResponse { locations?: Schema$GoogleCloudLocationLocation[]; nextPageToken?: string | null; } export interface Schema$GoogleCloudLocationLocation { displayName?: string | null; labels?: { [key: string]: string; } | null; locationId?: string | null; metadata?: { [key: string]: any; } | null; name?: string | null; } export interface Schema$GoogleLongrunningListOperationsResponse { nextPageToken?: string | null; operations?: Schema$GoogleLongrunningOperation[]; unreachable?: string[] | null; } export interface Schema$GoogleLongrunningOperation { done?: boolean | null; error?: Schema$GoogleRpcStatus; metadata?: { [key: string]: any; } | null; name?: string | null; response?: { [key: string]: any; } | null; } export interface Schema$GoogleProtobufEmpty { } export interface Schema$GoogleRpcStatus { code?: number | null; details?: Array<{ [key: string]: any; }> | null; message?: string | null; } export interface Schema$GoogleTypeLatLng { latitude?: number | null; longitude?: number | null; } export class Resource$Projects { context: APIRequestContext; agent: Resource$Projects$Agent; answerRecords: Resource$Projects$Answerrecords; conversationDatasets: Resource$Projects$Conversationdatasets; conversationModels: Resource$Projects$Conversationmodels; conversationProfiles: Resource$Projects$Conversationprofiles; conversations: Resource$Projects$Conversations; generators: Resource$Projects$Generators; knowledgeBases: Resource$Projects$Knowledgebases; locations: Resource$Projects$Locations; operations: Resource$Projects$Operations; suggestions: Resource$Projects$Suggestions; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.deleteAgent({ * parent: 'projects/my-project', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ deleteAgent(params: Params$Resource$Projects$Deleteagent, options: StreamMethodOptions): Promise>; deleteAgent(params?: Params$Resource$Projects$Deleteagent, options?: MethodOptions): Promise>; deleteAgent(params: Params$Resource$Projects$Deleteagent, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; deleteAgent(params: Params$Resource$Projects$Deleteagent, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; deleteAgent(params: Params$Resource$Projects$Deleteagent, callback: BodyResponseCallback): void; deleteAgent(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.getAgent({ * parent: 'projects/my-project', * }); * console.log(res.data); * * // Example response * // { * // "apiVersion": "my_apiVersion", * // "avatarUri": "my_avatarUri", * // "classificationThreshold": {}, * // "defaultLanguageCode": "my_defaultLanguageCode", * // "description": "my_description", * // "displayName": "my_displayName", * // "enableLogging": false, * // "matchMode": "my_matchMode", * // "parent": "my_parent", * // "supportedLanguageCodes": [], * // "tier": "my_tier", * // "timeZone": "my_timeZone" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ getAgent(params: Params$Resource$Projects$Getagent, options: StreamMethodOptions): Promise>; getAgent(params?: Params$Resource$Projects$Getagent, options?: MethodOptions): Promise>; getAgent(params: Params$Resource$Projects$Getagent, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; getAgent(params: Params$Resource$Projects$Getagent, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; getAgent(params: Params$Resource$Projects$Getagent, callback: BodyResponseCallback): void; getAgent(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.setAgent({ * parent: 'projects/my-project', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "apiVersion": "my_apiVersion", * // "avatarUri": "my_avatarUri", * // "classificationThreshold": {}, * // "defaultLanguageCode": "my_defaultLanguageCode", * // "description": "my_description", * // "displayName": "my_displayName", * // "enableLogging": false, * // "matchMode": "my_matchMode", * // "parent": "my_parent", * // "supportedLanguageCodes": [], * // "tier": "my_tier", * // "timeZone": "my_timeZone" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "apiVersion": "my_apiVersion", * // "avatarUri": "my_avatarUri", * // "classificationThreshold": {}, * // "defaultLanguageCode": "my_defaultLanguageCode", * // "description": "my_description", * // "displayName": "my_displayName", * // "enableLogging": false, * // "matchMode": "my_matchMode", * // "parent": "my_parent", * // "supportedLanguageCodes": [], * // "tier": "my_tier", * // "timeZone": "my_timeZone" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ setAgent(params: Params$Resource$Projects$Setagent, options: StreamMethodOptions): Promise>; setAgent(params?: Params$Resource$Projects$Setagent, options?: MethodOptions): Promise>; setAgent(params: Params$Resource$Projects$Setagent, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; setAgent(params: Params$Resource$Projects$Setagent, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; setAgent(params: Params$Resource$Projects$Setagent, callback: BodyResponseCallback): void; setAgent(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Deleteagent extends StandardParameters { /** * */ parent?: string; } export interface Params$Resource$Projects$Getagent extends StandardParameters { /** * */ parent?: string; } export interface Params$Resource$Projects$Setagent extends StandardParameters { /** * */ parent?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Agent; } export class Resource$Projects$Agent { context: APIRequestContext; entityTypes: Resource$Projects$Agent$Entitytypes; environments: Resource$Projects$Agent$Environments; intents: Resource$Projects$Agent$Intents; knowledgeBases: Resource$Projects$Agent$Knowledgebases; sessions: Resource$Projects$Agent$Sessions; versions: Resource$Projects$Agent$Versions; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.export({ * parent: 'projects/my-project', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentUri": "my_agentUri" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ export(params: Params$Resource$Projects$Agent$Export, options: StreamMethodOptions): Promise>; export(params?: Params$Resource$Projects$Agent$Export, options?: MethodOptions): Promise>; export(params: Params$Resource$Projects$Agent$Export, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; export(params: Params$Resource$Projects$Agent$Export, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; export(params: Params$Resource$Projects$Agent$Export, callback: BodyResponseCallback): void; export(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.getFulfillment({ * name: 'projects/my-project/agent/fulfillment', * }); * console.log(res.data); * * // Example response * // { * // "displayName": "my_displayName", * // "enabled": false, * // "features": [], * // "genericWebService": {}, * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ getFulfillment(params: Params$Resource$Projects$Agent$Getfulfillment, options: StreamMethodOptions): Promise>; getFulfillment(params?: Params$Resource$Projects$Agent$Getfulfillment, options?: MethodOptions): Promise>; getFulfillment(params: Params$Resource$Projects$Agent$Getfulfillment, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; getFulfillment(params: Params$Resource$Projects$Agent$Getfulfillment, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; getFulfillment(params: Params$Resource$Projects$Agent$Getfulfillment, callback: BodyResponseCallback): void; getFulfillment(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.getValidationResult({ * languageCode: 'placeholder-value', * * parent: 'projects/my-project', * }); * console.log(res.data); * * // Example response * // { * // "validationErrors": [] * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ getValidationResult(params: Params$Resource$Projects$Agent$Getvalidationresult, options: StreamMethodOptions): Promise>; getValidationResult(params?: Params$Resource$Projects$Agent$Getvalidationresult, options?: MethodOptions): Promise>; getValidationResult(params: Params$Resource$Projects$Agent$Getvalidationresult, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; getValidationResult(params: Params$Resource$Projects$Agent$Getvalidationresult, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; getValidationResult(params: Params$Resource$Projects$Agent$Getvalidationresult, callback: BodyResponseCallback): void; getValidationResult(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.import({ * parent: 'projects/my-project', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentContent": "my_agentContent", * // "agentUri": "my_agentUri" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ import(params: Params$Resource$Projects$Agent$Import, options: StreamMethodOptions): Promise>; import(params?: Params$Resource$Projects$Agent$Import, options?: MethodOptions): Promise>; import(params: Params$Resource$Projects$Agent$Import, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; import(params: Params$Resource$Projects$Agent$Import, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; import(params: Params$Resource$Projects$Agent$Import, callback: BodyResponseCallback): void; import(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.restore({ * parent: 'projects/my-project', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentContent": "my_agentContent", * // "agentUri": "my_agentUri" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ restore(params: Params$Resource$Projects$Agent$Restore, options: StreamMethodOptions): Promise>; restore(params?: Params$Resource$Projects$Agent$Restore, options?: MethodOptions): Promise>; restore(params: Params$Resource$Projects$Agent$Restore, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; restore(params: Params$Resource$Projects$Agent$Restore, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; restore(params: Params$Resource$Projects$Agent$Restore, callback: BodyResponseCallback): void; restore(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.search({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project', * }); * console.log(res.data); * * // Example response * // { * // "agents": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ search(params: Params$Resource$Projects$Agent$Search, options: StreamMethodOptions): Promise>; search(params?: Params$Resource$Projects$Agent$Search, options?: MethodOptions): Promise>; search(params: Params$Resource$Projects$Agent$Search, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; search(params: Params$Resource$Projects$Agent$Search, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; search(params: Params$Resource$Projects$Agent$Search, callback: BodyResponseCallback): void; search(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.train({ * parent: 'projects/my-project', * * // Request body metadata * requestBody: { * // request body parameters * // {} * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ train(params: Params$Resource$Projects$Agent$Train, options: StreamMethodOptions): Promise>; train(params?: Params$Resource$Projects$Agent$Train, options?: MethodOptions): Promise>; train(params: Params$Resource$Projects$Agent$Train, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; train(params: Params$Resource$Projects$Agent$Train, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; train(params: Params$Resource$Projects$Agent$Train, callback: BodyResponseCallback): void; train(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.updateFulfillment({ * name: 'projects/my-project/agent/fulfillment', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "displayName": "my_displayName", * // "enabled": false, * // "features": [], * // "genericWebService": {}, * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "displayName": "my_displayName", * // "enabled": false, * // "features": [], * // "genericWebService": {}, * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ updateFulfillment(params: Params$Resource$Projects$Agent$Updatefulfillment, options: StreamMethodOptions): Promise>; updateFulfillment(params?: Params$Resource$Projects$Agent$Updatefulfillment, options?: MethodOptions): Promise>; updateFulfillment(params: Params$Resource$Projects$Agent$Updatefulfillment, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; updateFulfillment(params: Params$Resource$Projects$Agent$Updatefulfillment, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; updateFulfillment(params: Params$Resource$Projects$Agent$Updatefulfillment, callback: BodyResponseCallback): void; updateFulfillment(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Agent$Export extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ExportAgentRequest; } export interface Params$Resource$Projects$Agent$Getfulfillment extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Getvalidationresult extends StandardParameters { /** * */ languageCode?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Agent$Import extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ImportAgentRequest; } export interface Params$Resource$Projects$Agent$Restore extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2RestoreAgentRequest; } export interface Params$Resource$Projects$Agent$Search extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Agent$Train extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2TrainAgentRequest; } export interface Params$Resource$Projects$Agent$Updatefulfillment extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Fulfillment; } export class Resource$Projects$Agent$Entitytypes { context: APIRequestContext; entities: Resource$Projects$Agent$Entitytypes$Entities; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.entityTypes.batchDelete({ * parent: 'projects/my-project/agent', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "entityTypeNames": [] * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ batchDelete(params: Params$Resource$Projects$Agent$Entitytypes$Batchdelete, options: StreamMethodOptions): Promise>; batchDelete(params?: Params$Resource$Projects$Agent$Entitytypes$Batchdelete, options?: MethodOptions): Promise>; batchDelete(params: Params$Resource$Projects$Agent$Entitytypes$Batchdelete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchDelete(params: Params$Resource$Projects$Agent$Entitytypes$Batchdelete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchDelete(params: Params$Resource$Projects$Agent$Entitytypes$Batchdelete, callback: BodyResponseCallback): void; batchDelete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.entityTypes.batchUpdate({ * parent: 'projects/my-project/agent', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "entityTypeBatchInline": {}, * // "entityTypeBatchUri": "my_entityTypeBatchUri", * // "languageCode": "my_languageCode", * // "updateMask": "my_updateMask" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ batchUpdate(params: Params$Resource$Projects$Agent$Entitytypes$Batchupdate, options: StreamMethodOptions): Promise>; batchUpdate(params?: Params$Resource$Projects$Agent$Entitytypes$Batchupdate, options?: MethodOptions): Promise>; batchUpdate(params: Params$Resource$Projects$Agent$Entitytypes$Batchupdate, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchUpdate(params: Params$Resource$Projects$Agent$Entitytypes$Batchupdate, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchUpdate(params: Params$Resource$Projects$Agent$Entitytypes$Batchupdate, callback: BodyResponseCallback): void; batchUpdate(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.entityTypes.create({ * languageCode: 'placeholder-value', * * parent: 'projects/my-project/agent', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "autoExpansionMode": "my_autoExpansionMode", * // "displayName": "my_displayName", * // "enableFuzzyExtraction": false, * // "entities": [], * // "kind": "my_kind", * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "autoExpansionMode": "my_autoExpansionMode", * // "displayName": "my_displayName", * // "enableFuzzyExtraction": false, * // "entities": [], * // "kind": "my_kind", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Agent$Entitytypes$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Agent$Entitytypes$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Agent$Entitytypes$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Entitytypes$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Entitytypes$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.entityTypes.delete({ * name: 'projects/my-project/agent/entityTypes/my-entityType', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Agent$Entitytypes$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Agent$Entitytypes$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Agent$Entitytypes$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Entitytypes$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Entitytypes$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.entityTypes.get({ * languageCode: 'placeholder-value', * * name: 'projects/my-project/agent/entityTypes/my-entityType', * }); * console.log(res.data); * * // Example response * // { * // "autoExpansionMode": "my_autoExpansionMode", * // "displayName": "my_displayName", * // "enableFuzzyExtraction": false, * // "entities": [], * // "kind": "my_kind", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Agent$Entitytypes$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Agent$Entitytypes$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Agent$Entitytypes$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Entitytypes$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Entitytypes$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.entityTypes.list({ * languageCode: 'placeholder-value', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/agent', * }); * console.log(res.data); * * // Example response * // { * // "entityTypes": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Agent$Entitytypes$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Agent$Entitytypes$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Agent$Entitytypes$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Entitytypes$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Entitytypes$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.entityTypes.patch({ * languageCode: 'placeholder-value', * * name: 'projects/my-project/agent/entityTypes/my-entityType', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "autoExpansionMode": "my_autoExpansionMode", * // "displayName": "my_displayName", * // "enableFuzzyExtraction": false, * // "entities": [], * // "kind": "my_kind", * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "autoExpansionMode": "my_autoExpansionMode", * // "displayName": "my_displayName", * // "enableFuzzyExtraction": false, * // "entities": [], * // "kind": "my_kind", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Agent$Entitytypes$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Agent$Entitytypes$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Agent$Entitytypes$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Entitytypes$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Entitytypes$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Agent$Entitytypes$Batchdelete extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest; } export interface Params$Resource$Projects$Agent$Entitytypes$Batchupdate extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest; } export interface Params$Resource$Projects$Agent$Entitytypes$Create extends StandardParameters { /** * */ languageCode?: string; /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2EntityType; } export interface Params$Resource$Projects$Agent$Entitytypes$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Entitytypes$Get extends StandardParameters { /** * */ languageCode?: string; /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Entitytypes$List extends StandardParameters { /** * */ languageCode?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Agent$Entitytypes$Patch extends StandardParameters { /** * */ languageCode?: string; /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2EntityType; } export class Resource$Projects$Agent$Entitytypes$Entities { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.entityTypes.entities.batchCreate({ * parent: 'projects/my-project/agent/entityTypes/my-entityType', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "entities": [], * // "languageCode": "my_languageCode" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ batchCreate(params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchcreate, options: StreamMethodOptions): Promise>; batchCreate(params?: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchcreate, options?: MethodOptions): Promise>; batchCreate(params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchcreate, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchCreate(params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchcreate, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchCreate(params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchcreate, callback: BodyResponseCallback): void; batchCreate(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.entityTypes.entities.batchDelete({ * parent: 'projects/my-project/agent/entityTypes/my-entityType', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "entityValues": [], * // "languageCode": "my_languageCode" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ batchDelete(params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchdelete, options: StreamMethodOptions): Promise>; batchDelete(params?: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchdelete, options?: MethodOptions): Promise>; batchDelete(params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchdelete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchDelete(params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchdelete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchDelete(params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchdelete, callback: BodyResponseCallback): void; batchDelete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.entityTypes.entities.batchUpdate({ * parent: 'projects/my-project/agent/entityTypes/my-entityType', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "entities": [], * // "languageCode": "my_languageCode", * // "updateMask": "my_updateMask" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ batchUpdate(params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchupdate, options: StreamMethodOptions): Promise>; batchUpdate(params?: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchupdate, options?: MethodOptions): Promise>; batchUpdate(params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchupdate, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchUpdate(params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchupdate, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchUpdate(params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchupdate, callback: BodyResponseCallback): void; batchUpdate(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Agent$Entitytypes$Entities$Batchcreate extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2BatchCreateEntitiesRequest; } export interface Params$Resource$Projects$Agent$Entitytypes$Entities$Batchdelete extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2BatchDeleteEntitiesRequest; } export interface Params$Resource$Projects$Agent$Entitytypes$Entities$Batchupdate extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2BatchUpdateEntitiesRequest; } export class Resource$Projects$Agent$Environments { context: APIRequestContext; intents: Resource$Projects$Agent$Environments$Intents; users: Resource$Projects$Agent$Environments$Users; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.environments.create({ * environmentId: 'placeholder-value', * * parent: 'projects/my-project/agent', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentVersion": "my_agentVersion", * // "description": "my_description", * // "fulfillment": {}, * // "name": "my_name", * // "state": "my_state", * // "textToSpeechSettings": {}, * // "updateTime": "my_updateTime" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "agentVersion": "my_agentVersion", * // "description": "my_description", * // "fulfillment": {}, * // "name": "my_name", * // "state": "my_state", * // "textToSpeechSettings": {}, * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Agent$Environments$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Agent$Environments$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Agent$Environments$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Environments$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Environments$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.environments.delete({ * name: 'projects/my-project/agent/environments/my-environment', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Agent$Environments$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Agent$Environments$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Agent$Environments$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Environments$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Environments$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.environments.get({ * name: 'projects/my-project/agent/environments/my-environment', * }); * console.log(res.data); * * // Example response * // { * // "agentVersion": "my_agentVersion", * // "description": "my_description", * // "fulfillment": {}, * // "name": "my_name", * // "state": "my_state", * // "textToSpeechSettings": {}, * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Agent$Environments$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Agent$Environments$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Agent$Environments$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Environments$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Environments$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.environments.getHistory({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/agent/environments/my-environment', * }); * console.log(res.data); * * // Example response * // { * // "entries": [], * // "nextPageToken": "my_nextPageToken", * // "parent": "my_parent" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ getHistory(params: Params$Resource$Projects$Agent$Environments$Gethistory, options: StreamMethodOptions): Promise>; getHistory(params?: Params$Resource$Projects$Agent$Environments$Gethistory, options?: MethodOptions): Promise>; getHistory(params: Params$Resource$Projects$Agent$Environments$Gethistory, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; getHistory(params: Params$Resource$Projects$Agent$Environments$Gethistory, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; getHistory(params: Params$Resource$Projects$Agent$Environments$Gethistory, callback: BodyResponseCallback): void; getHistory(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.environments.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/agent', * }); * console.log(res.data); * * // Example response * // { * // "environments": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Agent$Environments$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Agent$Environments$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Agent$Environments$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Environments$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Environments$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.environments.patch({ * allowLoadToDraftAndDiscardChanges: 'placeholder-value', * * name: 'projects/my-project/agent/environments/my-environment', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentVersion": "my_agentVersion", * // "description": "my_description", * // "fulfillment": {}, * // "name": "my_name", * // "state": "my_state", * // "textToSpeechSettings": {}, * // "updateTime": "my_updateTime" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "agentVersion": "my_agentVersion", * // "description": "my_description", * // "fulfillment": {}, * // "name": "my_name", * // "state": "my_state", * // "textToSpeechSettings": {}, * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Agent$Environments$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Agent$Environments$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Agent$Environments$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Environments$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Environments$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Agent$Environments$Create extends StandardParameters { /** * */ environmentId?: string; /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Environment; } export interface Params$Resource$Projects$Agent$Environments$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Environments$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Environments$Gethistory extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Agent$Environments$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Agent$Environments$Patch extends StandardParameters { /** * */ allowLoadToDraftAndDiscardChanges?: boolean; /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Environment; } export class Resource$Projects$Agent$Environments$Intents { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.environments.intents.list({ * intentView: 'placeholder-value', * * languageCode: 'placeholder-value', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/agent/environments/my-environment', * }); * console.log(res.data); * * // Example response * // { * // "intents": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Agent$Environments$Intents$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Agent$Environments$Intents$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Agent$Environments$Intents$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Environments$Intents$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Environments$Intents$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Agent$Environments$Intents$List extends StandardParameters { /** * */ intentView?: string; /** * */ languageCode?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export class Resource$Projects$Agent$Environments$Users { context: APIRequestContext; sessions: Resource$Projects$Agent$Environments$Users$Sessions; constructor(context: APIRequestContext); } export class Resource$Projects$Agent$Environments$Users$Sessions { context: APIRequestContext; contexts: Resource$Projects$Agent$Environments$Users$Sessions$Contexts; entityTypes: Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.agent.environments.users.sessions.deleteContexts({ * parent: * 'projects/my-project/agent/environments/my-environment/users/my-user/sessions/my-session', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ deleteContexts(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Deletecontexts, options: StreamMethodOptions): Promise>; deleteContexts(params?: Params$Resource$Projects$Agent$Environments$Users$Sessions$Deletecontexts, options?: MethodOptions): Promise>; deleteContexts(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Deletecontexts, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; deleteContexts(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Deletecontexts, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; deleteContexts(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Deletecontexts, callback: BodyResponseCallback): void; deleteContexts(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.agent.environments.users.sessions.detectIntent({ * session: * 'projects/my-project/agent/environments/my-environment/users/my-user/sessions/my-session', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "inputAudio": "my_inputAudio", * // "outputAudioConfig": {}, * // "outputAudioConfigMask": "my_outputAudioConfigMask", * // "queryInput": {}, * // "queryParams": {} * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "outputAudio": "my_outputAudio", * // "outputAudioConfig": {}, * // "queryResult": {}, * // "responseId": "my_responseId", * // "webhookStatus": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ detectIntent(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Detectintent, options: StreamMethodOptions): Promise>; detectIntent(params?: Params$Resource$Projects$Agent$Environments$Users$Sessions$Detectintent, options?: MethodOptions): Promise>; detectIntent(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Detectintent, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; detectIntent(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Detectintent, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; detectIntent(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Detectintent, callback: BodyResponseCallback): void; detectIntent(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Deletecontexts extends StandardParameters { /** * */ parent?: string; } export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Detectintent extends StandardParameters { /** * */ session?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2DetectIntentRequest; } export class Resource$Projects$Agent$Environments$Users$Sessions$Contexts { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.agent.environments.users.sessions.contexts.create( * { * parent: * 'projects/my-project/agent/environments/my-environment/users/my-user/sessions/my-session', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.agent.environments.users.sessions.contexts.delete( * { * name: 'projects/my-project/agent/environments/my-environment/users/my-user/sessions/my-session/contexts/my-context', * }, * ); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.agent.environments.users.sessions.contexts.get({ * name: 'projects/my-project/agent/environments/my-environment/users/my-user/sessions/my-session/contexts/my-context', * }); * console.log(res.data); * * // Example response * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.agent.environments.users.sessions.contexts.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: * 'projects/my-project/agent/environments/my-environment/users/my-user/sessions/my-session', * }); * console.log(res.data); * * // Example response * // { * // "contexts": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.agent.environments.users.sessions.contexts.patch({ * name: 'projects/my-project/agent/environments/my-environment/users/my-user/sessions/my-session/contexts/my-context', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Context; } export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Context; } export class Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.agent.environments.users.sessions.entityTypes.create( * { * parent: * 'projects/my-project/agent/environments/my-environment/users/my-user/sessions/my-session', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.agent.environments.users.sessions.entityTypes.delete( * { * name: 'projects/my-project/agent/environments/my-environment/users/my-user/sessions/my-session/entityTypes/my-entityType', * }, * ); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.agent.environments.users.sessions.entityTypes.get( * { * name: 'projects/my-project/agent/environments/my-environment/users/my-user/sessions/my-session/entityTypes/my-entityType', * }, * ); * console.log(res.data); * * // Example response * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.agent.environments.users.sessions.entityTypes.list( * { * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: * 'projects/my-project/agent/environments/my-environment/users/my-user/sessions/my-session', * }, * ); * console.log(res.data); * * // Example response * // { * // "nextPageToken": "my_nextPageToken", * // "sessionEntityTypes": [] * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.agent.environments.users.sessions.entityTypes.patch( * { * name: 'projects/my-project/agent/environments/my-environment/users/my-user/sessions/my-session/entityTypes/my-entityType', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SessionEntityType; } export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SessionEntityType; } export class Resource$Projects$Agent$Intents { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.intents.batchDelete({ * parent: 'projects/my-project/agent', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "intents": [] * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ batchDelete(params: Params$Resource$Projects$Agent$Intents$Batchdelete, options: StreamMethodOptions): Promise>; batchDelete(params?: Params$Resource$Projects$Agent$Intents$Batchdelete, options?: MethodOptions): Promise>; batchDelete(params: Params$Resource$Projects$Agent$Intents$Batchdelete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchDelete(params: Params$Resource$Projects$Agent$Intents$Batchdelete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchDelete(params: Params$Resource$Projects$Agent$Intents$Batchdelete, callback: BodyResponseCallback): void; batchDelete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.intents.batchUpdate({ * parent: 'projects/my-project/agent', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "intentBatchInline": {}, * // "intentBatchUri": "my_intentBatchUri", * // "intentView": "my_intentView", * // "languageCode": "my_languageCode", * // "updateMask": "my_updateMask" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ batchUpdate(params: Params$Resource$Projects$Agent$Intents$Batchupdate, options: StreamMethodOptions): Promise>; batchUpdate(params?: Params$Resource$Projects$Agent$Intents$Batchupdate, options?: MethodOptions): Promise>; batchUpdate(params: Params$Resource$Projects$Agent$Intents$Batchupdate, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchUpdate(params: Params$Resource$Projects$Agent$Intents$Batchupdate, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchUpdate(params: Params$Resource$Projects$Agent$Intents$Batchupdate, callback: BodyResponseCallback): void; batchUpdate(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.intents.create({ * intentView: 'placeholder-value', * * languageCode: 'placeholder-value', * * parent: 'projects/my-project/agent', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "action": "my_action", * // "defaultResponsePlatforms": [], * // "displayName": "my_displayName", * // "endInteraction": false, * // "events": [], * // "followupIntentInfo": [], * // "inputContextNames": [], * // "isFallback": false, * // "liveAgentHandoff": false, * // "messages": [], * // "mlDisabled": false, * // "name": "my_name", * // "outputContexts": [], * // "parameters": [], * // "parentFollowupIntentName": "my_parentFollowupIntentName", * // "priority": 0, * // "resetContexts": false, * // "rootFollowupIntentName": "my_rootFollowupIntentName", * // "trainingPhrases": [], * // "webhookState": "my_webhookState" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "action": "my_action", * // "defaultResponsePlatforms": [], * // "displayName": "my_displayName", * // "endInteraction": false, * // "events": [], * // "followupIntentInfo": [], * // "inputContextNames": [], * // "isFallback": false, * // "liveAgentHandoff": false, * // "messages": [], * // "mlDisabled": false, * // "name": "my_name", * // "outputContexts": [], * // "parameters": [], * // "parentFollowupIntentName": "my_parentFollowupIntentName", * // "priority": 0, * // "resetContexts": false, * // "rootFollowupIntentName": "my_rootFollowupIntentName", * // "trainingPhrases": [], * // "webhookState": "my_webhookState" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Agent$Intents$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Agent$Intents$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Agent$Intents$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Intents$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Intents$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.intents.delete({ * name: 'projects/my-project/agent/intents/my-intent', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Agent$Intents$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Agent$Intents$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Agent$Intents$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Intents$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Intents$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.intents.get({ * intentView: 'placeholder-value', * * languageCode: 'placeholder-value', * * name: 'projects/my-project/agent/intents/my-intent', * }); * console.log(res.data); * * // Example response * // { * // "action": "my_action", * // "defaultResponsePlatforms": [], * // "displayName": "my_displayName", * // "endInteraction": false, * // "events": [], * // "followupIntentInfo": [], * // "inputContextNames": [], * // "isFallback": false, * // "liveAgentHandoff": false, * // "messages": [], * // "mlDisabled": false, * // "name": "my_name", * // "outputContexts": [], * // "parameters": [], * // "parentFollowupIntentName": "my_parentFollowupIntentName", * // "priority": 0, * // "resetContexts": false, * // "rootFollowupIntentName": "my_rootFollowupIntentName", * // "trainingPhrases": [], * // "webhookState": "my_webhookState" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Agent$Intents$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Agent$Intents$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Agent$Intents$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Intents$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Intents$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.intents.list({ * intentView: 'placeholder-value', * * languageCode: 'placeholder-value', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/agent', * }); * console.log(res.data); * * // Example response * // { * // "intents": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Agent$Intents$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Agent$Intents$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Agent$Intents$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Intents$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Intents$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.intents.patch({ * intentView: 'placeholder-value', * * languageCode: 'placeholder-value', * * name: 'projects/my-project/agent/intents/my-intent', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "action": "my_action", * // "defaultResponsePlatforms": [], * // "displayName": "my_displayName", * // "endInteraction": false, * // "events": [], * // "followupIntentInfo": [], * // "inputContextNames": [], * // "isFallback": false, * // "liveAgentHandoff": false, * // "messages": [], * // "mlDisabled": false, * // "name": "my_name", * // "outputContexts": [], * // "parameters": [], * // "parentFollowupIntentName": "my_parentFollowupIntentName", * // "priority": 0, * // "resetContexts": false, * // "rootFollowupIntentName": "my_rootFollowupIntentName", * // "trainingPhrases": [], * // "webhookState": "my_webhookState" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "action": "my_action", * // "defaultResponsePlatforms": [], * // "displayName": "my_displayName", * // "endInteraction": false, * // "events": [], * // "followupIntentInfo": [], * // "inputContextNames": [], * // "isFallback": false, * // "liveAgentHandoff": false, * // "messages": [], * // "mlDisabled": false, * // "name": "my_name", * // "outputContexts": [], * // "parameters": [], * // "parentFollowupIntentName": "my_parentFollowupIntentName", * // "priority": 0, * // "resetContexts": false, * // "rootFollowupIntentName": "my_rootFollowupIntentName", * // "trainingPhrases": [], * // "webhookState": "my_webhookState" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Agent$Intents$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Agent$Intents$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Agent$Intents$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Intents$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Intents$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Agent$Intents$Batchdelete extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2BatchDeleteIntentsRequest; } export interface Params$Resource$Projects$Agent$Intents$Batchupdate extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2BatchUpdateIntentsRequest; } export interface Params$Resource$Projects$Agent$Intents$Create extends StandardParameters { /** * */ intentView?: string; /** * */ languageCode?: string; /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Intent; } export interface Params$Resource$Projects$Agent$Intents$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Intents$Get extends StandardParameters { /** * */ intentView?: string; /** * */ languageCode?: string; /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Intents$List extends StandardParameters { /** * */ intentView?: string; /** * */ languageCode?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Agent$Intents$Patch extends StandardParameters { /** * */ intentView?: string; /** * */ languageCode?: string; /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Intent; } export class Resource$Projects$Agent$Knowledgebases { context: APIRequestContext; documents: Resource$Projects$Agent$Knowledgebases$Documents; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.knowledgeBases.create({ * parent: 'projects/my-project/agent', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Agent$Knowledgebases$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Agent$Knowledgebases$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Agent$Knowledgebases$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Knowledgebases$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Knowledgebases$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.knowledgeBases.delete({ * force: 'placeholder-value', * * name: 'projects/my-project/agent/knowledgeBases/my-knowledgeBase', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Agent$Knowledgebases$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Agent$Knowledgebases$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Agent$Knowledgebases$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Knowledgebases$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Knowledgebases$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.knowledgeBases.get({ * name: 'projects/my-project/agent/knowledgeBases/my-knowledgeBase', * }); * console.log(res.data); * * // Example response * // { * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Agent$Knowledgebases$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Agent$Knowledgebases$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Agent$Knowledgebases$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Knowledgebases$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Knowledgebases$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.knowledgeBases.list({ * filter: 'placeholder-value', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/agent', * }); * console.log(res.data); * * // Example response * // { * // "knowledgeBases": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Agent$Knowledgebases$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Agent$Knowledgebases$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Agent$Knowledgebases$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Knowledgebases$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Knowledgebases$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.knowledgeBases.patch({ * name: 'projects/my-project/agent/knowledgeBases/my-knowledgeBase', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Agent$Knowledgebases$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Agent$Knowledgebases$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Agent$Knowledgebases$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Knowledgebases$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Knowledgebases$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Agent$Knowledgebases$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2KnowledgeBase; } export interface Params$Resource$Projects$Agent$Knowledgebases$Delete extends StandardParameters { /** * */ force?: boolean; /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Knowledgebases$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Knowledgebases$List extends StandardParameters { /** * */ filter?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Agent$Knowledgebases$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2KnowledgeBase; } export class Resource$Projects$Agent$Knowledgebases$Documents { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.knowledgeBases.documents.create({ * parent: 'projects/my-project/agent/knowledgeBases/my-knowledgeBase', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "contentUri": "my_contentUri", * // "displayName": "my_displayName", * // "enableAutoReload": false, * // "knowledgeTypes": [], * // "latestReloadStatus": {}, * // "metadata": {}, * // "mimeType": "my_mimeType", * // "name": "my_name", * // "rawContent": "my_rawContent", * // "state": "my_state" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Agent$Knowledgebases$Documents$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.knowledgeBases.documents.delete({ * name: 'projects/my-project/agent/knowledgeBases/my-knowledgeBase/documents/my-document', * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Agent$Knowledgebases$Documents$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.knowledgeBases.documents.get({ * name: 'projects/my-project/agent/knowledgeBases/my-knowledgeBase/documents/my-document', * }); * console.log(res.data); * * // Example response * // { * // "contentUri": "my_contentUri", * // "displayName": "my_displayName", * // "enableAutoReload": false, * // "knowledgeTypes": [], * // "latestReloadStatus": {}, * // "metadata": {}, * // "mimeType": "my_mimeType", * // "name": "my_name", * // "rawContent": "my_rawContent", * // "state": "my_state" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Agent$Knowledgebases$Documents$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.knowledgeBases.documents.list({ * filter: 'placeholder-value', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/agent/knowledgeBases/my-knowledgeBase', * }); * console.log(res.data); * * // Example response * // { * // "documents": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Agent$Knowledgebases$Documents$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.knowledgeBases.documents.patch({ * name: 'projects/my-project/agent/knowledgeBases/my-knowledgeBase/documents/my-document', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "contentUri": "my_contentUri", * // "displayName": "my_displayName", * // "enableAutoReload": false, * // "knowledgeTypes": [], * // "latestReloadStatus": {}, * // "metadata": {}, * // "mimeType": "my_mimeType", * // "name": "my_name", * // "rawContent": "my_rawContent", * // "state": "my_state" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Agent$Knowledgebases$Documents$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.knowledgeBases.documents.reload({ * name: 'projects/my-project/agent/knowledgeBases/my-knowledgeBase/documents/my-document', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "contentUri": "my_contentUri", * // "importGcsCustomMetadata": false, * // "smartMessagingPartialUpdate": false * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ reload(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Reload, options: StreamMethodOptions): Promise>; reload(params?: Params$Resource$Projects$Agent$Knowledgebases$Documents$Reload, options?: MethodOptions): Promise>; reload(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Reload, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; reload(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Reload, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; reload(params: Params$Resource$Projects$Agent$Knowledgebases$Documents$Reload, callback: BodyResponseCallback): void; reload(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Agent$Knowledgebases$Documents$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Document; } export interface Params$Resource$Projects$Agent$Knowledgebases$Documents$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Knowledgebases$Documents$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Knowledgebases$Documents$List extends StandardParameters { /** * */ filter?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Agent$Knowledgebases$Documents$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Document; } export interface Params$Resource$Projects$Agent$Knowledgebases$Documents$Reload extends StandardParameters { /** * */ name?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ReloadDocumentRequest; } export class Resource$Projects$Agent$Sessions { context: APIRequestContext; contexts: Resource$Projects$Agent$Sessions$Contexts; entityTypes: Resource$Projects$Agent$Sessions$Entitytypes; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.sessions.deleteContexts({ * parent: 'projects/my-project/agent/sessions/my-session', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ deleteContexts(params: Params$Resource$Projects$Agent$Sessions$Deletecontexts, options: StreamMethodOptions): Promise>; deleteContexts(params?: Params$Resource$Projects$Agent$Sessions$Deletecontexts, options?: MethodOptions): Promise>; deleteContexts(params: Params$Resource$Projects$Agent$Sessions$Deletecontexts, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; deleteContexts(params: Params$Resource$Projects$Agent$Sessions$Deletecontexts, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; deleteContexts(params: Params$Resource$Projects$Agent$Sessions$Deletecontexts, callback: BodyResponseCallback): void; deleteContexts(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.sessions.detectIntent({ * session: 'projects/my-project/agent/sessions/my-session', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "inputAudio": "my_inputAudio", * // "outputAudioConfig": {}, * // "outputAudioConfigMask": "my_outputAudioConfigMask", * // "queryInput": {}, * // "queryParams": {} * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "outputAudio": "my_outputAudio", * // "outputAudioConfig": {}, * // "queryResult": {}, * // "responseId": "my_responseId", * // "webhookStatus": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ detectIntent(params: Params$Resource$Projects$Agent$Sessions$Detectintent, options: StreamMethodOptions): Promise>; detectIntent(params?: Params$Resource$Projects$Agent$Sessions$Detectintent, options?: MethodOptions): Promise>; detectIntent(params: Params$Resource$Projects$Agent$Sessions$Detectintent, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; detectIntent(params: Params$Resource$Projects$Agent$Sessions$Detectintent, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; detectIntent(params: Params$Resource$Projects$Agent$Sessions$Detectintent, callback: BodyResponseCallback): void; detectIntent(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Agent$Sessions$Deletecontexts extends StandardParameters { /** * */ parent?: string; } export interface Params$Resource$Projects$Agent$Sessions$Detectintent extends StandardParameters { /** * */ session?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2DetectIntentRequest; } export class Resource$Projects$Agent$Sessions$Contexts { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.sessions.contexts.create({ * parent: 'projects/my-project/agent/sessions/my-session', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Agent$Sessions$Contexts$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Agent$Sessions$Contexts$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Agent$Sessions$Contexts$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Sessions$Contexts$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Sessions$Contexts$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.sessions.contexts.delete({ * name: 'projects/my-project/agent/sessions/my-session/contexts/my-context', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Agent$Sessions$Contexts$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Agent$Sessions$Contexts$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Agent$Sessions$Contexts$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Sessions$Contexts$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Sessions$Contexts$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.sessions.contexts.get({ * name: 'projects/my-project/agent/sessions/my-session/contexts/my-context', * }); * console.log(res.data); * * // Example response * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Agent$Sessions$Contexts$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Agent$Sessions$Contexts$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Agent$Sessions$Contexts$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Sessions$Contexts$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Sessions$Contexts$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.sessions.contexts.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/agent/sessions/my-session', * }); * console.log(res.data); * * // Example response * // { * // "contexts": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Agent$Sessions$Contexts$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Agent$Sessions$Contexts$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Agent$Sessions$Contexts$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Sessions$Contexts$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Sessions$Contexts$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.sessions.contexts.patch({ * name: 'projects/my-project/agent/sessions/my-session/contexts/my-context', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Agent$Sessions$Contexts$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Agent$Sessions$Contexts$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Agent$Sessions$Contexts$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Sessions$Contexts$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Sessions$Contexts$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Agent$Sessions$Contexts$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Context; } export interface Params$Resource$Projects$Agent$Sessions$Contexts$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Sessions$Contexts$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Sessions$Contexts$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Agent$Sessions$Contexts$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Context; } export class Resource$Projects$Agent$Sessions$Entitytypes { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.sessions.entityTypes.create({ * parent: 'projects/my-project/agent/sessions/my-session', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Agent$Sessions$Entitytypes$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.sessions.entityTypes.delete({ * name: 'projects/my-project/agent/sessions/my-session/entityTypes/my-entityType', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.sessions.entityTypes.get({ * name: 'projects/my-project/agent/sessions/my-session/entityTypes/my-entityType', * }); * console.log(res.data); * * // Example response * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Agent$Sessions$Entitytypes$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.sessions.entityTypes.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/agent/sessions/my-session', * }); * console.log(res.data); * * // Example response * // { * // "nextPageToken": "my_nextPageToken", * // "sessionEntityTypes": [] * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Agent$Sessions$Entitytypes$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.sessions.entityTypes.patch({ * name: 'projects/my-project/agent/sessions/my-session/entityTypes/my-entityType', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Agent$Sessions$Entitytypes$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Agent$Sessions$Entitytypes$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SessionEntityType; } export interface Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Sessions$Entitytypes$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Sessions$Entitytypes$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Agent$Sessions$Entitytypes$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SessionEntityType; } export class Resource$Projects$Agent$Versions { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.versions.create({ * parent: 'projects/my-project/agent', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "createTime": "my_createTime", * // "description": "my_description", * // "name": "my_name", * // "status": "my_status", * // "versionNumber": 0 * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "createTime": "my_createTime", * // "description": "my_description", * // "name": "my_name", * // "status": "my_status", * // "versionNumber": 0 * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Agent$Versions$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Agent$Versions$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Agent$Versions$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Versions$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Agent$Versions$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.versions.delete({ * name: 'projects/my-project/agent/versions/my-version', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Agent$Versions$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Agent$Versions$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Agent$Versions$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Versions$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Agent$Versions$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.versions.get({ * name: 'projects/my-project/agent/versions/my-version', * }); * console.log(res.data); * * // Example response * // { * // "createTime": "my_createTime", * // "description": "my_description", * // "name": "my_name", * // "status": "my_status", * // "versionNumber": 0 * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Agent$Versions$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Agent$Versions$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Agent$Versions$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Versions$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Agent$Versions$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.versions.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/agent', * }); * console.log(res.data); * * // Example response * // { * // "nextPageToken": "my_nextPageToken", * // "versions": [] * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Agent$Versions$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Agent$Versions$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Agent$Versions$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Versions$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Agent$Versions$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.agent.versions.patch({ * name: 'projects/my-project/agent/versions/my-version', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "createTime": "my_createTime", * // "description": "my_description", * // "name": "my_name", * // "status": "my_status", * // "versionNumber": 0 * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "createTime": "my_createTime", * // "description": "my_description", * // "name": "my_name", * // "status": "my_status", * // "versionNumber": 0 * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Agent$Versions$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Agent$Versions$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Agent$Versions$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Versions$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Agent$Versions$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Agent$Versions$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Version; } export interface Params$Resource$Projects$Agent$Versions$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Versions$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Agent$Versions$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Agent$Versions$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Version; } export class Resource$Projects$Answerrecords { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.answerRecords.list({ * filter: 'placeholder-value', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project', * }); * console.log(res.data); * * // Example response * // { * // "answerRecords": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Answerrecords$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Answerrecords$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Answerrecords$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Answerrecords$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Answerrecords$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.answerRecords.patch({ * name: 'projects/my-project/answerRecords/my-answerRecord', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentAssistantRecord": {}, * // "answerFeedback": {}, * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "agentAssistantRecord": {}, * // "answerFeedback": {}, * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Answerrecords$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Answerrecords$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Answerrecords$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Answerrecords$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Answerrecords$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Answerrecords$List extends StandardParameters { /** * */ filter?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Answerrecords$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2AnswerRecord; } export class Resource$Projects$Conversationdatasets { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversationDatasets.get({ * name: 'projects/my-project/conversationDatasets/my-conversationDataset', * }); * console.log(res.data); * * // Example response * // { * // "conversationCount": "my_conversationCount", * // "conversationInfo": {}, * // "createTime": "my_createTime", * // "description": "my_description", * // "displayName": "my_displayName", * // "inputConfig": {}, * // "name": "my_name", * // "satisfiesPzi": false, * // "satisfiesPzs": false * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Conversationdatasets$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Conversationdatasets$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Conversationdatasets$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Conversationdatasets$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Conversationdatasets$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.conversationDatasets.importConversationData({ * name: 'projects/my-project/conversationDatasets/my-conversationDataset', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "inputConfig": {} * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ importConversationData(params: Params$Resource$Projects$Conversationdatasets$Importconversationdata, options: StreamMethodOptions): Promise>; importConversationData(params?: Params$Resource$Projects$Conversationdatasets$Importconversationdata, options?: MethodOptions): Promise>; importConversationData(params: Params$Resource$Projects$Conversationdatasets$Importconversationdata, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; importConversationData(params: Params$Resource$Projects$Conversationdatasets$Importconversationdata, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; importConversationData(params: Params$Resource$Projects$Conversationdatasets$Importconversationdata, callback: BodyResponseCallback): void; importConversationData(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversationDatasets.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project', * }); * console.log(res.data); * * // Example response * // { * // "conversationDatasets": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Conversationdatasets$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Conversationdatasets$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Conversationdatasets$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Conversationdatasets$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Conversationdatasets$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Conversationdatasets$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Conversationdatasets$Importconversationdata extends StandardParameters { /** * */ name?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ImportConversationDataRequest; } export interface Params$Resource$Projects$Conversationdatasets$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export class Resource$Projects$Conversationmodels { context: APIRequestContext; evaluations: Resource$Projects$Conversationmodels$Evaluations; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversationModels.create({ * parent: 'projects/my-project', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "articleSuggestionModelMetadata": {}, * // "createTime": "my_createTime", * // "datasets": [], * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name", * // "satisfiesPzi": false, * // "satisfiesPzs": false, * // "smartReplyModelMetadata": {}, * // "state": "my_state" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Conversationmodels$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Conversationmodels$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Conversationmodels$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Conversationmodels$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Conversationmodels$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversationModels.delete({ * name: 'projects/my-project/conversationModels/my-conversationModel', * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Conversationmodels$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Conversationmodels$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Conversationmodels$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Conversationmodels$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Conversationmodels$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversationModels.deploy({ * name: 'projects/my-project/conversationModels/my-conversationModel', * * // Request body metadata * requestBody: { * // request body parameters * // {} * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ deploy(params: Params$Resource$Projects$Conversationmodels$Deploy, options: StreamMethodOptions): Promise>; deploy(params?: Params$Resource$Projects$Conversationmodels$Deploy, options?: MethodOptions): Promise>; deploy(params: Params$Resource$Projects$Conversationmodels$Deploy, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; deploy(params: Params$Resource$Projects$Conversationmodels$Deploy, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; deploy(params: Params$Resource$Projects$Conversationmodels$Deploy, callback: BodyResponseCallback): void; deploy(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversationModels.get({ * name: 'projects/my-project/conversationModels/my-conversationModel', * }); * console.log(res.data); * * // Example response * // { * // "articleSuggestionModelMetadata": {}, * // "createTime": "my_createTime", * // "datasets": [], * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name", * // "satisfiesPzi": false, * // "satisfiesPzs": false, * // "smartReplyModelMetadata": {}, * // "state": "my_state" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Conversationmodels$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Conversationmodels$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Conversationmodels$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Conversationmodels$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Conversationmodels$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversationModels.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project', * }); * console.log(res.data); * * // Example response * // { * // "conversationModels": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Conversationmodels$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Conversationmodels$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Conversationmodels$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Conversationmodels$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Conversationmodels$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversationModels.undeploy({ * name: 'projects/my-project/conversationModels/my-conversationModel', * * // Request body metadata * requestBody: { * // request body parameters * // {} * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ undeploy(params: Params$Resource$Projects$Conversationmodels$Undeploy, options: StreamMethodOptions): Promise>; undeploy(params?: Params$Resource$Projects$Conversationmodels$Undeploy, options?: MethodOptions): Promise>; undeploy(params: Params$Resource$Projects$Conversationmodels$Undeploy, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; undeploy(params: Params$Resource$Projects$Conversationmodels$Undeploy, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; undeploy(params: Params$Resource$Projects$Conversationmodels$Undeploy, callback: BodyResponseCallback): void; undeploy(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Conversationmodels$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ConversationModel; } export interface Params$Resource$Projects$Conversationmodels$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Conversationmodels$Deploy extends StandardParameters { /** * */ name?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2DeployConversationModelRequest; } export interface Params$Resource$Projects$Conversationmodels$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Conversationmodels$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Conversationmodels$Undeploy extends StandardParameters { /** * */ name?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2UndeployConversationModelRequest; } export class Resource$Projects$Conversationmodels$Evaluations { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversationModels.evaluations.get({ * name: 'projects/my-project/conversationModels/my-conversationModel/evaluations/my-evaluation', * }); * console.log(res.data); * * // Example response * // { * // "createTime": "my_createTime", * // "displayName": "my_displayName", * // "evaluationConfig": {}, * // "name": "my_name", * // "rawHumanEvalTemplateCsv": "my_rawHumanEvalTemplateCsv", * // "smartReplyMetrics": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Conversationmodels$Evaluations$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Conversationmodels$Evaluations$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Conversationmodels$Evaluations$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Conversationmodels$Evaluations$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Conversationmodels$Evaluations$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversationModels.evaluations.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/conversationModels/my-conversationModel', * }); * console.log(res.data); * * // Example response * // { * // "conversationModelEvaluations": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Conversationmodels$Evaluations$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Conversationmodels$Evaluations$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Conversationmodels$Evaluations$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Conversationmodels$Evaluations$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Conversationmodels$Evaluations$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Conversationmodels$Evaluations$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Conversationmodels$Evaluations$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export class Resource$Projects$Conversationprofiles { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.conversationProfiles.clearSuggestionFeatureConfig( * { * conversationProfile: * 'projects/my-project/conversationProfiles/my-conversationProfile', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "participantRole": "my_participantRole", * // "suggestionFeatureType": "my_suggestionFeatureType" * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ clearSuggestionFeatureConfig(params: Params$Resource$Projects$Conversationprofiles$Clearsuggestionfeatureconfig, options: StreamMethodOptions): Promise>; clearSuggestionFeatureConfig(params?: Params$Resource$Projects$Conversationprofiles$Clearsuggestionfeatureconfig, options?: MethodOptions): Promise>; clearSuggestionFeatureConfig(params: Params$Resource$Projects$Conversationprofiles$Clearsuggestionfeatureconfig, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; clearSuggestionFeatureConfig(params: Params$Resource$Projects$Conversationprofiles$Clearsuggestionfeatureconfig, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; clearSuggestionFeatureConfig(params: Params$Resource$Projects$Conversationprofiles$Clearsuggestionfeatureconfig, callback: BodyResponseCallback): void; clearSuggestionFeatureConfig(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversationProfiles.create({ * parent: 'projects/my-project', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "automatedAgentConfig": {}, * // "createTime": "my_createTime", * // "displayName": "my_displayName", * // "humanAgentAssistantConfig": {}, * // "humanAgentHandoffConfig": {}, * // "languageCode": "my_languageCode", * // "loggingConfig": {}, * // "name": "my_name", * // "newMessageEventNotificationConfig": {}, * // "newRecognitionResultNotificationConfig": {}, * // "notificationConfig": {}, * // "securitySettings": "my_securitySettings", * // "sttConfig": {}, * // "timeZone": "my_timeZone", * // "ttsConfig": {}, * // "updateTime": "my_updateTime" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "automatedAgentConfig": {}, * // "createTime": "my_createTime", * // "displayName": "my_displayName", * // "humanAgentAssistantConfig": {}, * // "humanAgentHandoffConfig": {}, * // "languageCode": "my_languageCode", * // "loggingConfig": {}, * // "name": "my_name", * // "newMessageEventNotificationConfig": {}, * // "newRecognitionResultNotificationConfig": {}, * // "notificationConfig": {}, * // "securitySettings": "my_securitySettings", * // "sttConfig": {}, * // "timeZone": "my_timeZone", * // "ttsConfig": {}, * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Conversationprofiles$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Conversationprofiles$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Conversationprofiles$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Conversationprofiles$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Conversationprofiles$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversationProfiles.delete({ * name: 'projects/my-project/conversationProfiles/my-conversationProfile', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Conversationprofiles$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Conversationprofiles$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Conversationprofiles$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Conversationprofiles$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Conversationprofiles$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversationProfiles.get({ * name: 'projects/my-project/conversationProfiles/my-conversationProfile', * }); * console.log(res.data); * * // Example response * // { * // "automatedAgentConfig": {}, * // "createTime": "my_createTime", * // "displayName": "my_displayName", * // "humanAgentAssistantConfig": {}, * // "humanAgentHandoffConfig": {}, * // "languageCode": "my_languageCode", * // "loggingConfig": {}, * // "name": "my_name", * // "newMessageEventNotificationConfig": {}, * // "newRecognitionResultNotificationConfig": {}, * // "notificationConfig": {}, * // "securitySettings": "my_securitySettings", * // "sttConfig": {}, * // "timeZone": "my_timeZone", * // "ttsConfig": {}, * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Conversationprofiles$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Conversationprofiles$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Conversationprofiles$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Conversationprofiles$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Conversationprofiles$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversationProfiles.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project', * }); * console.log(res.data); * * // Example response * // { * // "conversationProfiles": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Conversationprofiles$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Conversationprofiles$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Conversationprofiles$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Conversationprofiles$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Conversationprofiles$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversationProfiles.patch({ * name: 'projects/my-project/conversationProfiles/my-conversationProfile', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "automatedAgentConfig": {}, * // "createTime": "my_createTime", * // "displayName": "my_displayName", * // "humanAgentAssistantConfig": {}, * // "humanAgentHandoffConfig": {}, * // "languageCode": "my_languageCode", * // "loggingConfig": {}, * // "name": "my_name", * // "newMessageEventNotificationConfig": {}, * // "newRecognitionResultNotificationConfig": {}, * // "notificationConfig": {}, * // "securitySettings": "my_securitySettings", * // "sttConfig": {}, * // "timeZone": "my_timeZone", * // "ttsConfig": {}, * // "updateTime": "my_updateTime" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "automatedAgentConfig": {}, * // "createTime": "my_createTime", * // "displayName": "my_displayName", * // "humanAgentAssistantConfig": {}, * // "humanAgentHandoffConfig": {}, * // "languageCode": "my_languageCode", * // "loggingConfig": {}, * // "name": "my_name", * // "newMessageEventNotificationConfig": {}, * // "newRecognitionResultNotificationConfig": {}, * // "notificationConfig": {}, * // "securitySettings": "my_securitySettings", * // "sttConfig": {}, * // "timeZone": "my_timeZone", * // "ttsConfig": {}, * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Conversationprofiles$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Conversationprofiles$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Conversationprofiles$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Conversationprofiles$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Conversationprofiles$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.conversationProfiles.setSuggestionFeatureConfig({ * conversationProfile: * 'projects/my-project/conversationProfiles/my-conversationProfile', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "participantRole": "my_participantRole", * // "suggestionFeatureConfig": {} * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ setSuggestionFeatureConfig(params: Params$Resource$Projects$Conversationprofiles$Setsuggestionfeatureconfig, options: StreamMethodOptions): Promise>; setSuggestionFeatureConfig(params?: Params$Resource$Projects$Conversationprofiles$Setsuggestionfeatureconfig, options?: MethodOptions): Promise>; setSuggestionFeatureConfig(params: Params$Resource$Projects$Conversationprofiles$Setsuggestionfeatureconfig, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; setSuggestionFeatureConfig(params: Params$Resource$Projects$Conversationprofiles$Setsuggestionfeatureconfig, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; setSuggestionFeatureConfig(params: Params$Resource$Projects$Conversationprofiles$Setsuggestionfeatureconfig, callback: BodyResponseCallback): void; setSuggestionFeatureConfig(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Conversationprofiles$Clearsuggestionfeatureconfig extends StandardParameters { /** * */ conversationProfile?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest; } export interface Params$Resource$Projects$Conversationprofiles$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ConversationProfile; } export interface Params$Resource$Projects$Conversationprofiles$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Conversationprofiles$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Conversationprofiles$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Conversationprofiles$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ConversationProfile; } export interface Params$Resource$Projects$Conversationprofiles$Setsuggestionfeatureconfig extends StandardParameters { /** * */ conversationProfile?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest; } export class Resource$Projects$Conversations { context: APIRequestContext; messages: Resource$Projects$Conversations$Messages; participants: Resource$Projects$Conversations$Participants; suggestions: Resource$Projects$Conversations$Suggestions; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversations.complete({ * name: 'projects/my-project/conversations/my-conversation', * * // Request body metadata * requestBody: { * // request body parameters * // {} * }, * }); * console.log(res.data); * * // Example response * // { * // "conversationProfile": "my_conversationProfile", * // "conversationStage": "my_conversationStage", * // "endTime": "my_endTime", * // "ingestedContextReferences": {}, * // "lifecycleState": "my_lifecycleState", * // "name": "my_name", * // "phoneNumber": {}, * // "startTime": "my_startTime", * // "telephonyConnectionInfo": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ complete(params: Params$Resource$Projects$Conversations$Complete, options: StreamMethodOptions): Promise>; complete(params?: Params$Resource$Projects$Conversations$Complete, options?: MethodOptions): Promise>; complete(params: Params$Resource$Projects$Conversations$Complete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; complete(params: Params$Resource$Projects$Conversations$Complete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; complete(params: Params$Resource$Projects$Conversations$Complete, callback: BodyResponseCallback): void; complete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversations.create({ * conversationId: 'placeholder-value', * * parent: 'projects/my-project', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "conversationProfile": "my_conversationProfile", * // "conversationStage": "my_conversationStage", * // "endTime": "my_endTime", * // "ingestedContextReferences": {}, * // "lifecycleState": "my_lifecycleState", * // "name": "my_name", * // "phoneNumber": {}, * // "startTime": "my_startTime", * // "telephonyConnectionInfo": {} * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "conversationProfile": "my_conversationProfile", * // "conversationStage": "my_conversationStage", * // "endTime": "my_endTime", * // "ingestedContextReferences": {}, * // "lifecycleState": "my_lifecycleState", * // "name": "my_name", * // "phoneNumber": {}, * // "startTime": "my_startTime", * // "telephonyConnectionInfo": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Conversations$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Conversations$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Conversations$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Conversations$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Conversations$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversations.get({ * name: 'projects/my-project/conversations/my-conversation', * }); * console.log(res.data); * * // Example response * // { * // "conversationProfile": "my_conversationProfile", * // "conversationStage": "my_conversationStage", * // "endTime": "my_endTime", * // "ingestedContextReferences": {}, * // "lifecycleState": "my_lifecycleState", * // "name": "my_name", * // "phoneNumber": {}, * // "startTime": "my_startTime", * // "telephonyConnectionInfo": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Conversations$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Conversations$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Conversations$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Conversations$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Conversations$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversations.list({ * filter: 'placeholder-value', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project', * }); * console.log(res.data); * * // Example response * // { * // "conversations": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Conversations$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Conversations$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Conversations$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Conversations$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Conversations$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Conversations$Complete extends StandardParameters { /** * */ name?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2CompleteConversationRequest; } export interface Params$Resource$Projects$Conversations$Create extends StandardParameters { /** * */ conversationId?: string; /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Conversation; } export interface Params$Resource$Projects$Conversations$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Conversations$List extends StandardParameters { /** * */ filter?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export class Resource$Projects$Conversations$Messages { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversations.messages.list({ * filter: 'placeholder-value', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/conversations/my-conversation', * }); * console.log(res.data); * * // Example response * // { * // "messages": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Conversations$Messages$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Conversations$Messages$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Conversations$Messages$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Conversations$Messages$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Conversations$Messages$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Conversations$Messages$List extends StandardParameters { /** * */ filter?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export class Resource$Projects$Conversations$Participants { context: APIRequestContext; suggestions: Resource$Projects$Conversations$Participants$Suggestions; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.conversations.participants.analyzeContent({ * participant: * 'projects/my-project/conversations/my-conversation/participants/my-participant', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "assistQueryParams": {}, * // "audioInput": {}, * // "cxParameters": {}, * // "eventInput": {}, * // "queryParams": {}, * // "replyAudioConfig": {}, * // "requestId": "my_requestId", * // "suggestionInput": {}, * // "textInput": {} * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "automatedAgentReply": {}, * // "dtmfParameters": {}, * // "endUserSuggestionResults": [], * // "humanAgentSuggestionResults": [], * // "message": {}, * // "replyAudio": {}, * // "replyText": "my_replyText" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ analyzeContent(params: Params$Resource$Projects$Conversations$Participants$Analyzecontent, options: StreamMethodOptions): Promise>; analyzeContent(params?: Params$Resource$Projects$Conversations$Participants$Analyzecontent, options?: MethodOptions): Promise>; analyzeContent(params: Params$Resource$Projects$Conversations$Participants$Analyzecontent, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; analyzeContent(params: Params$Resource$Projects$Conversations$Participants$Analyzecontent, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; analyzeContent(params: Params$Resource$Projects$Conversations$Participants$Analyzecontent, callback: BodyResponseCallback): void; analyzeContent(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversations.participants.create({ * parent: 'projects/my-project/conversations/my-conversation', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentDesktopSource": "my_agentDesktopSource", * // "documentsMetadataFilters": {}, * // "name": "my_name", * // "obfuscatedExternalUserId": "my_obfuscatedExternalUserId", * // "role": "my_role", * // "sipRecordingMediaLabel": "my_sipRecordingMediaLabel" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "agentDesktopSource": "my_agentDesktopSource", * // "documentsMetadataFilters": {}, * // "name": "my_name", * // "obfuscatedExternalUserId": "my_obfuscatedExternalUserId", * // "role": "my_role", * // "sipRecordingMediaLabel": "my_sipRecordingMediaLabel" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Conversations$Participants$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Conversations$Participants$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Conversations$Participants$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Conversations$Participants$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Conversations$Participants$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversations.participants.get({ * name: 'projects/my-project/conversations/my-conversation/participants/my-participant', * }); * console.log(res.data); * * // Example response * // { * // "agentDesktopSource": "my_agentDesktopSource", * // "documentsMetadataFilters": {}, * // "name": "my_name", * // "obfuscatedExternalUserId": "my_obfuscatedExternalUserId", * // "role": "my_role", * // "sipRecordingMediaLabel": "my_sipRecordingMediaLabel" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Conversations$Participants$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Conversations$Participants$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Conversations$Participants$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Conversations$Participants$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Conversations$Participants$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversations.participants.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/conversations/my-conversation', * }); * console.log(res.data); * * // Example response * // { * // "nextPageToken": "my_nextPageToken", * // "participants": [] * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Conversations$Participants$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Conversations$Participants$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Conversations$Participants$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Conversations$Participants$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Conversations$Participants$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversations.participants.patch({ * name: 'projects/my-project/conversations/my-conversation/participants/my-participant', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentDesktopSource": "my_agentDesktopSource", * // "documentsMetadataFilters": {}, * // "name": "my_name", * // "obfuscatedExternalUserId": "my_obfuscatedExternalUserId", * // "role": "my_role", * // "sipRecordingMediaLabel": "my_sipRecordingMediaLabel" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "agentDesktopSource": "my_agentDesktopSource", * // "documentsMetadataFilters": {}, * // "name": "my_name", * // "obfuscatedExternalUserId": "my_obfuscatedExternalUserId", * // "role": "my_role", * // "sipRecordingMediaLabel": "my_sipRecordingMediaLabel" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Conversations$Participants$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Conversations$Participants$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Conversations$Participants$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Conversations$Participants$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Conversations$Participants$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Conversations$Participants$Analyzecontent extends StandardParameters { /** * */ participant?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2AnalyzeContentRequest; } export interface Params$Resource$Projects$Conversations$Participants$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Participant; } export interface Params$Resource$Projects$Conversations$Participants$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Conversations$Participants$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Conversations$Participants$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Participant; } export class Resource$Projects$Conversations$Participants$Suggestions { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.conversations.participants.suggestions.suggestArticles( * { * parent: * 'projects/my-project/conversations/my-conversation/participants/my-participant', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "assistQueryParams": {}, * // "contextSize": 0, * // "latestMessage": "my_latestMessage" * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "articleAnswers": [], * // "contextSize": 0, * // "latestMessage": "my_latestMessage" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ suggestArticles(params: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestarticles, options: StreamMethodOptions): Promise>; suggestArticles(params?: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestarticles, options?: MethodOptions): Promise>; suggestArticles(params: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestarticles, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestArticles(params: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestarticles, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestArticles(params: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestarticles, callback: BodyResponseCallback): void; suggestArticles(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.conversations.participants.suggestions.suggestFaqAnswers( * { * parent: * 'projects/my-project/conversations/my-conversation/participants/my-participant', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "assistQueryParams": {}, * // "contextSize": 0, * // "latestMessage": "my_latestMessage" * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "contextSize": 0, * // "faqAnswers": [], * // "latestMessage": "my_latestMessage" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ suggestFaqAnswers(params: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestfaqanswers, options: StreamMethodOptions): Promise>; suggestFaqAnswers(params?: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestfaqanswers, options?: MethodOptions): Promise>; suggestFaqAnswers(params: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestfaqanswers, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestFaqAnswers(params: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestfaqanswers, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestFaqAnswers(params: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestfaqanswers, callback: BodyResponseCallback): void; suggestFaqAnswers(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.conversations.participants.suggestions.suggestKnowledgeAssist( * { * parent: * 'projects/my-project/conversations/my-conversation/participants/my-participant', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "contextSize": 0, * // "latestMessage": "my_latestMessage", * // "previousSuggestedQuery": "my_previousSuggestedQuery" * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "contextSize": 0, * // "knowledgeAssistAnswer": {}, * // "latestMessage": "my_latestMessage" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ suggestKnowledgeAssist(params: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestknowledgeassist, options: StreamMethodOptions): Promise>; suggestKnowledgeAssist(params?: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestknowledgeassist, options?: MethodOptions): Promise>; suggestKnowledgeAssist(params: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestknowledgeassist, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestKnowledgeAssist(params: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestknowledgeassist, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestKnowledgeAssist(params: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestknowledgeassist, callback: BodyResponseCallback): void; suggestKnowledgeAssist(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.conversations.participants.suggestions.suggestSmartReplies( * { * parent: * 'projects/my-project/conversations/my-conversation/participants/my-participant', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "contextSize": 0, * // "currentTextInput": {}, * // "latestMessage": "my_latestMessage" * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "contextSize": 0, * // "latestMessage": "my_latestMessage", * // "smartReplyAnswers": [] * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ suggestSmartReplies(params: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestsmartreplies, options: StreamMethodOptions): Promise>; suggestSmartReplies(params?: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestsmartreplies, options?: MethodOptions): Promise>; suggestSmartReplies(params: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestsmartreplies, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestSmartReplies(params: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestsmartreplies, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestSmartReplies(params: Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestsmartreplies, callback: BodyResponseCallback): void; suggestSmartReplies(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestarticles extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SuggestArticlesRequest; } export interface Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestfaqanswers extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SuggestFaqAnswersRequest; } export interface Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestknowledgeassist extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest; } export interface Params$Resource$Projects$Conversations$Participants$Suggestions$Suggestsmartreplies extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SuggestSmartRepliesRequest; } export class Resource$Projects$Conversations$Suggestions { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.conversations.suggestions.generate({ * conversation: 'projects/my-project/conversations/my-conversation', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "latestMessage": "my_latestMessage", * // "triggerEvents": [] * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "generatorSuggestionAnswers": [], * // "latestMessage": "my_latestMessage" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ generate(params: Params$Resource$Projects$Conversations$Suggestions$Generate, options: StreamMethodOptions): Promise>; generate(params?: Params$Resource$Projects$Conversations$Suggestions$Generate, options?: MethodOptions): Promise>; generate(params: Params$Resource$Projects$Conversations$Suggestions$Generate, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; generate(params: Params$Resource$Projects$Conversations$Suggestions$Generate, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; generate(params: Params$Resource$Projects$Conversations$Suggestions$Generate, callback: BodyResponseCallback): void; generate(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.conversations.suggestions.searchKnowledge({ * conversation: 'projects/my-project/conversations/my-conversation', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "conversation": "my_conversation", * // "conversationProfile": "my_conversationProfile", * // "endUserMetadata": {}, * // "exactSearch": false, * // "latestMessage": "my_latestMessage", * // "parent": "my_parent", * // "query": {}, * // "querySource": "my_querySource", * // "searchConfig": {}, * // "sessionId": "my_sessionId" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "answers": [], * // "rewrittenQuery": "my_rewrittenQuery", * // "searchKnowledgeDebugInfo": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ searchKnowledge(params: Params$Resource$Projects$Conversations$Suggestions$Searchknowledge, options: StreamMethodOptions): Promise>; searchKnowledge(params?: Params$Resource$Projects$Conversations$Suggestions$Searchknowledge, options?: MethodOptions): Promise>; searchKnowledge(params: Params$Resource$Projects$Conversations$Suggestions$Searchknowledge, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; searchKnowledge(params: Params$Resource$Projects$Conversations$Suggestions$Searchknowledge, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; searchKnowledge(params: Params$Resource$Projects$Conversations$Suggestions$Searchknowledge, callback: BodyResponseCallback): void; searchKnowledge(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.conversations.suggestions.suggestConversationSummary( * { * conversation: 'projects/my-project/conversations/my-conversation', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "assistQueryParams": {}, * // "contextSize": 0, * // "latestMessage": "my_latestMessage" * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "contextSize": 0, * // "latestMessage": "my_latestMessage", * // "summary": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ suggestConversationSummary(params: Params$Resource$Projects$Conversations$Suggestions$Suggestconversationsummary, options: StreamMethodOptions): Promise>; suggestConversationSummary(params?: Params$Resource$Projects$Conversations$Suggestions$Suggestconversationsummary, options?: MethodOptions): Promise>; suggestConversationSummary(params: Params$Resource$Projects$Conversations$Suggestions$Suggestconversationsummary, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestConversationSummary(params: Params$Resource$Projects$Conversations$Suggestions$Suggestconversationsummary, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestConversationSummary(params: Params$Resource$Projects$Conversations$Suggestions$Suggestconversationsummary, callback: BodyResponseCallback): void; suggestConversationSummary(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Conversations$Suggestions$Generate extends StandardParameters { /** * */ conversation?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2GenerateSuggestionsRequest; } export interface Params$Resource$Projects$Conversations$Suggestions$Searchknowledge extends StandardParameters { /** * */ conversation?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SearchKnowledgeRequest; } export interface Params$Resource$Projects$Conversations$Suggestions$Suggestconversationsummary extends StandardParameters { /** * */ conversation?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SuggestConversationSummaryRequest; } export class Resource$Projects$Generators { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.generators.create({ * generatorId: 'placeholder-value', * * parent: 'projects/my-project', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentCoachingContext": {}, * // "createTime": "my_createTime", * // "description": "my_description", * // "freeFormContext": {}, * // "inferenceParameter": {}, * // "name": "my_name", * // "publishedModel": "my_publishedModel", * // "suggestionDedupingConfig": {}, * // "summarizationContext": {}, * // "tools": [], * // "triggerEvent": "my_triggerEvent", * // "updateTime": "my_updateTime" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "agentCoachingContext": {}, * // "createTime": "my_createTime", * // "description": "my_description", * // "freeFormContext": {}, * // "inferenceParameter": {}, * // "name": "my_name", * // "publishedModel": "my_publishedModel", * // "suggestionDedupingConfig": {}, * // "summarizationContext": {}, * // "tools": [], * // "triggerEvent": "my_triggerEvent", * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Generators$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Generators$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Generators$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Generators$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Generators$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.generators.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project', * }); * console.log(res.data); * * // Example response * // { * // "generators": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Generators$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Generators$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Generators$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Generators$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Generators$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Generators$Create extends StandardParameters { /** * */ generatorId?: string; /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Generator; } export interface Params$Resource$Projects$Generators$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export class Resource$Projects$Knowledgebases { context: APIRequestContext; documents: Resource$Projects$Knowledgebases$Documents; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.knowledgeBases.create({ * parent: 'projects/my-project', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Knowledgebases$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Knowledgebases$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Knowledgebases$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Knowledgebases$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Knowledgebases$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.knowledgeBases.delete({ * force: 'placeholder-value', * * name: 'projects/my-project/knowledgeBases/my-knowledgeBase', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Knowledgebases$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Knowledgebases$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Knowledgebases$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Knowledgebases$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Knowledgebases$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.knowledgeBases.get({ * name: 'projects/my-project/knowledgeBases/my-knowledgeBase', * }); * console.log(res.data); * * // Example response * // { * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Knowledgebases$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Knowledgebases$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Knowledgebases$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Knowledgebases$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Knowledgebases$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.knowledgeBases.list({ * filter: 'placeholder-value', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project', * }); * console.log(res.data); * * // Example response * // { * // "knowledgeBases": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Knowledgebases$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Knowledgebases$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Knowledgebases$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Knowledgebases$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Knowledgebases$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.knowledgeBases.patch({ * name: 'projects/my-project/knowledgeBases/my-knowledgeBase', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Knowledgebases$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Knowledgebases$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Knowledgebases$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Knowledgebases$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Knowledgebases$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Knowledgebases$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2KnowledgeBase; } export interface Params$Resource$Projects$Knowledgebases$Delete extends StandardParameters { /** * */ force?: boolean; /** * */ name?: string; } export interface Params$Resource$Projects$Knowledgebases$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Knowledgebases$List extends StandardParameters { /** * */ filter?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Knowledgebases$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2KnowledgeBase; } export class Resource$Projects$Knowledgebases$Documents { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.knowledgeBases.documents.create({ * parent: 'projects/my-project/knowledgeBases/my-knowledgeBase', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "contentUri": "my_contentUri", * // "displayName": "my_displayName", * // "enableAutoReload": false, * // "knowledgeTypes": [], * // "latestReloadStatus": {}, * // "metadata": {}, * // "mimeType": "my_mimeType", * // "name": "my_name", * // "rawContent": "my_rawContent", * // "state": "my_state" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Knowledgebases$Documents$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Knowledgebases$Documents$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Knowledgebases$Documents$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Knowledgebases$Documents$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Knowledgebases$Documents$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.knowledgeBases.documents.delete({ * name: 'projects/my-project/knowledgeBases/my-knowledgeBase/documents/my-document', * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Knowledgebases$Documents$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Knowledgebases$Documents$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Knowledgebases$Documents$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Knowledgebases$Documents$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Knowledgebases$Documents$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.knowledgeBases.documents.export({ * name: 'projects/my-project/knowledgeBases/my-knowledgeBase/documents/my-document', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "exportFullContent": false, * // "gcsDestination": {}, * // "smartMessagingPartialUpdate": false * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ export(params: Params$Resource$Projects$Knowledgebases$Documents$Export, options: StreamMethodOptions): Promise>; export(params?: Params$Resource$Projects$Knowledgebases$Documents$Export, options?: MethodOptions): Promise>; export(params: Params$Resource$Projects$Knowledgebases$Documents$Export, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; export(params: Params$Resource$Projects$Knowledgebases$Documents$Export, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; export(params: Params$Resource$Projects$Knowledgebases$Documents$Export, callback: BodyResponseCallback): void; export(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.knowledgeBases.documents.get({ * name: 'projects/my-project/knowledgeBases/my-knowledgeBase/documents/my-document', * }); * console.log(res.data); * * // Example response * // { * // "contentUri": "my_contentUri", * // "displayName": "my_displayName", * // "enableAutoReload": false, * // "knowledgeTypes": [], * // "latestReloadStatus": {}, * // "metadata": {}, * // "mimeType": "my_mimeType", * // "name": "my_name", * // "rawContent": "my_rawContent", * // "state": "my_state" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Knowledgebases$Documents$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Knowledgebases$Documents$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Knowledgebases$Documents$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Knowledgebases$Documents$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Knowledgebases$Documents$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.knowledgeBases.documents.import({ * parent: 'projects/my-project/knowledgeBases/my-knowledgeBase', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "documentTemplate": {}, * // "gcsSource": {}, * // "importGcsCustomMetadata": false * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ import(params: Params$Resource$Projects$Knowledgebases$Documents$Import, options: StreamMethodOptions): Promise>; import(params?: Params$Resource$Projects$Knowledgebases$Documents$Import, options?: MethodOptions): Promise>; import(params: Params$Resource$Projects$Knowledgebases$Documents$Import, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; import(params: Params$Resource$Projects$Knowledgebases$Documents$Import, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; import(params: Params$Resource$Projects$Knowledgebases$Documents$Import, callback: BodyResponseCallback): void; import(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.knowledgeBases.documents.list({ * filter: 'placeholder-value', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/knowledgeBases/my-knowledgeBase', * }); * console.log(res.data); * * // Example response * // { * // "documents": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Knowledgebases$Documents$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Knowledgebases$Documents$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Knowledgebases$Documents$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Knowledgebases$Documents$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Knowledgebases$Documents$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.knowledgeBases.documents.patch({ * name: 'projects/my-project/knowledgeBases/my-knowledgeBase/documents/my-document', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "contentUri": "my_contentUri", * // "displayName": "my_displayName", * // "enableAutoReload": false, * // "knowledgeTypes": [], * // "latestReloadStatus": {}, * // "metadata": {}, * // "mimeType": "my_mimeType", * // "name": "my_name", * // "rawContent": "my_rawContent", * // "state": "my_state" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Knowledgebases$Documents$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Knowledgebases$Documents$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Knowledgebases$Documents$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Knowledgebases$Documents$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Knowledgebases$Documents$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.knowledgeBases.documents.reload({ * name: 'projects/my-project/knowledgeBases/my-knowledgeBase/documents/my-document', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "contentUri": "my_contentUri", * // "importGcsCustomMetadata": false, * // "smartMessagingPartialUpdate": false * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ reload(params: Params$Resource$Projects$Knowledgebases$Documents$Reload, options: StreamMethodOptions): Promise>; reload(params?: Params$Resource$Projects$Knowledgebases$Documents$Reload, options?: MethodOptions): Promise>; reload(params: Params$Resource$Projects$Knowledgebases$Documents$Reload, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; reload(params: Params$Resource$Projects$Knowledgebases$Documents$Reload, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; reload(params: Params$Resource$Projects$Knowledgebases$Documents$Reload, callback: BodyResponseCallback): void; reload(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Knowledgebases$Documents$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Document; } export interface Params$Resource$Projects$Knowledgebases$Documents$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Knowledgebases$Documents$Export extends StandardParameters { /** * */ name?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ExportDocumentRequest; } export interface Params$Resource$Projects$Knowledgebases$Documents$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Knowledgebases$Documents$Import extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ImportDocumentsRequest; } export interface Params$Resource$Projects$Knowledgebases$Documents$List extends StandardParameters { /** * */ filter?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Knowledgebases$Documents$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Document; } export interface Params$Resource$Projects$Knowledgebases$Documents$Reload extends StandardParameters { /** * */ name?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ReloadDocumentRequest; } export class Resource$Projects$Locations { context: APIRequestContext; agent: Resource$Projects$Locations$Agent; answerRecords: Resource$Projects$Locations$Answerrecords; conversationDatasets: Resource$Projects$Locations$Conversationdatasets; conversationModels: Resource$Projects$Locations$Conversationmodels; conversationProfiles: Resource$Projects$Locations$Conversationprofiles; conversations: Resource$Projects$Locations$Conversations; encryptionSpec: Resource$Projects$Locations$Encryptionspec; generators: Resource$Projects$Locations$Generators; knowledgeBases: Resource$Projects$Locations$Knowledgebases; operations: Resource$Projects$Locations$Operations; sipTrunks: Resource$Projects$Locations$Siptrunks; statelessSuggestion: Resource$Projects$Locations$Statelesssuggestion; suggestions: Resource$Projects$Locations$Suggestions; tools: Resource$Projects$Locations$Tools; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.deleteAgent({ * parent: 'projects/my-project/locations/my-location', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ deleteAgent(params: Params$Resource$Projects$Locations$Deleteagent, options: StreamMethodOptions): Promise>; deleteAgent(params?: Params$Resource$Projects$Locations$Deleteagent, options?: MethodOptions): Promise>; deleteAgent(params: Params$Resource$Projects$Locations$Deleteagent, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; deleteAgent(params: Params$Resource$Projects$Locations$Deleteagent, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; deleteAgent(params: Params$Resource$Projects$Locations$Deleteagent, callback: BodyResponseCallback): void; deleteAgent(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.get({ * name: 'projects/my-project/locations/my-location', * }); * console.log(res.data); * * // Example response * // { * // "displayName": "my_displayName", * // "labels": {}, * // "locationId": "my_locationId", * // "metadata": {}, * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.getAgent({ * parent: 'projects/my-project/locations/my-location', * }); * console.log(res.data); * * // Example response * // { * // "apiVersion": "my_apiVersion", * // "avatarUri": "my_avatarUri", * // "classificationThreshold": {}, * // "defaultLanguageCode": "my_defaultLanguageCode", * // "description": "my_description", * // "displayName": "my_displayName", * // "enableLogging": false, * // "matchMode": "my_matchMode", * // "parent": "my_parent", * // "supportedLanguageCodes": [], * // "tier": "my_tier", * // "timeZone": "my_timeZone" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ getAgent(params: Params$Resource$Projects$Locations$Getagent, options: StreamMethodOptions): Promise>; getAgent(params?: Params$Resource$Projects$Locations$Getagent, options?: MethodOptions): Promise>; getAgent(params: Params$Resource$Projects$Locations$Getagent, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; getAgent(params: Params$Resource$Projects$Locations$Getagent, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; getAgent(params: Params$Resource$Projects$Locations$Getagent, callback: BodyResponseCallback): void; getAgent(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.getEncryptionSpec({ * name: 'projects/my-project/locations/my-location/encryptionSpec', * }); * console.log(res.data); * * // Example response * // { * // "kmsKey": "my_kmsKey", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ getEncryptionSpec(params: Params$Resource$Projects$Locations$Getencryptionspec, options: StreamMethodOptions): Promise>; getEncryptionSpec(params?: Params$Resource$Projects$Locations$Getencryptionspec, options?: MethodOptions): Promise>; getEncryptionSpec(params: Params$Resource$Projects$Locations$Getencryptionspec, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; getEncryptionSpec(params: Params$Resource$Projects$Locations$Getencryptionspec, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; getEncryptionSpec(params: Params$Resource$Projects$Locations$Getencryptionspec, callback: BodyResponseCallback): void; getEncryptionSpec(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.list({ * extraLocationTypes: 'placeholder-value', * * filter: 'placeholder-value', * * name: 'projects/my-project', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { * // "locations": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.setAgent({ * parent: 'projects/my-project/locations/my-location', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "apiVersion": "my_apiVersion", * // "avatarUri": "my_avatarUri", * // "classificationThreshold": {}, * // "defaultLanguageCode": "my_defaultLanguageCode", * // "description": "my_description", * // "displayName": "my_displayName", * // "enableLogging": false, * // "matchMode": "my_matchMode", * // "parent": "my_parent", * // "supportedLanguageCodes": [], * // "tier": "my_tier", * // "timeZone": "my_timeZone" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "apiVersion": "my_apiVersion", * // "avatarUri": "my_avatarUri", * // "classificationThreshold": {}, * // "defaultLanguageCode": "my_defaultLanguageCode", * // "description": "my_description", * // "displayName": "my_displayName", * // "enableLogging": false, * // "matchMode": "my_matchMode", * // "parent": "my_parent", * // "supportedLanguageCodes": [], * // "tier": "my_tier", * // "timeZone": "my_timeZone" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ setAgent(params: Params$Resource$Projects$Locations$Setagent, options: StreamMethodOptions): Promise>; setAgent(params?: Params$Resource$Projects$Locations$Setagent, options?: MethodOptions): Promise>; setAgent(params: Params$Resource$Projects$Locations$Setagent, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; setAgent(params: Params$Resource$Projects$Locations$Setagent, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; setAgent(params: Params$Resource$Projects$Locations$Setagent, callback: BodyResponseCallback): void; setAgent(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Deleteagent extends StandardParameters { /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Getagent extends StandardParameters { /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Getencryptionspec extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$List extends StandardParameters { /** * */ extraLocationTypes?: string[]; /** * */ filter?: string; /** * */ name?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; } export interface Params$Resource$Projects$Locations$Setagent extends StandardParameters { /** * */ parent?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Agent; } export class Resource$Projects$Locations$Agent { context: APIRequestContext; entityTypes: Resource$Projects$Locations$Agent$Entitytypes; environments: Resource$Projects$Locations$Agent$Environments; intents: Resource$Projects$Locations$Agent$Intents; sessions: Resource$Projects$Locations$Agent$Sessions; versions: Resource$Projects$Locations$Agent$Versions; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.export({ * parent: 'projects/my-project/locations/my-location', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentUri": "my_agentUri" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ export(params: Params$Resource$Projects$Locations$Agent$Export, options: StreamMethodOptions): Promise>; export(params?: Params$Resource$Projects$Locations$Agent$Export, options?: MethodOptions): Promise>; export(params: Params$Resource$Projects$Locations$Agent$Export, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; export(params: Params$Resource$Projects$Locations$Agent$Export, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; export(params: Params$Resource$Projects$Locations$Agent$Export, callback: BodyResponseCallback): void; export(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.getFulfillment({ * name: 'projects/my-project/locations/my-location/agent/fulfillment', * }); * console.log(res.data); * * // Example response * // { * // "displayName": "my_displayName", * // "enabled": false, * // "features": [], * // "genericWebService": {}, * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ getFulfillment(params: Params$Resource$Projects$Locations$Agent$Getfulfillment, options: StreamMethodOptions): Promise>; getFulfillment(params?: Params$Resource$Projects$Locations$Agent$Getfulfillment, options?: MethodOptions): Promise>; getFulfillment(params: Params$Resource$Projects$Locations$Agent$Getfulfillment, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; getFulfillment(params: Params$Resource$Projects$Locations$Agent$Getfulfillment, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; getFulfillment(params: Params$Resource$Projects$Locations$Agent$Getfulfillment, callback: BodyResponseCallback): void; getFulfillment(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.getValidationResult({ * languageCode: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location', * }); * console.log(res.data); * * // Example response * // { * // "validationErrors": [] * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ getValidationResult(params: Params$Resource$Projects$Locations$Agent$Getvalidationresult, options: StreamMethodOptions): Promise>; getValidationResult(params?: Params$Resource$Projects$Locations$Agent$Getvalidationresult, options?: MethodOptions): Promise>; getValidationResult(params: Params$Resource$Projects$Locations$Agent$Getvalidationresult, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; getValidationResult(params: Params$Resource$Projects$Locations$Agent$Getvalidationresult, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; getValidationResult(params: Params$Resource$Projects$Locations$Agent$Getvalidationresult, callback: BodyResponseCallback): void; getValidationResult(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.import({ * parent: 'projects/my-project/locations/my-location', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentContent": "my_agentContent", * // "agentUri": "my_agentUri" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ import(params: Params$Resource$Projects$Locations$Agent$Import, options: StreamMethodOptions): Promise>; import(params?: Params$Resource$Projects$Locations$Agent$Import, options?: MethodOptions): Promise>; import(params: Params$Resource$Projects$Locations$Agent$Import, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; import(params: Params$Resource$Projects$Locations$Agent$Import, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; import(params: Params$Resource$Projects$Locations$Agent$Import, callback: BodyResponseCallback): void; import(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.restore({ * parent: 'projects/my-project/locations/my-location', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentContent": "my_agentContent", * // "agentUri": "my_agentUri" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ restore(params: Params$Resource$Projects$Locations$Agent$Restore, options: StreamMethodOptions): Promise>; restore(params?: Params$Resource$Projects$Locations$Agent$Restore, options?: MethodOptions): Promise>; restore(params: Params$Resource$Projects$Locations$Agent$Restore, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; restore(params: Params$Resource$Projects$Locations$Agent$Restore, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; restore(params: Params$Resource$Projects$Locations$Agent$Restore, callback: BodyResponseCallback): void; restore(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.search({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location', * }); * console.log(res.data); * * // Example response * // { * // "agents": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ search(params: Params$Resource$Projects$Locations$Agent$Search, options: StreamMethodOptions): Promise>; search(params?: Params$Resource$Projects$Locations$Agent$Search, options?: MethodOptions): Promise>; search(params: Params$Resource$Projects$Locations$Agent$Search, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; search(params: Params$Resource$Projects$Locations$Agent$Search, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; search(params: Params$Resource$Projects$Locations$Agent$Search, callback: BodyResponseCallback): void; search(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.train({ * parent: 'projects/my-project/locations/my-location', * * // Request body metadata * requestBody: { * // request body parameters * // {} * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ train(params: Params$Resource$Projects$Locations$Agent$Train, options: StreamMethodOptions): Promise>; train(params?: Params$Resource$Projects$Locations$Agent$Train, options?: MethodOptions): Promise>; train(params: Params$Resource$Projects$Locations$Agent$Train, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; train(params: Params$Resource$Projects$Locations$Agent$Train, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; train(params: Params$Resource$Projects$Locations$Agent$Train, callback: BodyResponseCallback): void; train(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.updateFulfillment({ * name: 'projects/my-project/locations/my-location/agent/fulfillment', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "displayName": "my_displayName", * // "enabled": false, * // "features": [], * // "genericWebService": {}, * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "displayName": "my_displayName", * // "enabled": false, * // "features": [], * // "genericWebService": {}, * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ updateFulfillment(params: Params$Resource$Projects$Locations$Agent$Updatefulfillment, options: StreamMethodOptions): Promise>; updateFulfillment(params?: Params$Resource$Projects$Locations$Agent$Updatefulfillment, options?: MethodOptions): Promise>; updateFulfillment(params: Params$Resource$Projects$Locations$Agent$Updatefulfillment, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; updateFulfillment(params: Params$Resource$Projects$Locations$Agent$Updatefulfillment, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; updateFulfillment(params: Params$Resource$Projects$Locations$Agent$Updatefulfillment, callback: BodyResponseCallback): void; updateFulfillment(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Agent$Export extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ExportAgentRequest; } export interface Params$Resource$Projects$Locations$Agent$Getfulfillment extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Agent$Getvalidationresult extends StandardParameters { /** * */ languageCode?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Agent$Import extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ImportAgentRequest; } export interface Params$Resource$Projects$Locations$Agent$Restore extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2RestoreAgentRequest; } export interface Params$Resource$Projects$Locations$Agent$Search extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Agent$Train extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2TrainAgentRequest; } export interface Params$Resource$Projects$Locations$Agent$Updatefulfillment extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Fulfillment; } export class Resource$Projects$Locations$Agent$Entitytypes { context: APIRequestContext; entities: Resource$Projects$Locations$Agent$Entitytypes$Entities; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.entityTypes.batchDelete( * { * parent: 'projects/my-project/locations/my-location/agent', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "entityTypeNames": [] * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ batchDelete(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Batchdelete, options: StreamMethodOptions): Promise>; batchDelete(params?: Params$Resource$Projects$Locations$Agent$Entitytypes$Batchdelete, options?: MethodOptions): Promise>; batchDelete(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Batchdelete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchDelete(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Batchdelete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchDelete(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Batchdelete, callback: BodyResponseCallback): void; batchDelete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.entityTypes.batchUpdate( * { * parent: 'projects/my-project/locations/my-location/agent', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "entityTypeBatchInline": {}, * // "entityTypeBatchUri": "my_entityTypeBatchUri", * // "languageCode": "my_languageCode", * // "updateMask": "my_updateMask" * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ batchUpdate(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Batchupdate, options: StreamMethodOptions): Promise>; batchUpdate(params?: Params$Resource$Projects$Locations$Agent$Entitytypes$Batchupdate, options?: MethodOptions): Promise>; batchUpdate(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Batchupdate, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchUpdate(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Batchupdate, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchUpdate(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Batchupdate, callback: BodyResponseCallback): void; batchUpdate(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.entityTypes.create({ * languageCode: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location/agent', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "autoExpansionMode": "my_autoExpansionMode", * // "displayName": "my_displayName", * // "enableFuzzyExtraction": false, * // "entities": [], * // "kind": "my_kind", * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "autoExpansionMode": "my_autoExpansionMode", * // "displayName": "my_displayName", * // "enableFuzzyExtraction": false, * // "entities": [], * // "kind": "my_kind", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Agent$Entitytypes$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.entityTypes.delete({ * name: 'projects/my-project/locations/my-location/agent/entityTypes/my-entityType', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Locations$Agent$Entitytypes$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.entityTypes.get({ * languageCode: 'placeholder-value', * * name: 'projects/my-project/locations/my-location/agent/entityTypes/my-entityType', * }); * console.log(res.data); * * // Example response * // { * // "autoExpansionMode": "my_autoExpansionMode", * // "displayName": "my_displayName", * // "enableFuzzyExtraction": false, * // "entities": [], * // "kind": "my_kind", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Agent$Entitytypes$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.entityTypes.list({ * languageCode: 'placeholder-value', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location/agent', * }); * console.log(res.data); * * // Example response * // { * // "entityTypes": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Agent$Entitytypes$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Agent$Entitytypes$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Agent$Entitytypes$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Agent$Entitytypes$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Agent$Entitytypes$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.entityTypes.patch({ * languageCode: 'placeholder-value', * * name: 'projects/my-project/locations/my-location/agent/entityTypes/my-entityType', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "autoExpansionMode": "my_autoExpansionMode", * // "displayName": "my_displayName", * // "enableFuzzyExtraction": false, * // "entities": [], * // "kind": "my_kind", * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "autoExpansionMode": "my_autoExpansionMode", * // "displayName": "my_displayName", * // "enableFuzzyExtraction": false, * // "entities": [], * // "kind": "my_kind", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Locations$Agent$Entitytypes$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Agent$Entitytypes$Batchdelete extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest; } export interface Params$Resource$Projects$Locations$Agent$Entitytypes$Batchupdate extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest; } export interface Params$Resource$Projects$Locations$Agent$Entitytypes$Create extends StandardParameters { /** * */ languageCode?: string; /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2EntityType; } export interface Params$Resource$Projects$Locations$Agent$Entitytypes$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Agent$Entitytypes$Get extends StandardParameters { /** * */ languageCode?: string; /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Agent$Entitytypes$List extends StandardParameters { /** * */ languageCode?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Agent$Entitytypes$Patch extends StandardParameters { /** * */ languageCode?: string; /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2EntityType; } export class Resource$Projects$Locations$Agent$Entitytypes$Entities { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.entityTypes.entities.batchCreate({ * parent: * 'projects/my-project/locations/my-location/agent/entityTypes/my-entityType', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "entities": [], * // "languageCode": "my_languageCode" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ batchCreate(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Entities$Batchcreate, options: StreamMethodOptions): Promise>; batchCreate(params?: Params$Resource$Projects$Locations$Agent$Entitytypes$Entities$Batchcreate, options?: MethodOptions): Promise>; batchCreate(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Entities$Batchcreate, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchCreate(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Entities$Batchcreate, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchCreate(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Entities$Batchcreate, callback: BodyResponseCallback): void; batchCreate(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.entityTypes.entities.batchDelete({ * parent: * 'projects/my-project/locations/my-location/agent/entityTypes/my-entityType', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "entityValues": [], * // "languageCode": "my_languageCode" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ batchDelete(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Entities$Batchdelete, options: StreamMethodOptions): Promise>; batchDelete(params?: Params$Resource$Projects$Locations$Agent$Entitytypes$Entities$Batchdelete, options?: MethodOptions): Promise>; batchDelete(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Entities$Batchdelete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchDelete(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Entities$Batchdelete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchDelete(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Entities$Batchdelete, callback: BodyResponseCallback): void; batchDelete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.entityTypes.entities.batchUpdate({ * parent: * 'projects/my-project/locations/my-location/agent/entityTypes/my-entityType', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "entities": [], * // "languageCode": "my_languageCode", * // "updateMask": "my_updateMask" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ batchUpdate(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Entities$Batchupdate, options: StreamMethodOptions): Promise>; batchUpdate(params?: Params$Resource$Projects$Locations$Agent$Entitytypes$Entities$Batchupdate, options?: MethodOptions): Promise>; batchUpdate(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Entities$Batchupdate, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchUpdate(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Entities$Batchupdate, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchUpdate(params: Params$Resource$Projects$Locations$Agent$Entitytypes$Entities$Batchupdate, callback: BodyResponseCallback): void; batchUpdate(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Agent$Entitytypes$Entities$Batchcreate extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2BatchCreateEntitiesRequest; } export interface Params$Resource$Projects$Locations$Agent$Entitytypes$Entities$Batchdelete extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2BatchDeleteEntitiesRequest; } export interface Params$Resource$Projects$Locations$Agent$Entitytypes$Entities$Batchupdate extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2BatchUpdateEntitiesRequest; } export class Resource$Projects$Locations$Agent$Environments { context: APIRequestContext; intents: Resource$Projects$Locations$Agent$Environments$Intents; users: Resource$Projects$Locations$Agent$Environments$Users; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.environments.create({ * environmentId: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location/agent', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentVersion": "my_agentVersion", * // "description": "my_description", * // "fulfillment": {}, * // "name": "my_name", * // "state": "my_state", * // "textToSpeechSettings": {}, * // "updateTime": "my_updateTime" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "agentVersion": "my_agentVersion", * // "description": "my_description", * // "fulfillment": {}, * // "name": "my_name", * // "state": "my_state", * // "textToSpeechSettings": {}, * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Agent$Environments$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Agent$Environments$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Agent$Environments$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Agent$Environments$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Agent$Environments$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.environments.delete({ * name: 'projects/my-project/locations/my-location/agent/environments/my-environment', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Locations$Agent$Environments$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Locations$Agent$Environments$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Locations$Agent$Environments$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Agent$Environments$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Agent$Environments$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.environments.get({ * name: 'projects/my-project/locations/my-location/agent/environments/my-environment', * }); * console.log(res.data); * * // Example response * // { * // "agentVersion": "my_agentVersion", * // "description": "my_description", * // "fulfillment": {}, * // "name": "my_name", * // "state": "my_state", * // "textToSpeechSettings": {}, * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Agent$Environments$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Agent$Environments$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Agent$Environments$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Agent$Environments$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Agent$Environments$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.environments.getHistory( * { * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: * 'projects/my-project/locations/my-location/agent/environments/my-environment', * }, * ); * console.log(res.data); * * // Example response * // { * // "entries": [], * // "nextPageToken": "my_nextPageToken", * // "parent": "my_parent" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ getHistory(params: Params$Resource$Projects$Locations$Agent$Environments$Gethistory, options: StreamMethodOptions): Promise>; getHistory(params?: Params$Resource$Projects$Locations$Agent$Environments$Gethistory, options?: MethodOptions): Promise>; getHistory(params: Params$Resource$Projects$Locations$Agent$Environments$Gethistory, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; getHistory(params: Params$Resource$Projects$Locations$Agent$Environments$Gethistory, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; getHistory(params: Params$Resource$Projects$Locations$Agent$Environments$Gethistory, callback: BodyResponseCallback): void; getHistory(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.environments.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location/agent', * }); * console.log(res.data); * * // Example response * // { * // "environments": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Agent$Environments$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Agent$Environments$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Agent$Environments$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Agent$Environments$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Agent$Environments$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.environments.patch({ * allowLoadToDraftAndDiscardChanges: 'placeholder-value', * * name: 'projects/my-project/locations/my-location/agent/environments/my-environment', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentVersion": "my_agentVersion", * // "description": "my_description", * // "fulfillment": {}, * // "name": "my_name", * // "state": "my_state", * // "textToSpeechSettings": {}, * // "updateTime": "my_updateTime" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "agentVersion": "my_agentVersion", * // "description": "my_description", * // "fulfillment": {}, * // "name": "my_name", * // "state": "my_state", * // "textToSpeechSettings": {}, * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Locations$Agent$Environments$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Locations$Agent$Environments$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Locations$Agent$Environments$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Agent$Environments$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Agent$Environments$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Agent$Environments$Create extends StandardParameters { /** * */ environmentId?: string; /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Environment; } export interface Params$Resource$Projects$Locations$Agent$Environments$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Agent$Environments$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Agent$Environments$Gethistory extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Agent$Environments$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Agent$Environments$Patch extends StandardParameters { /** * */ allowLoadToDraftAndDiscardChanges?: boolean; /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Environment; } export class Resource$Projects$Locations$Agent$Environments$Intents { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.environments.intents.list({ * intentView: 'placeholder-value', * * languageCode: 'placeholder-value', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: * 'projects/my-project/locations/my-location/agent/environments/my-environment', * }); * console.log(res.data); * * // Example response * // { * // "intents": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Agent$Environments$Intents$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Agent$Environments$Intents$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Agent$Environments$Intents$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Agent$Environments$Intents$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Agent$Environments$Intents$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Agent$Environments$Intents$List extends StandardParameters { /** * */ intentView?: string; /** * */ languageCode?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export class Resource$Projects$Locations$Agent$Environments$Users { context: APIRequestContext; sessions: Resource$Projects$Locations$Agent$Environments$Users$Sessions; constructor(context: APIRequestContext); } export class Resource$Projects$Locations$Agent$Environments$Users$Sessions { context: APIRequestContext; contexts: Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts; entityTypes: Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.environments.users.sessions.deleteContexts( * { * parent: * 'projects/my-project/locations/my-location/agent/environments/my-environment/users/my-user/sessions/my-session', * }, * ); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ deleteContexts(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Deletecontexts, options: StreamMethodOptions): Promise>; deleteContexts(params?: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Deletecontexts, options?: MethodOptions): Promise>; deleteContexts(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Deletecontexts, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; deleteContexts(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Deletecontexts, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; deleteContexts(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Deletecontexts, callback: BodyResponseCallback): void; deleteContexts(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.environments.users.sessions.detectIntent( * { * session: * 'projects/my-project/locations/my-location/agent/environments/my-environment/users/my-user/sessions/my-session', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "inputAudio": "my_inputAudio", * // "outputAudioConfig": {}, * // "outputAudioConfigMask": "my_outputAudioConfigMask", * // "queryInput": {}, * // "queryParams": {} * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "outputAudio": "my_outputAudio", * // "outputAudioConfig": {}, * // "queryResult": {}, * // "responseId": "my_responseId", * // "webhookStatus": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ detectIntent(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Detectintent, options: StreamMethodOptions): Promise>; detectIntent(params?: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Detectintent, options?: MethodOptions): Promise>; detectIntent(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Detectintent, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; detectIntent(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Detectintent, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; detectIntent(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Detectintent, callback: BodyResponseCallback): void; detectIntent(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Deletecontexts extends StandardParameters { /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Detectintent extends StandardParameters { /** * */ session?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2DetectIntentRequest; } export class Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.environments.users.sessions.contexts.create( * { * parent: * 'projects/my-project/locations/my-location/agent/environments/my-environment/users/my-user/sessions/my-session', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.environments.users.sessions.contexts.delete( * { * name: 'projects/my-project/locations/my-location/agent/environments/my-environment/users/my-user/sessions/my-session/contexts/my-context', * }, * ); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.environments.users.sessions.contexts.get( * { * name: 'projects/my-project/locations/my-location/agent/environments/my-environment/users/my-user/sessions/my-session/contexts/my-context', * }, * ); * console.log(res.data); * * // Example response * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.environments.users.sessions.contexts.list( * { * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: * 'projects/my-project/locations/my-location/agent/environments/my-environment/users/my-user/sessions/my-session', * }, * ); * console.log(res.data); * * // Example response * // { * // "contexts": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.environments.users.sessions.contexts.patch( * { * name: 'projects/my-project/locations/my-location/agent/environments/my-environment/users/my-user/sessions/my-session/contexts/my-context', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Context; } export interface Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Context; } export class Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.create( * { * parent: * 'projects/my-project/locations/my-location/agent/environments/my-environment/users/my-user/sessions/my-session', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.delete( * { * name: 'projects/my-project/locations/my-location/agent/environments/my-environment/users/my-user/sessions/my-session/entityTypes/my-entityType', * }, * ); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.get( * { * name: 'projects/my-project/locations/my-location/agent/environments/my-environment/users/my-user/sessions/my-session/entityTypes/my-entityType', * }, * ); * console.log(res.data); * * // Example response * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.list( * { * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: * 'projects/my-project/locations/my-location/agent/environments/my-environment/users/my-user/sessions/my-session', * }, * ); * console.log(res.data); * * // Example response * // { * // "nextPageToken": "my_nextPageToken", * // "sessionEntityTypes": [] * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.environments.users.sessions.entityTypes.patch( * { * name: 'projects/my-project/locations/my-location/agent/environments/my-environment/users/my-user/sessions/my-session/entityTypes/my-entityType', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SessionEntityType; } export interface Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SessionEntityType; } export class Resource$Projects$Locations$Agent$Intents { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.intents.batchDelete({ * parent: 'projects/my-project/locations/my-location/agent', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "intents": [] * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ batchDelete(params: Params$Resource$Projects$Locations$Agent$Intents$Batchdelete, options: StreamMethodOptions): Promise>; batchDelete(params?: Params$Resource$Projects$Locations$Agent$Intents$Batchdelete, options?: MethodOptions): Promise>; batchDelete(params: Params$Resource$Projects$Locations$Agent$Intents$Batchdelete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchDelete(params: Params$Resource$Projects$Locations$Agent$Intents$Batchdelete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchDelete(params: Params$Resource$Projects$Locations$Agent$Intents$Batchdelete, callback: BodyResponseCallback): void; batchDelete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.intents.batchUpdate({ * parent: 'projects/my-project/locations/my-location/agent', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "intentBatchInline": {}, * // "intentBatchUri": "my_intentBatchUri", * // "intentView": "my_intentView", * // "languageCode": "my_languageCode", * // "updateMask": "my_updateMask" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ batchUpdate(params: Params$Resource$Projects$Locations$Agent$Intents$Batchupdate, options: StreamMethodOptions): Promise>; batchUpdate(params?: Params$Resource$Projects$Locations$Agent$Intents$Batchupdate, options?: MethodOptions): Promise>; batchUpdate(params: Params$Resource$Projects$Locations$Agent$Intents$Batchupdate, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchUpdate(params: Params$Resource$Projects$Locations$Agent$Intents$Batchupdate, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; batchUpdate(params: Params$Resource$Projects$Locations$Agent$Intents$Batchupdate, callback: BodyResponseCallback): void; batchUpdate(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.intents.create({ * intentView: 'placeholder-value', * * languageCode: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location/agent', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "action": "my_action", * // "defaultResponsePlatforms": [], * // "displayName": "my_displayName", * // "endInteraction": false, * // "events": [], * // "followupIntentInfo": [], * // "inputContextNames": [], * // "isFallback": false, * // "liveAgentHandoff": false, * // "messages": [], * // "mlDisabled": false, * // "name": "my_name", * // "outputContexts": [], * // "parameters": [], * // "parentFollowupIntentName": "my_parentFollowupIntentName", * // "priority": 0, * // "resetContexts": false, * // "rootFollowupIntentName": "my_rootFollowupIntentName", * // "trainingPhrases": [], * // "webhookState": "my_webhookState" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "action": "my_action", * // "defaultResponsePlatforms": [], * // "displayName": "my_displayName", * // "endInteraction": false, * // "events": [], * // "followupIntentInfo": [], * // "inputContextNames": [], * // "isFallback": false, * // "liveAgentHandoff": false, * // "messages": [], * // "mlDisabled": false, * // "name": "my_name", * // "outputContexts": [], * // "parameters": [], * // "parentFollowupIntentName": "my_parentFollowupIntentName", * // "priority": 0, * // "resetContexts": false, * // "rootFollowupIntentName": "my_rootFollowupIntentName", * // "trainingPhrases": [], * // "webhookState": "my_webhookState" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Agent$Intents$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Agent$Intents$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Agent$Intents$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Agent$Intents$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Agent$Intents$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.intents.delete({ * name: 'projects/my-project/locations/my-location/agent/intents/my-intent', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Locations$Agent$Intents$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Locations$Agent$Intents$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Locations$Agent$Intents$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Agent$Intents$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Agent$Intents$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.intents.get({ * intentView: 'placeholder-value', * * languageCode: 'placeholder-value', * * name: 'projects/my-project/locations/my-location/agent/intents/my-intent', * }); * console.log(res.data); * * // Example response * // { * // "action": "my_action", * // "defaultResponsePlatforms": [], * // "displayName": "my_displayName", * // "endInteraction": false, * // "events": [], * // "followupIntentInfo": [], * // "inputContextNames": [], * // "isFallback": false, * // "liveAgentHandoff": false, * // "messages": [], * // "mlDisabled": false, * // "name": "my_name", * // "outputContexts": [], * // "parameters": [], * // "parentFollowupIntentName": "my_parentFollowupIntentName", * // "priority": 0, * // "resetContexts": false, * // "rootFollowupIntentName": "my_rootFollowupIntentName", * // "trainingPhrases": [], * // "webhookState": "my_webhookState" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Agent$Intents$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Agent$Intents$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Agent$Intents$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Agent$Intents$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Agent$Intents$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.intents.list({ * intentView: 'placeholder-value', * * languageCode: 'placeholder-value', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location/agent', * }); * console.log(res.data); * * // Example response * // { * // "intents": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Agent$Intents$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Agent$Intents$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Agent$Intents$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Agent$Intents$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Agent$Intents$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.intents.patch({ * intentView: 'placeholder-value', * * languageCode: 'placeholder-value', * * name: 'projects/my-project/locations/my-location/agent/intents/my-intent', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "action": "my_action", * // "defaultResponsePlatforms": [], * // "displayName": "my_displayName", * // "endInteraction": false, * // "events": [], * // "followupIntentInfo": [], * // "inputContextNames": [], * // "isFallback": false, * // "liveAgentHandoff": false, * // "messages": [], * // "mlDisabled": false, * // "name": "my_name", * // "outputContexts": [], * // "parameters": [], * // "parentFollowupIntentName": "my_parentFollowupIntentName", * // "priority": 0, * // "resetContexts": false, * // "rootFollowupIntentName": "my_rootFollowupIntentName", * // "trainingPhrases": [], * // "webhookState": "my_webhookState" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "action": "my_action", * // "defaultResponsePlatforms": [], * // "displayName": "my_displayName", * // "endInteraction": false, * // "events": [], * // "followupIntentInfo": [], * // "inputContextNames": [], * // "isFallback": false, * // "liveAgentHandoff": false, * // "messages": [], * // "mlDisabled": false, * // "name": "my_name", * // "outputContexts": [], * // "parameters": [], * // "parentFollowupIntentName": "my_parentFollowupIntentName", * // "priority": 0, * // "resetContexts": false, * // "rootFollowupIntentName": "my_rootFollowupIntentName", * // "trainingPhrases": [], * // "webhookState": "my_webhookState" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Locations$Agent$Intents$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Locations$Agent$Intents$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Locations$Agent$Intents$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Agent$Intents$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Agent$Intents$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Agent$Intents$Batchdelete extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2BatchDeleteIntentsRequest; } export interface Params$Resource$Projects$Locations$Agent$Intents$Batchupdate extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2BatchUpdateIntentsRequest; } export interface Params$Resource$Projects$Locations$Agent$Intents$Create extends StandardParameters { /** * */ intentView?: string; /** * */ languageCode?: string; /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Intent; } export interface Params$Resource$Projects$Locations$Agent$Intents$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Agent$Intents$Get extends StandardParameters { /** * */ intentView?: string; /** * */ languageCode?: string; /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Agent$Intents$List extends StandardParameters { /** * */ intentView?: string; /** * */ languageCode?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Agent$Intents$Patch extends StandardParameters { /** * */ intentView?: string; /** * */ languageCode?: string; /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Intent; } export class Resource$Projects$Locations$Agent$Sessions { context: APIRequestContext; contexts: Resource$Projects$Locations$Agent$Sessions$Contexts; entityTypes: Resource$Projects$Locations$Agent$Sessions$Entitytypes; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.sessions.deleteContexts( * { * parent: * 'projects/my-project/locations/my-location/agent/sessions/my-session', * }, * ); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ deleteContexts(params: Params$Resource$Projects$Locations$Agent$Sessions$Deletecontexts, options: StreamMethodOptions): Promise>; deleteContexts(params?: Params$Resource$Projects$Locations$Agent$Sessions$Deletecontexts, options?: MethodOptions): Promise>; deleteContexts(params: Params$Resource$Projects$Locations$Agent$Sessions$Deletecontexts, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; deleteContexts(params: Params$Resource$Projects$Locations$Agent$Sessions$Deletecontexts, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; deleteContexts(params: Params$Resource$Projects$Locations$Agent$Sessions$Deletecontexts, callback: BodyResponseCallback): void; deleteContexts(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.sessions.detectIntent({ * session: * 'projects/my-project/locations/my-location/agent/sessions/my-session', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "inputAudio": "my_inputAudio", * // "outputAudioConfig": {}, * // "outputAudioConfigMask": "my_outputAudioConfigMask", * // "queryInput": {}, * // "queryParams": {} * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "outputAudio": "my_outputAudio", * // "outputAudioConfig": {}, * // "queryResult": {}, * // "responseId": "my_responseId", * // "webhookStatus": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ detectIntent(params: Params$Resource$Projects$Locations$Agent$Sessions$Detectintent, options: StreamMethodOptions): Promise>; detectIntent(params?: Params$Resource$Projects$Locations$Agent$Sessions$Detectintent, options?: MethodOptions): Promise>; detectIntent(params: Params$Resource$Projects$Locations$Agent$Sessions$Detectintent, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; detectIntent(params: Params$Resource$Projects$Locations$Agent$Sessions$Detectintent, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; detectIntent(params: Params$Resource$Projects$Locations$Agent$Sessions$Detectintent, callback: BodyResponseCallback): void; detectIntent(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Agent$Sessions$Deletecontexts extends StandardParameters { /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Agent$Sessions$Detectintent extends StandardParameters { /** * */ session?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2DetectIntentRequest; } export class Resource$Projects$Locations$Agent$Sessions$Contexts { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.sessions.contexts.create({ * parent: * 'projects/my-project/locations/my-location/agent/sessions/my-session', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.sessions.contexts.delete({ * name: 'projects/my-project/locations/my-location/agent/sessions/my-session/contexts/my-context', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.sessions.contexts.get({ * name: 'projects/my-project/locations/my-location/agent/sessions/my-session/contexts/my-context', * }); * console.log(res.data); * * // Example response * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.sessions.contexts.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: * 'projects/my-project/locations/my-location/agent/sessions/my-session', * }); * console.log(res.data); * * // Example response * // { * // "contexts": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.sessions.contexts.patch( * { * name: 'projects/my-project/locations/my-location/agent/sessions/my-session/contexts/my-context', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "lifespanCount": 0, * // "name": "my_name", * // "parameters": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Context; } export interface Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Agent$Sessions$Contexts$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Agent$Sessions$Contexts$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Context; } export class Resource$Projects$Locations$Agent$Sessions$Entitytypes { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.sessions.entityTypes.create({ * parent: * 'projects/my-project/locations/my-location/agent/sessions/my-session', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.sessions.entityTypes.delete({ * name: 'projects/my-project/locations/my-location/agent/sessions/my-session/entityTypes/my-entityType', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.sessions.entityTypes.get({ * name: 'projects/my-project/locations/my-location/agent/sessions/my-session/entityTypes/my-entityType', * }); * console.log(res.data); * * // Example response * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.sessions.entityTypes.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: * 'projects/my-project/locations/my-location/agent/sessions/my-session', * }); * console.log(res.data); * * // Example response * // { * // "nextPageToken": "my_nextPageToken", * // "sessionEntityTypes": [] * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.agent.sessions.entityTypes.patch({ * name: 'projects/my-project/locations/my-location/agent/sessions/my-session/entityTypes/my-entityType', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "entities": [], * // "entityOverrideMode": "my_entityOverrideMode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SessionEntityType; } export interface Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Agent$Sessions$Entitytypes$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SessionEntityType; } export class Resource$Projects$Locations$Agent$Versions { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.versions.create({ * parent: 'projects/my-project/locations/my-location/agent', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "createTime": "my_createTime", * // "description": "my_description", * // "name": "my_name", * // "status": "my_status", * // "versionNumber": 0 * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "createTime": "my_createTime", * // "description": "my_description", * // "name": "my_name", * // "status": "my_status", * // "versionNumber": 0 * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Agent$Versions$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Agent$Versions$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Agent$Versions$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Agent$Versions$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Agent$Versions$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.versions.delete({ * name: 'projects/my-project/locations/my-location/agent/versions/my-version', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Locations$Agent$Versions$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Locations$Agent$Versions$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Locations$Agent$Versions$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Agent$Versions$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Agent$Versions$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.versions.get({ * name: 'projects/my-project/locations/my-location/agent/versions/my-version', * }); * console.log(res.data); * * // Example response * // { * // "createTime": "my_createTime", * // "description": "my_description", * // "name": "my_name", * // "status": "my_status", * // "versionNumber": 0 * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Agent$Versions$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Agent$Versions$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Agent$Versions$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Agent$Versions$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Agent$Versions$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.versions.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location/agent', * }); * console.log(res.data); * * // Example response * // { * // "nextPageToken": "my_nextPageToken", * // "versions": [] * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Agent$Versions$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Agent$Versions$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Agent$Versions$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Agent$Versions$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Agent$Versions$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.agent.versions.patch({ * name: 'projects/my-project/locations/my-location/agent/versions/my-version', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "createTime": "my_createTime", * // "description": "my_description", * // "name": "my_name", * // "status": "my_status", * // "versionNumber": 0 * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "createTime": "my_createTime", * // "description": "my_description", * // "name": "my_name", * // "status": "my_status", * // "versionNumber": 0 * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Locations$Agent$Versions$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Locations$Agent$Versions$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Locations$Agent$Versions$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Agent$Versions$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Agent$Versions$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Agent$Versions$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Version; } export interface Params$Resource$Projects$Locations$Agent$Versions$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Agent$Versions$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Agent$Versions$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Agent$Versions$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Version; } export class Resource$Projects$Locations$Answerrecords { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.answerRecords.list({ * filter: 'placeholder-value', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location', * }); * console.log(res.data); * * // Example response * // { * // "answerRecords": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Answerrecords$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Answerrecords$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Answerrecords$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Answerrecords$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Answerrecords$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.answerRecords.patch({ * name: 'projects/my-project/locations/my-location/answerRecords/my-answerRecord', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentAssistantRecord": {}, * // "answerFeedback": {}, * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "agentAssistantRecord": {}, * // "answerFeedback": {}, * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Locations$Answerrecords$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Locations$Answerrecords$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Locations$Answerrecords$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Answerrecords$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Answerrecords$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Answerrecords$List extends StandardParameters { /** * */ filter?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Answerrecords$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2AnswerRecord; } export class Resource$Projects$Locations$Conversationdatasets { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversationDatasets.create({ * parent: 'projects/my-project/locations/my-location', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "conversationCount": "my_conversationCount", * // "conversationInfo": {}, * // "createTime": "my_createTime", * // "description": "my_description", * // "displayName": "my_displayName", * // "inputConfig": {}, * // "name": "my_name", * // "satisfiesPzi": false, * // "satisfiesPzs": false * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Conversationdatasets$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Conversationdatasets$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Conversationdatasets$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Conversationdatasets$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Conversationdatasets$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversationDatasets.delete({ * name: 'projects/my-project/locations/my-location/conversationDatasets/my-conversationDataset', * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Locations$Conversationdatasets$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Locations$Conversationdatasets$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Locations$Conversationdatasets$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Conversationdatasets$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Conversationdatasets$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversationDatasets.get({ * name: 'projects/my-project/locations/my-location/conversationDatasets/my-conversationDataset', * }); * console.log(res.data); * * // Example response * // { * // "conversationCount": "my_conversationCount", * // "conversationInfo": {}, * // "createTime": "my_createTime", * // "description": "my_description", * // "displayName": "my_displayName", * // "inputConfig": {}, * // "name": "my_name", * // "satisfiesPzi": false, * // "satisfiesPzs": false * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Conversationdatasets$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Conversationdatasets$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Conversationdatasets$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Conversationdatasets$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Conversationdatasets$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversationDatasets.importConversationData( * { * name: 'projects/my-project/locations/my-location/conversationDatasets/my-conversationDataset', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "inputConfig": {} * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ importConversationData(params: Params$Resource$Projects$Locations$Conversationdatasets$Importconversationdata, options: StreamMethodOptions): Promise>; importConversationData(params?: Params$Resource$Projects$Locations$Conversationdatasets$Importconversationdata, options?: MethodOptions): Promise>; importConversationData(params: Params$Resource$Projects$Locations$Conversationdatasets$Importconversationdata, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; importConversationData(params: Params$Resource$Projects$Locations$Conversationdatasets$Importconversationdata, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; importConversationData(params: Params$Resource$Projects$Locations$Conversationdatasets$Importconversationdata, callback: BodyResponseCallback): void; importConversationData(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversationDatasets.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location', * }); * console.log(res.data); * * // Example response * // { * // "conversationDatasets": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Conversationdatasets$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Conversationdatasets$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Conversationdatasets$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Conversationdatasets$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Conversationdatasets$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Conversationdatasets$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ConversationDataset; } export interface Params$Resource$Projects$Locations$Conversationdatasets$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Conversationdatasets$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Conversationdatasets$Importconversationdata extends StandardParameters { /** * */ name?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ImportConversationDataRequest; } export interface Params$Resource$Projects$Locations$Conversationdatasets$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export class Resource$Projects$Locations$Conversationmodels { context: APIRequestContext; evaluations: Resource$Projects$Locations$Conversationmodels$Evaluations; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversationModels.create({ * parent: 'projects/my-project/locations/my-location', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "articleSuggestionModelMetadata": {}, * // "createTime": "my_createTime", * // "datasets": [], * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name", * // "satisfiesPzi": false, * // "satisfiesPzs": false, * // "smartReplyModelMetadata": {}, * // "state": "my_state" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Conversationmodels$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Conversationmodels$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Conversationmodels$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Conversationmodels$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Conversationmodels$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversationModels.delete({ * name: 'projects/my-project/locations/my-location/conversationModels/my-conversationModel', * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Locations$Conversationmodels$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Locations$Conversationmodels$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Locations$Conversationmodels$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Conversationmodels$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Conversationmodels$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversationModels.deploy({ * name: 'projects/my-project/locations/my-location/conversationModels/my-conversationModel', * * // Request body metadata * requestBody: { * // request body parameters * // {} * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ deploy(params: Params$Resource$Projects$Locations$Conversationmodels$Deploy, options: StreamMethodOptions): Promise>; deploy(params?: Params$Resource$Projects$Locations$Conversationmodels$Deploy, options?: MethodOptions): Promise>; deploy(params: Params$Resource$Projects$Locations$Conversationmodels$Deploy, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; deploy(params: Params$Resource$Projects$Locations$Conversationmodels$Deploy, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; deploy(params: Params$Resource$Projects$Locations$Conversationmodels$Deploy, callback: BodyResponseCallback): void; deploy(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversationModels.get({ * name: 'projects/my-project/locations/my-location/conversationModels/my-conversationModel', * }); * console.log(res.data); * * // Example response * // { * // "articleSuggestionModelMetadata": {}, * // "createTime": "my_createTime", * // "datasets": [], * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name", * // "satisfiesPzi": false, * // "satisfiesPzs": false, * // "smartReplyModelMetadata": {}, * // "state": "my_state" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Conversationmodels$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Conversationmodels$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Conversationmodels$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Conversationmodels$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Conversationmodels$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversationModels.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location', * }); * console.log(res.data); * * // Example response * // { * // "conversationModels": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Conversationmodels$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Conversationmodels$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Conversationmodels$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Conversationmodels$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Conversationmodels$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversationModels.undeploy({ * name: 'projects/my-project/locations/my-location/conversationModels/my-conversationModel', * * // Request body metadata * requestBody: { * // request body parameters * // {} * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ undeploy(params: Params$Resource$Projects$Locations$Conversationmodels$Undeploy, options: StreamMethodOptions): Promise>; undeploy(params?: Params$Resource$Projects$Locations$Conversationmodels$Undeploy, options?: MethodOptions): Promise>; undeploy(params: Params$Resource$Projects$Locations$Conversationmodels$Undeploy, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; undeploy(params: Params$Resource$Projects$Locations$Conversationmodels$Undeploy, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; undeploy(params: Params$Resource$Projects$Locations$Conversationmodels$Undeploy, callback: BodyResponseCallback): void; undeploy(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Conversationmodels$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ConversationModel; } export interface Params$Resource$Projects$Locations$Conversationmodels$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Conversationmodels$Deploy extends StandardParameters { /** * */ name?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2DeployConversationModelRequest; } export interface Params$Resource$Projects$Locations$Conversationmodels$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Conversationmodels$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Conversationmodels$Undeploy extends StandardParameters { /** * */ name?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2UndeployConversationModelRequest; } export class Resource$Projects$Locations$Conversationmodels$Evaluations { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversationModels.evaluations.create({ * parent: * 'projects/my-project/locations/my-location/conversationModels/my-conversationModel', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "conversationModelEvaluation": {} * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Conversationmodels$Evaluations$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Conversationmodels$Evaluations$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Conversationmodels$Evaluations$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Conversationmodels$Evaluations$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Conversationmodels$Evaluations$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversationModels.evaluations.get({ * name: 'projects/my-project/locations/my-location/conversationModels/my-conversationModel/evaluations/my-evaluation', * }); * console.log(res.data); * * // Example response * // { * // "createTime": "my_createTime", * // "displayName": "my_displayName", * // "evaluationConfig": {}, * // "name": "my_name", * // "rawHumanEvalTemplateCsv": "my_rawHumanEvalTemplateCsv", * // "smartReplyMetrics": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Conversationmodels$Evaluations$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Conversationmodels$Evaluations$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Conversationmodels$Evaluations$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Conversationmodels$Evaluations$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Conversationmodels$Evaluations$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversationModels.evaluations.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: * 'projects/my-project/locations/my-location/conversationModels/my-conversationModel', * }); * console.log(res.data); * * // Example response * // { * // "conversationModelEvaluations": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Conversationmodels$Evaluations$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Conversationmodels$Evaluations$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Conversationmodels$Evaluations$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Conversationmodels$Evaluations$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Conversationmodels$Evaluations$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Conversationmodels$Evaluations$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2CreateConversationModelEvaluationRequest; } export interface Params$Resource$Projects$Locations$Conversationmodels$Evaluations$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Conversationmodels$Evaluations$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export class Resource$Projects$Locations$Conversationprofiles { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversationProfiles.clearSuggestionFeatureConfig( * { * conversationProfile: * 'projects/my-project/locations/my-location/conversationProfiles/my-conversationProfile', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "participantRole": "my_participantRole", * // "suggestionFeatureType": "my_suggestionFeatureType" * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ clearSuggestionFeatureConfig(params: Params$Resource$Projects$Locations$Conversationprofiles$Clearsuggestionfeatureconfig, options: StreamMethodOptions): Promise>; clearSuggestionFeatureConfig(params?: Params$Resource$Projects$Locations$Conversationprofiles$Clearsuggestionfeatureconfig, options?: MethodOptions): Promise>; clearSuggestionFeatureConfig(params: Params$Resource$Projects$Locations$Conversationprofiles$Clearsuggestionfeatureconfig, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; clearSuggestionFeatureConfig(params: Params$Resource$Projects$Locations$Conversationprofiles$Clearsuggestionfeatureconfig, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; clearSuggestionFeatureConfig(params: Params$Resource$Projects$Locations$Conversationprofiles$Clearsuggestionfeatureconfig, callback: BodyResponseCallback): void; clearSuggestionFeatureConfig(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversationProfiles.create({ * parent: 'projects/my-project/locations/my-location', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "automatedAgentConfig": {}, * // "createTime": "my_createTime", * // "displayName": "my_displayName", * // "humanAgentAssistantConfig": {}, * // "humanAgentHandoffConfig": {}, * // "languageCode": "my_languageCode", * // "loggingConfig": {}, * // "name": "my_name", * // "newMessageEventNotificationConfig": {}, * // "newRecognitionResultNotificationConfig": {}, * // "notificationConfig": {}, * // "securitySettings": "my_securitySettings", * // "sttConfig": {}, * // "timeZone": "my_timeZone", * // "ttsConfig": {}, * // "updateTime": "my_updateTime" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "automatedAgentConfig": {}, * // "createTime": "my_createTime", * // "displayName": "my_displayName", * // "humanAgentAssistantConfig": {}, * // "humanAgentHandoffConfig": {}, * // "languageCode": "my_languageCode", * // "loggingConfig": {}, * // "name": "my_name", * // "newMessageEventNotificationConfig": {}, * // "newRecognitionResultNotificationConfig": {}, * // "notificationConfig": {}, * // "securitySettings": "my_securitySettings", * // "sttConfig": {}, * // "timeZone": "my_timeZone", * // "ttsConfig": {}, * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Conversationprofiles$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Conversationprofiles$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Conversationprofiles$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Conversationprofiles$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Conversationprofiles$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversationProfiles.delete({ * name: 'projects/my-project/locations/my-location/conversationProfiles/my-conversationProfile', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Locations$Conversationprofiles$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Locations$Conversationprofiles$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Locations$Conversationprofiles$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Conversationprofiles$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Conversationprofiles$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversationProfiles.get({ * name: 'projects/my-project/locations/my-location/conversationProfiles/my-conversationProfile', * }); * console.log(res.data); * * // Example response * // { * // "automatedAgentConfig": {}, * // "createTime": "my_createTime", * // "displayName": "my_displayName", * // "humanAgentAssistantConfig": {}, * // "humanAgentHandoffConfig": {}, * // "languageCode": "my_languageCode", * // "loggingConfig": {}, * // "name": "my_name", * // "newMessageEventNotificationConfig": {}, * // "newRecognitionResultNotificationConfig": {}, * // "notificationConfig": {}, * // "securitySettings": "my_securitySettings", * // "sttConfig": {}, * // "timeZone": "my_timeZone", * // "ttsConfig": {}, * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Conversationprofiles$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Conversationprofiles$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Conversationprofiles$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Conversationprofiles$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Conversationprofiles$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversationProfiles.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location', * }); * console.log(res.data); * * // Example response * // { * // "conversationProfiles": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Conversationprofiles$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Conversationprofiles$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Conversationprofiles$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Conversationprofiles$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Conversationprofiles$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversationProfiles.patch({ * name: 'projects/my-project/locations/my-location/conversationProfiles/my-conversationProfile', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "automatedAgentConfig": {}, * // "createTime": "my_createTime", * // "displayName": "my_displayName", * // "humanAgentAssistantConfig": {}, * // "humanAgentHandoffConfig": {}, * // "languageCode": "my_languageCode", * // "loggingConfig": {}, * // "name": "my_name", * // "newMessageEventNotificationConfig": {}, * // "newRecognitionResultNotificationConfig": {}, * // "notificationConfig": {}, * // "securitySettings": "my_securitySettings", * // "sttConfig": {}, * // "timeZone": "my_timeZone", * // "ttsConfig": {}, * // "updateTime": "my_updateTime" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "automatedAgentConfig": {}, * // "createTime": "my_createTime", * // "displayName": "my_displayName", * // "humanAgentAssistantConfig": {}, * // "humanAgentHandoffConfig": {}, * // "languageCode": "my_languageCode", * // "loggingConfig": {}, * // "name": "my_name", * // "newMessageEventNotificationConfig": {}, * // "newRecognitionResultNotificationConfig": {}, * // "notificationConfig": {}, * // "securitySettings": "my_securitySettings", * // "sttConfig": {}, * // "timeZone": "my_timeZone", * // "ttsConfig": {}, * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Locations$Conversationprofiles$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Locations$Conversationprofiles$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Locations$Conversationprofiles$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Conversationprofiles$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Conversationprofiles$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversationProfiles.setSuggestionFeatureConfig( * { * conversationProfile: * 'projects/my-project/locations/my-location/conversationProfiles/my-conversationProfile', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "participantRole": "my_participantRole", * // "suggestionFeatureConfig": {} * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ setSuggestionFeatureConfig(params: Params$Resource$Projects$Locations$Conversationprofiles$Setsuggestionfeatureconfig, options: StreamMethodOptions): Promise>; setSuggestionFeatureConfig(params?: Params$Resource$Projects$Locations$Conversationprofiles$Setsuggestionfeatureconfig, options?: MethodOptions): Promise>; setSuggestionFeatureConfig(params: Params$Resource$Projects$Locations$Conversationprofiles$Setsuggestionfeatureconfig, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; setSuggestionFeatureConfig(params: Params$Resource$Projects$Locations$Conversationprofiles$Setsuggestionfeatureconfig, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; setSuggestionFeatureConfig(params: Params$Resource$Projects$Locations$Conversationprofiles$Setsuggestionfeatureconfig, callback: BodyResponseCallback): void; setSuggestionFeatureConfig(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Conversationprofiles$Clearsuggestionfeatureconfig extends StandardParameters { /** * */ conversationProfile?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest; } export interface Params$Resource$Projects$Locations$Conversationprofiles$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ConversationProfile; } export interface Params$Resource$Projects$Locations$Conversationprofiles$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Conversationprofiles$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Conversationprofiles$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Conversationprofiles$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ConversationProfile; } export interface Params$Resource$Projects$Locations$Conversationprofiles$Setsuggestionfeatureconfig extends StandardParameters { /** * */ conversationProfile?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest; } export class Resource$Projects$Locations$Conversations { context: APIRequestContext; messages: Resource$Projects$Locations$Conversations$Messages; participants: Resource$Projects$Locations$Conversations$Participants; suggestions: Resource$Projects$Locations$Conversations$Suggestions; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversations.complete({ * name: 'projects/my-project/locations/my-location/conversations/my-conversation', * * // Request body metadata * requestBody: { * // request body parameters * // {} * }, * }); * console.log(res.data); * * // Example response * // { * // "conversationProfile": "my_conversationProfile", * // "conversationStage": "my_conversationStage", * // "endTime": "my_endTime", * // "ingestedContextReferences": {}, * // "lifecycleState": "my_lifecycleState", * // "name": "my_name", * // "phoneNumber": {}, * // "startTime": "my_startTime", * // "telephonyConnectionInfo": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ complete(params: Params$Resource$Projects$Locations$Conversations$Complete, options: StreamMethodOptions): Promise>; complete(params?: Params$Resource$Projects$Locations$Conversations$Complete, options?: MethodOptions): Promise>; complete(params: Params$Resource$Projects$Locations$Conversations$Complete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; complete(params: Params$Resource$Projects$Locations$Conversations$Complete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; complete(params: Params$Resource$Projects$Locations$Conversations$Complete, callback: BodyResponseCallback): void; complete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversations.create({ * conversationId: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "conversationProfile": "my_conversationProfile", * // "conversationStage": "my_conversationStage", * // "endTime": "my_endTime", * // "ingestedContextReferences": {}, * // "lifecycleState": "my_lifecycleState", * // "name": "my_name", * // "phoneNumber": {}, * // "startTime": "my_startTime", * // "telephonyConnectionInfo": {} * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "conversationProfile": "my_conversationProfile", * // "conversationStage": "my_conversationStage", * // "endTime": "my_endTime", * // "ingestedContextReferences": {}, * // "lifecycleState": "my_lifecycleState", * // "name": "my_name", * // "phoneNumber": {}, * // "startTime": "my_startTime", * // "telephonyConnectionInfo": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Conversations$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Conversations$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Conversations$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Conversations$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Conversations$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversations.get({ * name: 'projects/my-project/locations/my-location/conversations/my-conversation', * }); * console.log(res.data); * * // Example response * // { * // "conversationProfile": "my_conversationProfile", * // "conversationStage": "my_conversationStage", * // "endTime": "my_endTime", * // "ingestedContextReferences": {}, * // "lifecycleState": "my_lifecycleState", * // "name": "my_name", * // "phoneNumber": {}, * // "startTime": "my_startTime", * // "telephonyConnectionInfo": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Conversations$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Conversations$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Conversations$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Conversations$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Conversations$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversations.ingestContextReferences({ * conversation: * 'projects/my-project/locations/my-location/conversations/my-conversation', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "contextReferences": {} * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "ingestedContextReferences": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ ingestContextReferences(params: Params$Resource$Projects$Locations$Conversations$Ingestcontextreferences, options: StreamMethodOptions): Promise>; ingestContextReferences(params?: Params$Resource$Projects$Locations$Conversations$Ingestcontextreferences, options?: MethodOptions): Promise>; ingestContextReferences(params: Params$Resource$Projects$Locations$Conversations$Ingestcontextreferences, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; ingestContextReferences(params: Params$Resource$Projects$Locations$Conversations$Ingestcontextreferences, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; ingestContextReferences(params: Params$Resource$Projects$Locations$Conversations$Ingestcontextreferences, callback: BodyResponseCallback): void; ingestContextReferences(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversations.list({ * filter: 'placeholder-value', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location', * }); * console.log(res.data); * * // Example response * // { * // "conversations": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Conversations$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Conversations$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Conversations$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Conversations$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Conversations$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Conversations$Complete extends StandardParameters { /** * */ name?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2CompleteConversationRequest; } export interface Params$Resource$Projects$Locations$Conversations$Create extends StandardParameters { /** * */ conversationId?: string; /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Conversation; } export interface Params$Resource$Projects$Locations$Conversations$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Conversations$Ingestcontextreferences extends StandardParameters { /** * */ conversation?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2IngestContextReferencesRequest; } export interface Params$Resource$Projects$Locations$Conversations$List extends StandardParameters { /** * */ filter?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export class Resource$Projects$Locations$Conversations$Messages { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.conversations.messages.list({ * filter: 'placeholder-value', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: * 'projects/my-project/locations/my-location/conversations/my-conversation', * }); * console.log(res.data); * * // Example response * // { * // "messages": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Conversations$Messages$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Conversations$Messages$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Conversations$Messages$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Conversations$Messages$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Conversations$Messages$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Conversations$Messages$List extends StandardParameters { /** * */ filter?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export class Resource$Projects$Locations$Conversations$Participants { context: APIRequestContext; suggestions: Resource$Projects$Locations$Conversations$Participants$Suggestions; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversations.participants.analyzeContent( * { * participant: * 'projects/my-project/locations/my-location/conversations/my-conversation/participants/my-participant', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "assistQueryParams": {}, * // "audioInput": {}, * // "cxParameters": {}, * // "eventInput": {}, * // "queryParams": {}, * // "replyAudioConfig": {}, * // "requestId": "my_requestId", * // "suggestionInput": {}, * // "textInput": {} * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "automatedAgentReply": {}, * // "dtmfParameters": {}, * // "endUserSuggestionResults": [], * // "humanAgentSuggestionResults": [], * // "message": {}, * // "replyAudio": {}, * // "replyText": "my_replyText" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ analyzeContent(params: Params$Resource$Projects$Locations$Conversations$Participants$Analyzecontent, options: StreamMethodOptions): Promise>; analyzeContent(params?: Params$Resource$Projects$Locations$Conversations$Participants$Analyzecontent, options?: MethodOptions): Promise>; analyzeContent(params: Params$Resource$Projects$Locations$Conversations$Participants$Analyzecontent, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; analyzeContent(params: Params$Resource$Projects$Locations$Conversations$Participants$Analyzecontent, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; analyzeContent(params: Params$Resource$Projects$Locations$Conversations$Participants$Analyzecontent, callback: BodyResponseCallback): void; analyzeContent(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversations.participants.create({ * parent: * 'projects/my-project/locations/my-location/conversations/my-conversation', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentDesktopSource": "my_agentDesktopSource", * // "documentsMetadataFilters": {}, * // "name": "my_name", * // "obfuscatedExternalUserId": "my_obfuscatedExternalUserId", * // "role": "my_role", * // "sipRecordingMediaLabel": "my_sipRecordingMediaLabel" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "agentDesktopSource": "my_agentDesktopSource", * // "documentsMetadataFilters": {}, * // "name": "my_name", * // "obfuscatedExternalUserId": "my_obfuscatedExternalUserId", * // "role": "my_role", * // "sipRecordingMediaLabel": "my_sipRecordingMediaLabel" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Conversations$Participants$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Conversations$Participants$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Conversations$Participants$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Conversations$Participants$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Conversations$Participants$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversations.participants.get({ * name: 'projects/my-project/locations/my-location/conversations/my-conversation/participants/my-participant', * }); * console.log(res.data); * * // Example response * // { * // "agentDesktopSource": "my_agentDesktopSource", * // "documentsMetadataFilters": {}, * // "name": "my_name", * // "obfuscatedExternalUserId": "my_obfuscatedExternalUserId", * // "role": "my_role", * // "sipRecordingMediaLabel": "my_sipRecordingMediaLabel" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Conversations$Participants$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Conversations$Participants$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Conversations$Participants$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Conversations$Participants$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Conversations$Participants$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversations.participants.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: * 'projects/my-project/locations/my-location/conversations/my-conversation', * }); * console.log(res.data); * * // Example response * // { * // "nextPageToken": "my_nextPageToken", * // "participants": [] * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Conversations$Participants$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Conversations$Participants$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Conversations$Participants$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Conversations$Participants$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Conversations$Participants$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversations.participants.patch({ * name: 'projects/my-project/locations/my-location/conversations/my-conversation/participants/my-participant', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentDesktopSource": "my_agentDesktopSource", * // "documentsMetadataFilters": {}, * // "name": "my_name", * // "obfuscatedExternalUserId": "my_obfuscatedExternalUserId", * // "role": "my_role", * // "sipRecordingMediaLabel": "my_sipRecordingMediaLabel" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "agentDesktopSource": "my_agentDesktopSource", * // "documentsMetadataFilters": {}, * // "name": "my_name", * // "obfuscatedExternalUserId": "my_obfuscatedExternalUserId", * // "role": "my_role", * // "sipRecordingMediaLabel": "my_sipRecordingMediaLabel" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Locations$Conversations$Participants$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Locations$Conversations$Participants$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Locations$Conversations$Participants$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Conversations$Participants$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Conversations$Participants$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Conversations$Participants$Analyzecontent extends StandardParameters { /** * */ participant?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2AnalyzeContentRequest; } export interface Params$Resource$Projects$Locations$Conversations$Participants$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Participant; } export interface Params$Resource$Projects$Locations$Conversations$Participants$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Conversations$Participants$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Conversations$Participants$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Participant; } export class Resource$Projects$Locations$Conversations$Participants$Suggestions { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversations.participants.suggestions.suggestArticles( * { * parent: * 'projects/my-project/locations/my-location/conversations/my-conversation/participants/my-participant', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "assistQueryParams": {}, * // "contextSize": 0, * // "latestMessage": "my_latestMessage" * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "articleAnswers": [], * // "contextSize": 0, * // "latestMessage": "my_latestMessage" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ suggestArticles(params: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestarticles, options: StreamMethodOptions): Promise>; suggestArticles(params?: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestarticles, options?: MethodOptions): Promise>; suggestArticles(params: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestarticles, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestArticles(params: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestarticles, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestArticles(params: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestarticles, callback: BodyResponseCallback): void; suggestArticles(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversations.participants.suggestions.suggestFaqAnswers( * { * parent: * 'projects/my-project/locations/my-location/conversations/my-conversation/participants/my-participant', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "assistQueryParams": {}, * // "contextSize": 0, * // "latestMessage": "my_latestMessage" * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "contextSize": 0, * // "faqAnswers": [], * // "latestMessage": "my_latestMessage" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ suggestFaqAnswers(params: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestfaqanswers, options: StreamMethodOptions): Promise>; suggestFaqAnswers(params?: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestfaqanswers, options?: MethodOptions): Promise>; suggestFaqAnswers(params: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestfaqanswers, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestFaqAnswers(params: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestfaqanswers, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestFaqAnswers(params: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestfaqanswers, callback: BodyResponseCallback): void; suggestFaqAnswers(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversations.participants.suggestions.suggestKnowledgeAssist( * { * parent: * 'projects/my-project/locations/my-location/conversations/my-conversation/participants/my-participant', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "contextSize": 0, * // "latestMessage": "my_latestMessage", * // "previousSuggestedQuery": "my_previousSuggestedQuery" * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "contextSize": 0, * // "knowledgeAssistAnswer": {}, * // "latestMessage": "my_latestMessage" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ suggestKnowledgeAssist(params: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestknowledgeassist, options: StreamMethodOptions): Promise>; suggestKnowledgeAssist(params?: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestknowledgeassist, options?: MethodOptions): Promise>; suggestKnowledgeAssist(params: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestknowledgeassist, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestKnowledgeAssist(params: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestknowledgeassist, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestKnowledgeAssist(params: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestknowledgeassist, callback: BodyResponseCallback): void; suggestKnowledgeAssist(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversations.participants.suggestions.suggestSmartReplies( * { * parent: * 'projects/my-project/locations/my-location/conversations/my-conversation/participants/my-participant', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "contextSize": 0, * // "currentTextInput": {}, * // "latestMessage": "my_latestMessage" * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "contextSize": 0, * // "latestMessage": "my_latestMessage", * // "smartReplyAnswers": [] * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ suggestSmartReplies(params: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestsmartreplies, options: StreamMethodOptions): Promise>; suggestSmartReplies(params?: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestsmartreplies, options?: MethodOptions): Promise>; suggestSmartReplies(params: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestsmartreplies, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestSmartReplies(params: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestsmartreplies, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestSmartReplies(params: Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestsmartreplies, callback: BodyResponseCallback): void; suggestSmartReplies(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestarticles extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SuggestArticlesRequest; } export interface Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestfaqanswers extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SuggestFaqAnswersRequest; } export interface Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestknowledgeassist extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest; } export interface Params$Resource$Projects$Locations$Conversations$Participants$Suggestions$Suggestsmartreplies extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SuggestSmartRepliesRequest; } export class Resource$Projects$Locations$Conversations$Suggestions { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversations.suggestions.generate({ * conversation: * 'projects/my-project/locations/my-location/conversations/my-conversation', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "latestMessage": "my_latestMessage", * // "triggerEvents": [] * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "generatorSuggestionAnswers": [], * // "latestMessage": "my_latestMessage" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ generate(params: Params$Resource$Projects$Locations$Conversations$Suggestions$Generate, options: StreamMethodOptions): Promise>; generate(params?: Params$Resource$Projects$Locations$Conversations$Suggestions$Generate, options?: MethodOptions): Promise>; generate(params: Params$Resource$Projects$Locations$Conversations$Suggestions$Generate, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; generate(params: Params$Resource$Projects$Locations$Conversations$Suggestions$Generate, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; generate(params: Params$Resource$Projects$Locations$Conversations$Suggestions$Generate, callback: BodyResponseCallback): void; generate(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversations.suggestions.searchKnowledge( * { * conversation: * 'projects/my-project/locations/my-location/conversations/my-conversation', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "conversation": "my_conversation", * // "conversationProfile": "my_conversationProfile", * // "endUserMetadata": {}, * // "exactSearch": false, * // "latestMessage": "my_latestMessage", * // "parent": "my_parent", * // "query": {}, * // "querySource": "my_querySource", * // "searchConfig": {}, * // "sessionId": "my_sessionId" * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "answers": [], * // "rewrittenQuery": "my_rewrittenQuery", * // "searchKnowledgeDebugInfo": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ searchKnowledge(params: Params$Resource$Projects$Locations$Conversations$Suggestions$Searchknowledge, options: StreamMethodOptions): Promise>; searchKnowledge(params?: Params$Resource$Projects$Locations$Conversations$Suggestions$Searchknowledge, options?: MethodOptions): Promise>; searchKnowledge(params: Params$Resource$Projects$Locations$Conversations$Suggestions$Searchknowledge, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; searchKnowledge(params: Params$Resource$Projects$Locations$Conversations$Suggestions$Searchknowledge, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; searchKnowledge(params: Params$Resource$Projects$Locations$Conversations$Suggestions$Searchknowledge, callback: BodyResponseCallback): void; searchKnowledge(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.conversations.suggestions.suggestConversationSummary( * { * conversation: * 'projects/my-project/locations/my-location/conversations/my-conversation', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "assistQueryParams": {}, * // "contextSize": 0, * // "latestMessage": "my_latestMessage" * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "contextSize": 0, * // "latestMessage": "my_latestMessage", * // "summary": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ suggestConversationSummary(params: Params$Resource$Projects$Locations$Conversations$Suggestions$Suggestconversationsummary, options: StreamMethodOptions): Promise>; suggestConversationSummary(params?: Params$Resource$Projects$Locations$Conversations$Suggestions$Suggestconversationsummary, options?: MethodOptions): Promise>; suggestConversationSummary(params: Params$Resource$Projects$Locations$Conversations$Suggestions$Suggestconversationsummary, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestConversationSummary(params: Params$Resource$Projects$Locations$Conversations$Suggestions$Suggestconversationsummary, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; suggestConversationSummary(params: Params$Resource$Projects$Locations$Conversations$Suggestions$Suggestconversationsummary, callback: BodyResponseCallback): void; suggestConversationSummary(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Conversations$Suggestions$Generate extends StandardParameters { /** * */ conversation?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2GenerateSuggestionsRequest; } export interface Params$Resource$Projects$Locations$Conversations$Suggestions$Searchknowledge extends StandardParameters { /** * */ conversation?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SearchKnowledgeRequest; } export interface Params$Resource$Projects$Locations$Conversations$Suggestions$Suggestconversationsummary extends StandardParameters { /** * */ conversation?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SuggestConversationSummaryRequest; } export class Resource$Projects$Locations$Encryptionspec { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.encryptionSpec.initialize({ * name: 'projects/my-project/locations/my-location/encryptionSpec', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "encryptionSpec": {} * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ initialize(params: Params$Resource$Projects$Locations$Encryptionspec$Initialize, options: StreamMethodOptions): Promise>; initialize(params?: Params$Resource$Projects$Locations$Encryptionspec$Initialize, options?: MethodOptions): Promise>; initialize(params: Params$Resource$Projects$Locations$Encryptionspec$Initialize, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; initialize(params: Params$Resource$Projects$Locations$Encryptionspec$Initialize, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; initialize(params: Params$Resource$Projects$Locations$Encryptionspec$Initialize, callback: BodyResponseCallback): void; initialize(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Encryptionspec$Initialize extends StandardParameters { /** * */ name?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2InitializeEncryptionSpecRequest; } export class Resource$Projects$Locations$Generators { context: APIRequestContext; evaluations: Resource$Projects$Locations$Generators$Evaluations; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.generators.create({ * generatorId: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentCoachingContext": {}, * // "createTime": "my_createTime", * // "description": "my_description", * // "freeFormContext": {}, * // "inferenceParameter": {}, * // "name": "my_name", * // "publishedModel": "my_publishedModel", * // "suggestionDedupingConfig": {}, * // "summarizationContext": {}, * // "tools": [], * // "triggerEvent": "my_triggerEvent", * // "updateTime": "my_updateTime" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "agentCoachingContext": {}, * // "createTime": "my_createTime", * // "description": "my_description", * // "freeFormContext": {}, * // "inferenceParameter": {}, * // "name": "my_name", * // "publishedModel": "my_publishedModel", * // "suggestionDedupingConfig": {}, * // "summarizationContext": {}, * // "tools": [], * // "triggerEvent": "my_triggerEvent", * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Generators$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Generators$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Generators$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Generators$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Generators$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.generators.delete({ * name: 'projects/my-project/locations/my-location/generators/my-generator', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Locations$Generators$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Locations$Generators$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Locations$Generators$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Generators$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Generators$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.generators.get({ * name: 'projects/my-project/locations/my-location/generators/my-generator', * }); * console.log(res.data); * * // Example response * // { * // "agentCoachingContext": {}, * // "createTime": "my_createTime", * // "description": "my_description", * // "freeFormContext": {}, * // "inferenceParameter": {}, * // "name": "my_name", * // "publishedModel": "my_publishedModel", * // "suggestionDedupingConfig": {}, * // "summarizationContext": {}, * // "tools": [], * // "triggerEvent": "my_triggerEvent", * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Generators$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Generators$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Generators$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Generators$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Generators$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.generators.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location', * }); * console.log(res.data); * * // Example response * // { * // "generators": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Generators$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Generators$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Generators$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Generators$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Generators$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.generators.patch({ * name: 'projects/my-project/locations/my-location/generators/my-generator', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "agentCoachingContext": {}, * // "createTime": "my_createTime", * // "description": "my_description", * // "freeFormContext": {}, * // "inferenceParameter": {}, * // "name": "my_name", * // "publishedModel": "my_publishedModel", * // "suggestionDedupingConfig": {}, * // "summarizationContext": {}, * // "tools": [], * // "triggerEvent": "my_triggerEvent", * // "updateTime": "my_updateTime" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "agentCoachingContext": {}, * // "createTime": "my_createTime", * // "description": "my_description", * // "freeFormContext": {}, * // "inferenceParameter": {}, * // "name": "my_name", * // "publishedModel": "my_publishedModel", * // "suggestionDedupingConfig": {}, * // "summarizationContext": {}, * // "tools": [], * // "triggerEvent": "my_triggerEvent", * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Locations$Generators$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Locations$Generators$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Locations$Generators$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Generators$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Generators$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Generators$Create extends StandardParameters { /** * */ generatorId?: string; /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Generator; } export interface Params$Resource$Projects$Locations$Generators$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Generators$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Generators$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Generators$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Generator; } export class Resource$Projects$Locations$Generators$Evaluations { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.generators.evaluations.create( * { * parent: * 'projects/my-project/locations/my-location/generators/my-generator', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "completeTime": "my_completeTime", * // "createTime": "my_createTime", * // "displayName": "my_displayName", * // "evaluationStatus": {}, * // "generatorEvaluationConfig": {}, * // "initialGenerator": {}, * // "name": "my_name", * // "satisfiesPzi": false, * // "satisfiesPzs": false, * // "summarizationMetrics": {} * // } * }, * }, * ); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Generators$Evaluations$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Generators$Evaluations$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Generators$Evaluations$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Generators$Evaluations$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Generators$Evaluations$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.generators.evaluations.delete( * { * name: 'projects/my-project/locations/my-location/generators/my-generator/evaluations/my-evaluation', * }, * ); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Locations$Generators$Evaluations$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Locations$Generators$Evaluations$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Locations$Generators$Evaluations$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Generators$Evaluations$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Generators$Evaluations$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.generators.evaluations.get({ * name: 'projects/my-project/locations/my-location/generators/my-generator/evaluations/my-evaluation', * }); * console.log(res.data); * * // Example response * // { * // "completeTime": "my_completeTime", * // "createTime": "my_createTime", * // "displayName": "my_displayName", * // "evaluationStatus": {}, * // "generatorEvaluationConfig": {}, * // "initialGenerator": {}, * // "name": "my_name", * // "satisfiesPzi": false, * // "satisfiesPzs": false, * // "summarizationMetrics": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Generators$Evaluations$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Generators$Evaluations$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Generators$Evaluations$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Generators$Evaluations$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Generators$Evaluations$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.generators.evaluations.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location/generators/my-generator', * }); * console.log(res.data); * * // Example response * // { * // "generatorEvaluations": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Generators$Evaluations$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Generators$Evaluations$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Generators$Evaluations$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Generators$Evaluations$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Generators$Evaluations$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Generators$Evaluations$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2GeneratorEvaluation; } export interface Params$Resource$Projects$Locations$Generators$Evaluations$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Generators$Evaluations$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Generators$Evaluations$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export class Resource$Projects$Locations$Knowledgebases { context: APIRequestContext; documents: Resource$Projects$Locations$Knowledgebases$Documents; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.knowledgeBases.create({ * parent: 'projects/my-project/locations/my-location', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Knowledgebases$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Knowledgebases$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Knowledgebases$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Knowledgebases$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Knowledgebases$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.knowledgeBases.delete({ * force: 'placeholder-value', * * name: 'projects/my-project/locations/my-location/knowledgeBases/my-knowledgeBase', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Locations$Knowledgebases$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Locations$Knowledgebases$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Locations$Knowledgebases$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Knowledgebases$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Knowledgebases$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.knowledgeBases.get({ * name: 'projects/my-project/locations/my-location/knowledgeBases/my-knowledgeBase', * }); * console.log(res.data); * * // Example response * // { * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Knowledgebases$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Knowledgebases$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Knowledgebases$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Knowledgebases$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Knowledgebases$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.knowledgeBases.list({ * filter: 'placeholder-value', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location', * }); * console.log(res.data); * * // Example response * // { * // "knowledgeBases": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Knowledgebases$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Knowledgebases$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Knowledgebases$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Knowledgebases$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Knowledgebases$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.knowledgeBases.patch({ * name: 'projects/my-project/locations/my-location/knowledgeBases/my-knowledgeBase', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "displayName": "my_displayName", * // "languageCode": "my_languageCode", * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Locations$Knowledgebases$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Locations$Knowledgebases$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Locations$Knowledgebases$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Knowledgebases$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Knowledgebases$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Knowledgebases$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2KnowledgeBase; } export interface Params$Resource$Projects$Locations$Knowledgebases$Delete extends StandardParameters { /** * */ force?: boolean; /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Knowledgebases$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Knowledgebases$List extends StandardParameters { /** * */ filter?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Knowledgebases$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2KnowledgeBase; } export class Resource$Projects$Locations$Knowledgebases$Documents { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.knowledgeBases.documents.create({ * parent: * 'projects/my-project/locations/my-location/knowledgeBases/my-knowledgeBase', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "contentUri": "my_contentUri", * // "displayName": "my_displayName", * // "enableAutoReload": false, * // "knowledgeTypes": [], * // "latestReloadStatus": {}, * // "metadata": {}, * // "mimeType": "my_mimeType", * // "name": "my_name", * // "rawContent": "my_rawContent", * // "state": "my_state" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Knowledgebases$Documents$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.knowledgeBases.documents.delete({ * name: 'projects/my-project/locations/my-location/knowledgeBases/my-knowledgeBase/documents/my-document', * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Locations$Knowledgebases$Documents$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.knowledgeBases.documents.export({ * name: 'projects/my-project/locations/my-location/knowledgeBases/my-knowledgeBase/documents/my-document', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "exportFullContent": false, * // "gcsDestination": {}, * // "smartMessagingPartialUpdate": false * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ export(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Export, options: StreamMethodOptions): Promise>; export(params?: Params$Resource$Projects$Locations$Knowledgebases$Documents$Export, options?: MethodOptions): Promise>; export(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Export, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; export(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Export, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; export(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Export, callback: BodyResponseCallback): void; export(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.knowledgeBases.documents.get({ * name: 'projects/my-project/locations/my-location/knowledgeBases/my-knowledgeBase/documents/my-document', * }); * console.log(res.data); * * // Example response * // { * // "contentUri": "my_contentUri", * // "displayName": "my_displayName", * // "enableAutoReload": false, * // "knowledgeTypes": [], * // "latestReloadStatus": {}, * // "metadata": {}, * // "mimeType": "my_mimeType", * // "name": "my_name", * // "rawContent": "my_rawContent", * // "state": "my_state" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Knowledgebases$Documents$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.knowledgeBases.documents.import({ * parent: * 'projects/my-project/locations/my-location/knowledgeBases/my-knowledgeBase', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "documentTemplate": {}, * // "gcsSource": {}, * // "importGcsCustomMetadata": false * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ import(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Import, options: StreamMethodOptions): Promise>; import(params?: Params$Resource$Projects$Locations$Knowledgebases$Documents$Import, options?: MethodOptions): Promise>; import(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Import, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; import(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Import, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; import(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Import, callback: BodyResponseCallback): void; import(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.knowledgeBases.documents.list( * { * filter: 'placeholder-value', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: * 'projects/my-project/locations/my-location/knowledgeBases/my-knowledgeBase', * }, * ); * console.log(res.data); * * // Example response * // { * // "documents": [], * // "nextPageToken": "my_nextPageToken" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Knowledgebases$Documents$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.knowledgeBases.documents.patch({ * name: 'projects/my-project/locations/my-location/knowledgeBases/my-knowledgeBase/documents/my-document', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "contentUri": "my_contentUri", * // "displayName": "my_displayName", * // "enableAutoReload": false, * // "knowledgeTypes": [], * // "latestReloadStatus": {}, * // "metadata": {}, * // "mimeType": "my_mimeType", * // "name": "my_name", * // "rawContent": "my_rawContent", * // "state": "my_state" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Locations$Knowledgebases$Documents$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.knowledgeBases.documents.reload({ * name: 'projects/my-project/locations/my-location/knowledgeBases/my-knowledgeBase/documents/my-document', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "contentUri": "my_contentUri", * // "importGcsCustomMetadata": false, * // "smartMessagingPartialUpdate": false * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ reload(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Reload, options: StreamMethodOptions): Promise>; reload(params?: Params$Resource$Projects$Locations$Knowledgebases$Documents$Reload, options?: MethodOptions): Promise>; reload(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Reload, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; reload(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Reload, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; reload(params: Params$Resource$Projects$Locations$Knowledgebases$Documents$Reload, callback: BodyResponseCallback): void; reload(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Knowledgebases$Documents$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Document; } export interface Params$Resource$Projects$Locations$Knowledgebases$Documents$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Knowledgebases$Documents$Export extends StandardParameters { /** * */ name?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ExportDocumentRequest; } export interface Params$Resource$Projects$Locations$Knowledgebases$Documents$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Knowledgebases$Documents$Import extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ImportDocumentsRequest; } export interface Params$Resource$Projects$Locations$Knowledgebases$Documents$List extends StandardParameters { /** * */ filter?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Knowledgebases$Documents$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Document; } export interface Params$Resource$Projects$Locations$Knowledgebases$Documents$Reload extends StandardParameters { /** * */ name?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2ReloadDocumentRequest; } export class Resource$Projects$Locations$Operations { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.operations.cancel({ * name: 'projects/my-project/locations/my-location/operations/my-operation', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, options: StreamMethodOptions): Promise>; cancel(params?: Params$Resource$Projects$Locations$Operations$Cancel, options?: MethodOptions): Promise>; cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; cancel(params: Params$Resource$Projects$Locations$Operations$Cancel, callback: BodyResponseCallback): void; cancel(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.operations.get({ * name: 'projects/my-project/locations/my-location/operations/my-operation', * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Operations$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Operations$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Operations$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Operations$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Operations$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.operations.list({ * filter: 'placeholder-value', * * name: 'projects/my-project/locations/my-location', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * returnPartialSuccess: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { * // "nextPageToken": "my_nextPageToken", * // "operations": [], * // "unreachable": [] * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Operations$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Operations$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Operations$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Operations$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Operations$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Operations$Cancel extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Operations$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Operations$List extends StandardParameters { /** * */ filter?: string; /** * */ name?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ returnPartialSuccess?: boolean; } export class Resource$Projects$Locations$Siptrunks { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.sipTrunks.create({ * parent: 'projects/my-project/locations/my-location', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "connections": [], * // "displayName": "my_displayName", * // "expectedHostname": [], * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "connections": [], * // "displayName": "my_displayName", * // "expectedHostname": [], * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Siptrunks$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Siptrunks$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Siptrunks$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Siptrunks$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Siptrunks$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.sipTrunks.delete({ * name: 'projects/my-project/locations/my-location/sipTrunks/my-sipTrunk', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Locations$Siptrunks$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Locations$Siptrunks$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Locations$Siptrunks$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Siptrunks$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Siptrunks$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.sipTrunks.get({ * name: 'projects/my-project/locations/my-location/sipTrunks/my-sipTrunk', * }); * console.log(res.data); * * // Example response * // { * // "connections": [], * // "displayName": "my_displayName", * // "expectedHostname": [], * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Siptrunks$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Siptrunks$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Siptrunks$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Siptrunks$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Siptrunks$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.sipTrunks.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location', * }); * console.log(res.data); * * // Example response * // { * // "nextPageToken": "my_nextPageToken", * // "sipTrunks": [] * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Siptrunks$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Siptrunks$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Siptrunks$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Siptrunks$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Siptrunks$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.sipTrunks.patch({ * name: 'projects/my-project/locations/my-location/sipTrunks/my-sipTrunk', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "connections": [], * // "displayName": "my_displayName", * // "expectedHostname": [], * // "name": "my_name" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "connections": [], * // "displayName": "my_displayName", * // "expectedHostname": [], * // "name": "my_name" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Locations$Siptrunks$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Locations$Siptrunks$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Locations$Siptrunks$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Siptrunks$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Siptrunks$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Siptrunks$Create extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SipTrunk; } export interface Params$Resource$Projects$Locations$Siptrunks$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Siptrunks$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Siptrunks$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Siptrunks$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SipTrunk; } export class Resource$Projects$Locations$Statelesssuggestion { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.statelessSuggestion.generate({ * parent: 'projects/my-project/locations/my-location', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "contextReferences": {}, * // "conversationContext": {}, * // "generator": {}, * // "generatorName": "my_generatorName", * // "securitySettings": "my_securitySettings", * // "triggerEvents": [] * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "generatorSuggestion": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ generate(params: Params$Resource$Projects$Locations$Statelesssuggestion$Generate, options: StreamMethodOptions): Promise>; generate(params?: Params$Resource$Projects$Locations$Statelesssuggestion$Generate, options?: MethodOptions): Promise>; generate(params: Params$Resource$Projects$Locations$Statelesssuggestion$Generate, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; generate(params: Params$Resource$Projects$Locations$Statelesssuggestion$Generate, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; generate(params: Params$Resource$Projects$Locations$Statelesssuggestion$Generate, callback: BodyResponseCallback): void; generate(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Statelesssuggestion$Generate extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest; } export class Resource$Projects$Locations$Suggestions { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = * await dialogflow.projects.locations.suggestions.generateStatelessSummary({ * parent: 'projects/my-project/locations/my-location', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "conversationProfile": {}, * // "latestMessage": "my_latestMessage", * // "maxContextSize": 0, * // "statelessConversation": {} * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "contextSize": 0, * // "latestMessage": "my_latestMessage", * // "summary": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ generateStatelessSummary(params: Params$Resource$Projects$Locations$Suggestions$Generatestatelesssummary, options: StreamMethodOptions): Promise>; generateStatelessSummary(params?: Params$Resource$Projects$Locations$Suggestions$Generatestatelesssummary, options?: MethodOptions): Promise>; generateStatelessSummary(params: Params$Resource$Projects$Locations$Suggestions$Generatestatelesssummary, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; generateStatelessSummary(params: Params$Resource$Projects$Locations$Suggestions$Generatestatelesssummary, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; generateStatelessSummary(params: Params$Resource$Projects$Locations$Suggestions$Generatestatelesssummary, callback: BodyResponseCallback): void; generateStatelessSummary(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.suggestions.searchKnowledge({ * parent: 'projects/my-project/locations/my-location', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "conversation": "my_conversation", * // "conversationProfile": "my_conversationProfile", * // "endUserMetadata": {}, * // "exactSearch": false, * // "latestMessage": "my_latestMessage", * // "parent": "my_parent", * // "query": {}, * // "querySource": "my_querySource", * // "searchConfig": {}, * // "sessionId": "my_sessionId" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "answers": [], * // "rewrittenQuery": "my_rewrittenQuery", * // "searchKnowledgeDebugInfo": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ searchKnowledge(params: Params$Resource$Projects$Locations$Suggestions$Searchknowledge, options: StreamMethodOptions): Promise>; searchKnowledge(params?: Params$Resource$Projects$Locations$Suggestions$Searchknowledge, options?: MethodOptions): Promise>; searchKnowledge(params: Params$Resource$Projects$Locations$Suggestions$Searchknowledge, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; searchKnowledge(params: Params$Resource$Projects$Locations$Suggestions$Searchknowledge, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; searchKnowledge(params: Params$Resource$Projects$Locations$Suggestions$Searchknowledge, callback: BodyResponseCallback): void; searchKnowledge(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Suggestions$Generatestatelesssummary extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2GenerateStatelessSummaryRequest; } export interface Params$Resource$Projects$Locations$Suggestions$Searchknowledge extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SearchKnowledgeRequest; } export class Resource$Projects$Locations$Tools { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.tools.create({ * parent: 'projects/my-project/locations/my-location', * * toolId: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "actionConfirmationRequirement": {}, * // "connectorSpec": {}, * // "createTime": "my_createTime", * // "description": "my_description", * // "displayName": "my_displayName", * // "extensionSpec": {}, * // "functionSpec": {}, * // "name": "my_name", * // "openApiSpec": {}, * // "satisfiesPzi": false, * // "satisfiesPzs": false, * // "toolKey": "my_toolKey", * // "updateTime": "my_updateTime" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "actionConfirmationRequirement": {}, * // "connectorSpec": {}, * // "createTime": "my_createTime", * // "description": "my_description", * // "displayName": "my_displayName", * // "extensionSpec": {}, * // "functionSpec": {}, * // "name": "my_name", * // "openApiSpec": {}, * // "satisfiesPzi": false, * // "satisfiesPzs": false, * // "toolKey": "my_toolKey", * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Locations$Tools$Create, options: StreamMethodOptions): Promise>; create(params?: Params$Resource$Projects$Locations$Tools$Create, options?: MethodOptions): Promise>; create(params: Params$Resource$Projects$Locations$Tools$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Tools$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; create(params: Params$Resource$Projects$Locations$Tools$Create, callback: BodyResponseCallback): void; create(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.tools.delete({ * name: 'projects/my-project/locations/my-location/tools/my-tool', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Locations$Tools$Delete, options: StreamMethodOptions): Promise>; delete(params?: Params$Resource$Projects$Locations$Tools$Delete, options?: MethodOptions): Promise>; delete(params: Params$Resource$Projects$Locations$Tools$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Tools$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; delete(params: Params$Resource$Projects$Locations$Tools$Delete, callback: BodyResponseCallback): void; delete(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.tools.get({ * name: 'projects/my-project/locations/my-location/tools/my-tool', * }); * console.log(res.data); * * // Example response * // { * // "actionConfirmationRequirement": {}, * // "connectorSpec": {}, * // "createTime": "my_createTime", * // "description": "my_description", * // "displayName": "my_displayName", * // "extensionSpec": {}, * // "functionSpec": {}, * // "name": "my_name", * // "openApiSpec": {}, * // "satisfiesPzi": false, * // "satisfiesPzs": false, * // "toolKey": "my_toolKey", * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Locations$Tools$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Locations$Tools$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Locations$Tools$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Tools$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Locations$Tools$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.tools.list({ * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * parent: 'projects/my-project/locations/my-location', * }); * console.log(res.data); * * // Example response * // { * // "nextPageToken": "my_nextPageToken", * // "tools": [] * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Locations$Tools$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Locations$Tools$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Locations$Tools$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Tools$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Locations$Tools$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.locations.tools.patch({ * name: 'projects/my-project/locations/my-location/tools/my-tool', * * updateMask: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "actionConfirmationRequirement": {}, * // "connectorSpec": {}, * // "createTime": "my_createTime", * // "description": "my_description", * // "displayName": "my_displayName", * // "extensionSpec": {}, * // "functionSpec": {}, * // "name": "my_name", * // "openApiSpec": {}, * // "satisfiesPzi": false, * // "satisfiesPzs": false, * // "toolKey": "my_toolKey", * // "updateTime": "my_updateTime" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "actionConfirmationRequirement": {}, * // "connectorSpec": {}, * // "createTime": "my_createTime", * // "description": "my_description", * // "displayName": "my_displayName", * // "extensionSpec": {}, * // "functionSpec": {}, * // "name": "my_name", * // "openApiSpec": {}, * // "satisfiesPzi": false, * // "satisfiesPzs": false, * // "toolKey": "my_toolKey", * // "updateTime": "my_updateTime" * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Locations$Tools$Patch, options: StreamMethodOptions): Promise>; patch(params?: Params$Resource$Projects$Locations$Tools$Patch, options?: MethodOptions): Promise>; patch(params: Params$Resource$Projects$Locations$Tools$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Tools$Patch, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; patch(params: Params$Resource$Projects$Locations$Tools$Patch, callback: BodyResponseCallback): void; patch(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Locations$Tools$Create extends StandardParameters { /** * */ parent?: string; /** * */ toolId?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Tool; } export interface Params$Resource$Projects$Locations$Tools$Delete extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Tools$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Locations$Tools$List extends StandardParameters { /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ parent?: string; } export interface Params$Resource$Projects$Locations$Tools$Patch extends StandardParameters { /** * */ name?: string; /** * */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2Tool; } export class Resource$Projects$Operations { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.operations.cancel({ * name: 'projects/my-project/operations/my-operation', * }); * console.log(res.data); * * // Example response * // {} * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ cancel(params: Params$Resource$Projects$Operations$Cancel, options: StreamMethodOptions): Promise>; cancel(params?: Params$Resource$Projects$Operations$Cancel, options?: MethodOptions): Promise>; cancel(params: Params$Resource$Projects$Operations$Cancel, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; cancel(params: Params$Resource$Projects$Operations$Cancel, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; cancel(params: Params$Resource$Projects$Operations$Cancel, callback: BodyResponseCallback): void; cancel(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.operations.get({ * name: 'projects/my-project/operations/my-operation', * }); * console.log(res.data); * * // Example response * // { * // "done": false, * // "error": {}, * // "metadata": {}, * // "name": "my_name", * // "response": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Operations$Get, options: StreamMethodOptions): Promise>; get(params?: Params$Resource$Projects$Operations$Get, options?: MethodOptions): Promise>; get(params: Params$Resource$Projects$Operations$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Operations$Get, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; get(params: Params$Resource$Projects$Operations$Get, callback: BodyResponseCallback): void; get(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.operations.list({ * filter: 'placeholder-value', * * name: 'projects/my-project', * * pageSize: 'placeholder-value', * * pageToken: 'placeholder-value', * * returnPartialSuccess: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { * // "nextPageToken": "my_nextPageToken", * // "operations": [], * // "unreachable": [] * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Operations$List, options: StreamMethodOptions): Promise>; list(params?: Params$Resource$Projects$Operations$List, options?: MethodOptions): Promise>; list(params: Params$Resource$Projects$Operations$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Operations$List, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; list(params: Params$Resource$Projects$Operations$List, callback: BodyResponseCallback): void; list(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Operations$Cancel extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Operations$Get extends StandardParameters { /** * */ name?: string; } export interface Params$Resource$Projects$Operations$List extends StandardParameters { /** * */ filter?: string; /** * */ name?: string; /** * */ pageSize?: number; /** * */ pageToken?: string; /** * */ returnPartialSuccess?: boolean; } export class Resource$Projects$Suggestions { context: APIRequestContext; constructor(context: APIRequestContext); /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.suggestions.generateStatelessSummary({ * parent: 'projects/my-project', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "conversationProfile": {}, * // "latestMessage": "my_latestMessage", * // "maxContextSize": 0, * // "statelessConversation": {} * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "contextSize": 0, * // "latestMessage": "my_latestMessage", * // "summary": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ generateStatelessSummary(params: Params$Resource$Projects$Suggestions$Generatestatelesssummary, options: StreamMethodOptions): Promise>; generateStatelessSummary(params?: Params$Resource$Projects$Suggestions$Generatestatelesssummary, options?: MethodOptions): Promise>; generateStatelessSummary(params: Params$Resource$Projects$Suggestions$Generatestatelesssummary, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; generateStatelessSummary(params: Params$Resource$Projects$Suggestions$Generatestatelesssummary, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; generateStatelessSummary(params: Params$Resource$Projects$Suggestions$Generatestatelesssummary, callback: BodyResponseCallback): void; generateStatelessSummary(callback: BodyResponseCallback): void; /** * @example * ```js * // Before running the sample: * // - Enable the API at: * // https://console.developers.google.com/apis/api/dialogflow.googleapis.com * // - Login into gcloud by running: * // ```sh * // $ gcloud auth application-default login * // ``` * // - Install the npm module by running: * // ```sh * // $ npm install googleapis * // ``` * * const {google} = require('googleapis'); * const dialogflow = google.dialogflow('v2'); * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: [ * 'https://www.googleapis.com/auth/cloud-platform', * 'https://www.googleapis.com/auth/dialogflow', * ], * }); * * // Acquire an auth client, and bind it to all future calls * const authClient = await auth.getClient(); * google.options({auth: authClient}); * * // Do the magic * const res = await dialogflow.projects.suggestions.searchKnowledge({ * parent: 'projects/my-project', * * // Request body metadata * requestBody: { * // request body parameters * // { * // "conversation": "my_conversation", * // "conversationProfile": "my_conversationProfile", * // "endUserMetadata": {}, * // "exactSearch": false, * // "latestMessage": "my_latestMessage", * // "parent": "my_parent", * // "query": {}, * // "querySource": "my_querySource", * // "searchConfig": {}, * // "sessionId": "my_sessionId" * // } * }, * }); * console.log(res.data); * * // Example response * // { * // "answers": [], * // "rewrittenQuery": "my_rewrittenQuery", * // "searchKnowledgeDebugInfo": {} * // } * } * * main().catch(e => { * console.error(e); * throw e; * }); * * ``` * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ searchKnowledge(params: Params$Resource$Projects$Suggestions$Searchknowledge, options: StreamMethodOptions): Promise>; searchKnowledge(params?: Params$Resource$Projects$Suggestions$Searchknowledge, options?: MethodOptions): Promise>; searchKnowledge(params: Params$Resource$Projects$Suggestions$Searchknowledge, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; searchKnowledge(params: Params$Resource$Projects$Suggestions$Searchknowledge, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback): void; searchKnowledge(params: Params$Resource$Projects$Suggestions$Searchknowledge, callback: BodyResponseCallback): void; searchKnowledge(callback: BodyResponseCallback): void; } export interface Params$Resource$Projects$Suggestions$Generatestatelesssummary extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2GenerateStatelessSummaryRequest; } export interface Params$Resource$Projects$Suggestions$Searchknowledge extends StandardParameters { /** * */ parent?: string; /** * Request body metadata */ requestBody?: Schema$GoogleCloudDialogflowV2SearchKnowledgeRequest; } export {}; }