// Copyright 2022 Luca Casonato. All rights reserved. MIT license. /** * Dialogflow API Client for Deno * ============================== * * Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices). * * Docs: https://cloud.google.com/dialogflow/ * Source: https://googleapis.deno.dev/v1/dialogflow:v3.ts */ import { auth, CredentialsClient, GoogleAuth, request } from "/_/base@v1/mod.ts"; export { auth, GoogleAuth }; export type { CredentialsClient }; /** * Builds conversational interfaces (for example, chatbots, and voice-powered * apps and devices). */ export class Dialogflow { #client: CredentialsClient | undefined; #baseUrl: string; constructor(client?: CredentialsClient, baseUrl: string = "https://dialogflow.googleapis.com/") { this.#client = client; this.#baseUrl = baseUrl; } async projectsLocationsAgentsChangelogsGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3Changelog(data); } async projectsLocationsAgentsChangelogsList(parent: string, opts: ProjectsLocationsAgentsChangelogsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/changelogs`); if (opts.filter !== undefined) { url.searchParams.append("filter", String(opts.filter)); } if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3ListChangelogsResponse(data); } async projectsLocationsAgentsCreate(parent: string, req: GoogleCloudDialogflowCxV3Agent): Promise { req = serializeGoogleCloudDialogflowCxV3Agent(req); const url = new URL(`${this.#baseUrl}v3/${ parent }/agents`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3Agent(data); } async projectsLocationsAgentsDelete(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsEntityTypesCreate(parent: string, req: GoogleCloudDialogflowCxV3EntityType, opts: ProjectsLocationsAgentsEntityTypesCreateOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/entityTypes`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleCloudDialogflowCxV3EntityType; } async projectsLocationsAgentsEntityTypesDelete(name: string, opts: ProjectsLocationsAgentsEntityTypesDeleteOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.force !== undefined) { url.searchParams.append("force", String(opts.force)); } const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsEntityTypesExport(parent: string, req: GoogleCloudDialogflowCxV3ExportEntityTypesRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/entityTypes:export`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsEntityTypesGet(name: string, opts: ProjectsLocationsAgentsEntityTypesGetOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3EntityType; } async projectsLocationsAgentsEntityTypesImport(parent: string, req: GoogleCloudDialogflowCxV3ImportEntityTypesRequest): Promise { req = serializeGoogleCloudDialogflowCxV3ImportEntityTypesRequest(req); const url = new URL(`${this.#baseUrl}v3/${ parent }/entityTypes:import`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsEntityTypesList(parent: string, opts: ProjectsLocationsAgentsEntityTypesListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/entityTypes`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3ListEntityTypesResponse; } async projectsLocationsAgentsEntityTypesPatch(name: string, req: GoogleCloudDialogflowCxV3EntityType, opts: ProjectsLocationsAgentsEntityTypesPatchOptions = {}): Promise { opts = serializeProjectsLocationsAgentsEntityTypesPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return data as GoogleCloudDialogflowCxV3EntityType; } async projectsLocationsAgentsEnvironmentsContinuousTestResultsList(parent: string, opts: ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/continuousTestResults`); if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3ListContinuousTestResultsResponse(data); } async projectsLocationsAgentsEnvironmentsCreate(parent: string, req: GoogleCloudDialogflowCxV3Environment): Promise { req = serializeGoogleCloudDialogflowCxV3Environment(req); const url = new URL(`${this.#baseUrl}v3/${ parent }/environments`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsEnvironmentsDelete(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsEnvironmentsDeployFlow(environment: string, req: GoogleCloudDialogflowCxV3DeployFlowRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ environment }:deployFlow`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsEnvironmentsDeploymentsGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3Deployment(data); } async projectsLocationsAgentsEnvironmentsDeploymentsList(parent: string, opts: ProjectsLocationsAgentsEnvironmentsDeploymentsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/deployments`); if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3ListDeploymentsResponse(data); } async projectsLocationsAgentsEnvironmentsExperimentsCreate(parent: string, req: GoogleCloudDialogflowCxV3Experiment): Promise { req = serializeGoogleCloudDialogflowCxV3Experiment(req); const url = new URL(`${this.#baseUrl}v3/${ parent }/experiments`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3Experiment(data); } async projectsLocationsAgentsEnvironmentsExperimentsDelete(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsEnvironmentsExperimentsGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3Experiment(data); } async projectsLocationsAgentsEnvironmentsExperimentsList(parent: string, opts: ProjectsLocationsAgentsEnvironmentsExperimentsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/experiments`); if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3ListExperimentsResponse(data); } async projectsLocationsAgentsEnvironmentsExperimentsPatch(name: string, req: GoogleCloudDialogflowCxV3Experiment, opts: ProjectsLocationsAgentsEnvironmentsExperimentsPatchOptions = {}): Promise { req = serializeGoogleCloudDialogflowCxV3Experiment(req); opts = serializeProjectsLocationsAgentsEnvironmentsExperimentsPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return deserializeGoogleCloudDialogflowCxV3Experiment(data); } async projectsLocationsAgentsEnvironmentsExperimentsStart(name: string, req: GoogleCloudDialogflowCxV3StartExperimentRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }:start`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3Experiment(data); } async projectsLocationsAgentsEnvironmentsExperimentsStop(name: string, req: GoogleCloudDialogflowCxV3StopExperimentRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }:stop`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3Experiment(data); } async projectsLocationsAgentsEnvironmentsGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3Environment(data); } async projectsLocationsAgentsEnvironmentsList(parent: string, opts: ProjectsLocationsAgentsEnvironmentsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/environments`); if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3ListEnvironmentsResponse(data); } async projectsLocationsAgentsEnvironmentsLookupEnvironmentHistory(name: string, opts: ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }:lookupEnvironmentHistory`); if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse(data); } async projectsLocationsAgentsEnvironmentsPatch(name: string, req: GoogleCloudDialogflowCxV3Environment, opts: ProjectsLocationsAgentsEnvironmentsPatchOptions = {}): Promise { req = serializeGoogleCloudDialogflowCxV3Environment(req); opts = serializeProjectsLocationsAgentsEnvironmentsPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsEnvironmentsRunContinuousTest(environment: string, req: GoogleCloudDialogflowCxV3RunContinuousTestRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ environment }:runContinuousTest`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsEnvironmentsSessionsDetectIntent(session: string, req: GoogleCloudDialogflowCxV3DetectIntentRequest): Promise { req = serializeGoogleCloudDialogflowCxV3DetectIntentRequest(req); const url = new URL(`${this.#baseUrl}v3/${ session }:detectIntent`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3DetectIntentResponse(data); } async projectsLocationsAgentsEnvironmentsSessionsEntityTypesCreate(parent: string, req: GoogleCloudDialogflowCxV3SessionEntityType): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/entityTypes`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleCloudDialogflowCxV3SessionEntityType; } async projectsLocationsAgentsEnvironmentsSessionsEntityTypesDelete(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsEnvironmentsSessionsEntityTypesGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3SessionEntityType; } async projectsLocationsAgentsEnvironmentsSessionsEntityTypesList(parent: string, opts: ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/entityTypes`); if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse; } async projectsLocationsAgentsEnvironmentsSessionsEntityTypesPatch(name: string, req: GoogleCloudDialogflowCxV3SessionEntityType, opts: ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchOptions = {}): Promise { opts = serializeProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return data as GoogleCloudDialogflowCxV3SessionEntityType; } async projectsLocationsAgentsEnvironmentsSessionsFulfillIntent(session: string, req: GoogleCloudDialogflowCxV3FulfillIntentRequest): Promise { req = serializeGoogleCloudDialogflowCxV3FulfillIntentRequest(req); const url = new URL(`${this.#baseUrl}v3/${ session }:fulfillIntent`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3FulfillIntentResponse(data); } async projectsLocationsAgentsEnvironmentsSessionsMatchIntent(session: string, req: GoogleCloudDialogflowCxV3MatchIntentRequest): Promise { req = serializeGoogleCloudDialogflowCxV3MatchIntentRequest(req); const url = new URL(`${this.#baseUrl}v3/${ session }:matchIntent`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3MatchIntentResponse(data); } async projectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntent(session: string, req: GoogleCloudDialogflowCxV3DetectIntentRequest): Promise { req = serializeGoogleCloudDialogflowCxV3DetectIntentRequest(req); const url = new URL(`${this.#baseUrl}v3/${ session }:serverStreamingDetectIntent`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3DetectIntentResponse(data); } async projectsLocationsAgentsExport(name: string, req: GoogleCloudDialogflowCxV3ExportAgentRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }:export`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsFlowsCreate(parent: string, req: GoogleCloudDialogflowCxV3Flow, opts: ProjectsLocationsAgentsFlowsCreateOptions = {}): Promise { req = serializeGoogleCloudDialogflowCxV3Flow(req); const url = new URL(`${this.#baseUrl}v3/${ parent }/flows`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3Flow(data); } async projectsLocationsAgentsFlowsDelete(name: string, opts: ProjectsLocationsAgentsFlowsDeleteOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.force !== undefined) { url.searchParams.append("force", String(opts.force)); } const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsFlowsExport(name: string, req: GoogleCloudDialogflowCxV3ExportFlowRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }:export`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsFlowsGet(name: string, opts: ProjectsLocationsAgentsFlowsGetOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3Flow(data); } async projectsLocationsAgentsFlowsGetValidationResult(name: string, opts: ProjectsLocationsAgentsFlowsGetValidationResultOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3FlowValidationResult(data); } async projectsLocationsAgentsFlowsImport(parent: string, req: GoogleCloudDialogflowCxV3ImportFlowRequest): Promise { req = serializeGoogleCloudDialogflowCxV3ImportFlowRequest(req); const url = new URL(`${this.#baseUrl}v3/${ parent }/flows:import`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsFlowsList(parent: string, opts: ProjectsLocationsAgentsFlowsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/flows`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3ListFlowsResponse(data); } async projectsLocationsAgentsFlowsPagesCreate(parent: string, req: GoogleCloudDialogflowCxV3Page, opts: ProjectsLocationsAgentsFlowsPagesCreateOptions = {}): Promise { req = serializeGoogleCloudDialogflowCxV3Page(req); const url = new URL(`${this.#baseUrl}v3/${ parent }/pages`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3Page(data); } async projectsLocationsAgentsFlowsPagesDelete(name: string, opts: ProjectsLocationsAgentsFlowsPagesDeleteOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.force !== undefined) { url.searchParams.append("force", String(opts.force)); } const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsFlowsPagesGet(name: string, opts: ProjectsLocationsAgentsFlowsPagesGetOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3Page(data); } async projectsLocationsAgentsFlowsPagesList(parent: string, opts: ProjectsLocationsAgentsFlowsPagesListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/pages`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3ListPagesResponse(data); } async projectsLocationsAgentsFlowsPagesPatch(name: string, req: GoogleCloudDialogflowCxV3Page, opts: ProjectsLocationsAgentsFlowsPagesPatchOptions = {}): Promise { req = serializeGoogleCloudDialogflowCxV3Page(req); opts = serializeProjectsLocationsAgentsFlowsPagesPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return deserializeGoogleCloudDialogflowCxV3Page(data); } async projectsLocationsAgentsFlowsPatch(name: string, req: GoogleCloudDialogflowCxV3Flow, opts: ProjectsLocationsAgentsFlowsPatchOptions = {}): Promise { req = serializeGoogleCloudDialogflowCxV3Flow(req); opts = serializeProjectsLocationsAgentsFlowsPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return deserializeGoogleCloudDialogflowCxV3Flow(data); } async projectsLocationsAgentsFlowsTrain(name: string, req: GoogleCloudDialogflowCxV3TrainFlowRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }:train`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsFlowsTransitionRouteGroupsCreate(parent: string, req: GoogleCloudDialogflowCxV3TransitionRouteGroup, opts: ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateOptions = {}): Promise { req = serializeGoogleCloudDialogflowCxV3TransitionRouteGroup(req); const url = new URL(`${this.#baseUrl}v3/${ parent }/transitionRouteGroups`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3TransitionRouteGroup(data); } async projectsLocationsAgentsFlowsTransitionRouteGroupsDelete(name: string, opts: ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.force !== undefined) { url.searchParams.append("force", String(opts.force)); } const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsFlowsTransitionRouteGroupsGet(name: string, opts: ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3TransitionRouteGroup(data); } async projectsLocationsAgentsFlowsTransitionRouteGroupsList(parent: string, opts: ProjectsLocationsAgentsFlowsTransitionRouteGroupsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/transitionRouteGroups`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse(data); } async projectsLocationsAgentsFlowsTransitionRouteGroupsPatch(name: string, req: GoogleCloudDialogflowCxV3TransitionRouteGroup, opts: ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchOptions = {}): Promise { req = serializeGoogleCloudDialogflowCxV3TransitionRouteGroup(req); opts = serializeProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return deserializeGoogleCloudDialogflowCxV3TransitionRouteGroup(data); } async projectsLocationsAgentsFlowsValidate(name: string, req: GoogleCloudDialogflowCxV3ValidateFlowRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }:validate`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3FlowValidationResult(data); } async projectsLocationsAgentsFlowsVersionsCompareVersions(baseVersion: string, req: GoogleCloudDialogflowCxV3CompareVersionsRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ baseVersion }:compareVersions`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3CompareVersionsResponse(data); } async projectsLocationsAgentsFlowsVersionsCreate(parent: string, req: GoogleCloudDialogflowCxV3Version): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/versions`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsFlowsVersionsDelete(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsFlowsVersionsGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3Version; } async projectsLocationsAgentsFlowsVersionsList(parent: string, opts: ProjectsLocationsAgentsFlowsVersionsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/versions`); if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3ListVersionsResponse; } async projectsLocationsAgentsFlowsVersionsLoad(name: string, req: GoogleCloudDialogflowCxV3LoadVersionRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }:load`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsFlowsVersionsPatch(name: string, req: GoogleCloudDialogflowCxV3Version, opts: ProjectsLocationsAgentsFlowsVersionsPatchOptions = {}): Promise { opts = serializeProjectsLocationsAgentsFlowsVersionsPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return data as GoogleCloudDialogflowCxV3Version; } async projectsLocationsAgentsGeneratorsCreate(parent: string, req: GoogleCloudDialogflowCxV3Generator, opts: ProjectsLocationsAgentsGeneratorsCreateOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/generators`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleCloudDialogflowCxV3Generator; } async projectsLocationsAgentsGeneratorsDelete(name: string, opts: ProjectsLocationsAgentsGeneratorsDeleteOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.force !== undefined) { url.searchParams.append("force", String(opts.force)); } const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsGeneratorsGet(name: string, opts: ProjectsLocationsAgentsGeneratorsGetOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3Generator; } async projectsLocationsAgentsGeneratorsList(parent: string, opts: ProjectsLocationsAgentsGeneratorsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/generators`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3ListGeneratorsResponse; } async projectsLocationsAgentsGeneratorsPatch(name: string, req: GoogleCloudDialogflowCxV3Generator, opts: ProjectsLocationsAgentsGeneratorsPatchOptions = {}): Promise { opts = serializeProjectsLocationsAgentsGeneratorsPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return data as GoogleCloudDialogflowCxV3Generator; } async projectsLocationsAgentsGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3Agent(data); } async projectsLocationsAgentsGetGenerativeSettings(name: string, opts: ProjectsLocationsAgentsGetGenerativeSettingsOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3GenerativeSettings; } async projectsLocationsAgentsGetValidationResult(name: string, opts: ProjectsLocationsAgentsGetValidationResultOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3AgentValidationResult(data); } async projectsLocationsAgentsIntentsCreate(parent: string, req: GoogleCloudDialogflowCxV3Intent, opts: ProjectsLocationsAgentsIntentsCreateOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/intents`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleCloudDialogflowCxV3Intent; } async projectsLocationsAgentsIntentsDelete(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsIntentsExport(parent: string, req: GoogleCloudDialogflowCxV3ExportIntentsRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/intents:export`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsIntentsGet(name: string, opts: ProjectsLocationsAgentsIntentsGetOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3Intent; } async projectsLocationsAgentsIntentsImport(parent: string, req: GoogleCloudDialogflowCxV3ImportIntentsRequest): Promise { req = serializeGoogleCloudDialogflowCxV3ImportIntentsRequest(req); const url = new URL(`${this.#baseUrl}v3/${ parent }/intents:import`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsIntentsList(parent: string, opts: ProjectsLocationsAgentsIntentsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/intents`); if (opts.intentView !== undefined) { url.searchParams.append("intentView", String(opts.intentView)); } if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3ListIntentsResponse; } async projectsLocationsAgentsIntentsPatch(name: string, req: GoogleCloudDialogflowCxV3Intent, opts: ProjectsLocationsAgentsIntentsPatchOptions = {}): Promise { opts = serializeProjectsLocationsAgentsIntentsPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return data as GoogleCloudDialogflowCxV3Intent; } async projectsLocationsAgentsList(parent: string, opts: ProjectsLocationsAgentsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/agents`); if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3ListAgentsResponse(data); } async projectsLocationsAgentsPatch(name: string, req: GoogleCloudDialogflowCxV3Agent, opts: ProjectsLocationsAgentsPatchOptions = {}): Promise { req = serializeGoogleCloudDialogflowCxV3Agent(req); opts = serializeProjectsLocationsAgentsPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return deserializeGoogleCloudDialogflowCxV3Agent(data); } async projectsLocationsAgentsPlaybooksCreate(parent: string, req: GoogleCloudDialogflowCxV3Playbook): Promise { req = serializeGoogleCloudDialogflowCxV3Playbook(req); const url = new URL(`${this.#baseUrl}v3/${ parent }/playbooks`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3Playbook(data); } async projectsLocationsAgentsPlaybooksDelete(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsPlaybooksExamplesCreate(parent: string, req: GoogleCloudDialogflowCxV3Example): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/examples`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleCloudDialogflowCxV3Example; } async projectsLocationsAgentsPlaybooksExamplesDelete(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsPlaybooksExamplesGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3Example; } async projectsLocationsAgentsPlaybooksExamplesList(parent: string, opts: ProjectsLocationsAgentsPlaybooksExamplesListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/examples`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3ListExamplesResponse; } async projectsLocationsAgentsPlaybooksExamplesPatch(name: string, req: GoogleCloudDialogflowCxV3Example, opts: ProjectsLocationsAgentsPlaybooksExamplesPatchOptions = {}): Promise { opts = serializeProjectsLocationsAgentsPlaybooksExamplesPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return data as GoogleCloudDialogflowCxV3Example; } async projectsLocationsAgentsPlaybooksExport(name: string, req: GoogleCloudDialogflowCxV3ExportPlaybookRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }:export`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsPlaybooksGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3Playbook(data); } async projectsLocationsAgentsPlaybooksImport(parent: string, req: GoogleCloudDialogflowCxV3ImportPlaybookRequest): Promise { req = serializeGoogleCloudDialogflowCxV3ImportPlaybookRequest(req); const url = new URL(`${this.#baseUrl}v3/${ parent }/playbooks:import`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsPlaybooksList(parent: string, opts: ProjectsLocationsAgentsPlaybooksListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/playbooks`); if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3ListPlaybooksResponse(data); } async projectsLocationsAgentsPlaybooksPatch(name: string, req: GoogleCloudDialogflowCxV3Playbook, opts: ProjectsLocationsAgentsPlaybooksPatchOptions = {}): Promise { req = serializeGoogleCloudDialogflowCxV3Playbook(req); opts = serializeProjectsLocationsAgentsPlaybooksPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return deserializeGoogleCloudDialogflowCxV3Playbook(data); } async projectsLocationsAgentsPlaybooksVersionsCreate(parent: string, req: GoogleCloudDialogflowCxV3PlaybookVersion): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/versions`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleCloudDialogflowCxV3PlaybookVersion; } async projectsLocationsAgentsPlaybooksVersionsDelete(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsPlaybooksVersionsGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3PlaybookVersion; } async projectsLocationsAgentsPlaybooksVersionsList(parent: string, opts: ProjectsLocationsAgentsPlaybooksVersionsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/versions`); if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3ListPlaybookVersionsResponse; } async projectsLocationsAgentsPlaybooksVersionsRestore(name: string, req: GoogleCloudDialogflowCxV3RestorePlaybookVersionRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }:restore`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3RestorePlaybookVersionResponse(data); } async projectsLocationsAgentsRestore(name: string, req: GoogleCloudDialogflowCxV3RestoreAgentRequest): Promise { req = serializeGoogleCloudDialogflowCxV3RestoreAgentRequest(req); const url = new URL(`${this.#baseUrl}v3/${ name }:restore`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsSessionsDetectIntent(session: string, req: GoogleCloudDialogflowCxV3DetectIntentRequest): Promise { req = serializeGoogleCloudDialogflowCxV3DetectIntentRequest(req); const url = new URL(`${this.#baseUrl}v3/${ session }:detectIntent`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3DetectIntentResponse(data); } async projectsLocationsAgentsSessionsEntityTypesCreate(parent: string, req: GoogleCloudDialogflowCxV3SessionEntityType): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/entityTypes`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleCloudDialogflowCxV3SessionEntityType; } async projectsLocationsAgentsSessionsEntityTypesDelete(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsSessionsEntityTypesGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3SessionEntityType; } async projectsLocationsAgentsSessionsEntityTypesList(parent: string, opts: ProjectsLocationsAgentsSessionsEntityTypesListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/entityTypes`); if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse; } async projectsLocationsAgentsSessionsEntityTypesPatch(name: string, req: GoogleCloudDialogflowCxV3SessionEntityType, opts: ProjectsLocationsAgentsSessionsEntityTypesPatchOptions = {}): Promise { opts = serializeProjectsLocationsAgentsSessionsEntityTypesPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return data as GoogleCloudDialogflowCxV3SessionEntityType; } async projectsLocationsAgentsSessionsFulfillIntent(session: string, req: GoogleCloudDialogflowCxV3FulfillIntentRequest): Promise { req = serializeGoogleCloudDialogflowCxV3FulfillIntentRequest(req); const url = new URL(`${this.#baseUrl}v3/${ session }:fulfillIntent`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3FulfillIntentResponse(data); } async projectsLocationsAgentsSessionsMatchIntent(session: string, req: GoogleCloudDialogflowCxV3MatchIntentRequest): Promise { req = serializeGoogleCloudDialogflowCxV3MatchIntentRequest(req); const url = new URL(`${this.#baseUrl}v3/${ session }:matchIntent`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3MatchIntentResponse(data); } async projectsLocationsAgentsSessionsServerStreamingDetectIntent(session: string, req: GoogleCloudDialogflowCxV3DetectIntentRequest): Promise { req = serializeGoogleCloudDialogflowCxV3DetectIntentRequest(req); const url = new URL(`${this.#baseUrl}v3/${ session }:serverStreamingDetectIntent`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3DetectIntentResponse(data); } async projectsLocationsAgentsSessionsSubmitAnswerFeedback(session: string, req: GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest): Promise { req = serializeGoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest(req); const url = new URL(`${this.#baseUrl}v3/${ session }:submitAnswerFeedback`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleCloudDialogflowCxV3AnswerFeedback; } async projectsLocationsAgentsTestCasesBatchDelete(parent: string, req: GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/testCases:batchDelete`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsTestCasesBatchRun(parent: string, req: GoogleCloudDialogflowCxV3BatchRunTestCasesRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/testCases:batchRun`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsTestCasesCalculateCoverage(agent: string, opts: ProjectsLocationsAgentsTestCasesCalculateCoverageOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ agent }/testCases:calculateCoverage`); if (opts.type !== undefined) { url.searchParams.append("type", String(opts.type)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3CalculateCoverageResponse(data); } async projectsLocationsAgentsTestCasesCreate(parent: string, req: GoogleCloudDialogflowCxV3TestCase): Promise { req = serializeGoogleCloudDialogflowCxV3TestCase(req); const url = new URL(`${this.#baseUrl}v3/${ parent }/testCases`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3TestCase(data); } async projectsLocationsAgentsTestCasesExport(parent: string, req: GoogleCloudDialogflowCxV3ExportTestCasesRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/testCases:export`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsTestCasesGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3TestCase(data); } async projectsLocationsAgentsTestCasesImport(parent: string, req: GoogleCloudDialogflowCxV3ImportTestCasesRequest): Promise { req = serializeGoogleCloudDialogflowCxV3ImportTestCasesRequest(req); const url = new URL(`${this.#baseUrl}v3/${ parent }/testCases:import`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsTestCasesList(parent: string, opts: ProjectsLocationsAgentsTestCasesListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/testCases`); if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } if (opts.view !== undefined) { url.searchParams.append("view", String(opts.view)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3ListTestCasesResponse(data); } async projectsLocationsAgentsTestCasesPatch(name: string, req: GoogleCloudDialogflowCxV3TestCase, opts: ProjectsLocationsAgentsTestCasesPatchOptions = {}): Promise { req = serializeGoogleCloudDialogflowCxV3TestCase(req); opts = serializeProjectsLocationsAgentsTestCasesPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return deserializeGoogleCloudDialogflowCxV3TestCase(data); } async projectsLocationsAgentsTestCasesResultsGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3TestCaseResult(data); } async projectsLocationsAgentsTestCasesResultsList(parent: string, opts: ProjectsLocationsAgentsTestCasesResultsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/results`); if (opts.filter !== undefined) { url.searchParams.append("filter", String(opts.filter)); } if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3ListTestCaseResultsResponse(data); } async projectsLocationsAgentsTestCasesRun(name: string, req: GoogleCloudDialogflowCxV3RunTestCaseRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }:run`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleLongrunningOperation; } async projectsLocationsAgentsToolsCreate(parent: string, req: GoogleCloudDialogflowCxV3Tool): Promise { req = serializeGoogleCloudDialogflowCxV3Tool(req); const url = new URL(`${this.#baseUrl}v3/${ parent }/tools`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3Tool(data); } async projectsLocationsAgentsToolsDelete(name: string, opts: ProjectsLocationsAgentsToolsDeleteOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.force !== undefined) { url.searchParams.append("force", String(opts.force)); } const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsToolsGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3Tool(data); } async projectsLocationsAgentsToolsList(parent: string, opts: ProjectsLocationsAgentsToolsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/tools`); if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3ListToolsResponse(data); } async projectsLocationsAgentsToolsPatch(name: string, req: GoogleCloudDialogflowCxV3Tool, opts: ProjectsLocationsAgentsToolsPatchOptions = {}): Promise { req = serializeGoogleCloudDialogflowCxV3Tool(req); opts = serializeProjectsLocationsAgentsToolsPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return deserializeGoogleCloudDialogflowCxV3Tool(data); } async projectsLocationsAgentsToolsVersionsCreate(parent: string, req: GoogleCloudDialogflowCxV3ToolVersion): Promise { req = serializeGoogleCloudDialogflowCxV3ToolVersion(req); const url = new URL(`${this.#baseUrl}v3/${ parent }/versions`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3ToolVersion(data); } async projectsLocationsAgentsToolsVersionsDelete(name: string, opts: ProjectsLocationsAgentsToolsVersionsDeleteOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.force !== undefined) { url.searchParams.append("force", String(opts.force)); } const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsToolsVersionsGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3ToolVersion(data); } async projectsLocationsAgentsToolsVersionsList(parent: string, opts: ProjectsLocationsAgentsToolsVersionsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/versions`); if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3ListToolVersionsResponse(data); } async projectsLocationsAgentsToolsVersionsRestore(name: string, req: GoogleCloudDialogflowCxV3RestoreToolVersionRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }:restore`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3RestoreToolVersionResponse(data); } async projectsLocationsAgentsTransitionRouteGroupsCreate(parent: string, req: GoogleCloudDialogflowCxV3TransitionRouteGroup, opts: ProjectsLocationsAgentsTransitionRouteGroupsCreateOptions = {}): Promise { req = serializeGoogleCloudDialogflowCxV3TransitionRouteGroup(req); const url = new URL(`${this.#baseUrl}v3/${ parent }/transitionRouteGroups`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3TransitionRouteGroup(data); } async projectsLocationsAgentsTransitionRouteGroupsDelete(name: string, opts: ProjectsLocationsAgentsTransitionRouteGroupsDeleteOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.force !== undefined) { url.searchParams.append("force", String(opts.force)); } const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsTransitionRouteGroupsGet(name: string, opts: ProjectsLocationsAgentsTransitionRouteGroupsGetOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3TransitionRouteGroup(data); } async projectsLocationsAgentsTransitionRouteGroupsList(parent: string, opts: ProjectsLocationsAgentsTransitionRouteGroupsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/transitionRouteGroups`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse(data); } async projectsLocationsAgentsTransitionRouteGroupsPatch(name: string, req: GoogleCloudDialogflowCxV3TransitionRouteGroup, opts: ProjectsLocationsAgentsTransitionRouteGroupsPatchOptions = {}): Promise { req = serializeGoogleCloudDialogflowCxV3TransitionRouteGroup(req); opts = serializeProjectsLocationsAgentsTransitionRouteGroupsPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.languageCode !== undefined) { url.searchParams.append("languageCode", String(opts.languageCode)); } if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return deserializeGoogleCloudDialogflowCxV3TransitionRouteGroup(data); } async projectsLocationsAgentsUpdateGenerativeSettings(name: string, req: GoogleCloudDialogflowCxV3GenerativeSettings, opts: ProjectsLocationsAgentsUpdateGenerativeSettingsOptions = {}): Promise { opts = serializeProjectsLocationsAgentsUpdateGenerativeSettingsOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return data as GoogleCloudDialogflowCxV3GenerativeSettings; } async projectsLocationsAgentsValidate(name: string, req: GoogleCloudDialogflowCxV3ValidateAgentRequest): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }:validate`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3AgentValidationResult(data); } async projectsLocationsAgentsWebhooksCreate(parent: string, req: GoogleCloudDialogflowCxV3Webhook): Promise { req = serializeGoogleCloudDialogflowCxV3Webhook(req); const url = new URL(`${this.#baseUrl}v3/${ parent }/webhooks`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return deserializeGoogleCloudDialogflowCxV3Webhook(data); } async projectsLocationsAgentsWebhooksDelete(name: string, opts: ProjectsLocationsAgentsWebhooksDeleteOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.force !== undefined) { url.searchParams.append("force", String(opts.force)); } const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsAgentsWebhooksGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3Webhook(data); } async projectsLocationsAgentsWebhooksList(parent: string, opts: ProjectsLocationsAgentsWebhooksListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/webhooks`); if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return deserializeGoogleCloudDialogflowCxV3ListWebhooksResponse(data); } async projectsLocationsAgentsWebhooksPatch(name: string, req: GoogleCloudDialogflowCxV3Webhook, opts: ProjectsLocationsAgentsWebhooksPatchOptions = {}): Promise { req = serializeGoogleCloudDialogflowCxV3Webhook(req); opts = serializeProjectsLocationsAgentsWebhooksPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return deserializeGoogleCloudDialogflowCxV3Webhook(data); } async projectsLocationsGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudLocationLocation; } async projectsLocationsList(name: string, opts: ProjectsLocationsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }/locations`); if (opts.extraLocationTypes !== undefined) { url.searchParams.append("extraLocationTypes", String(opts.extraLocationTypes)); } if (opts.filter !== undefined) { url.searchParams.append("filter", String(opts.filter)); } if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudLocationListLocationsResponse; } async projectsLocationsOperationsCancel(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }:cancel`); const data = await request(url.href, { client: this.#client, method: "POST", }); return data as GoogleProtobufEmpty; } async projectsLocationsOperationsGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleLongrunningOperation; } async projectsLocationsOperationsList(name: string, opts: ProjectsLocationsOperationsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }/operations`); if (opts.filter !== undefined) { url.searchParams.append("filter", String(opts.filter)); } if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } if (opts.returnPartialSuccess !== undefined) { url.searchParams.append("returnPartialSuccess", String(opts.returnPartialSuccess)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleLongrunningListOperationsResponse; } async projectsLocationsSecuritySettingsCreate(parent: string, req: GoogleCloudDialogflowCxV3SecuritySettings): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/securitySettings`); const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "POST", body, }); return data as GoogleCloudDialogflowCxV3SecuritySettings; } async projectsLocationsSecuritySettingsDelete(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "DELETE", }); return data as GoogleProtobufEmpty; } async projectsLocationsSecuritySettingsGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3SecuritySettings; } async projectsLocationsSecuritySettingsList(parent: string, opts: ProjectsLocationsSecuritySettingsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ parent }/securitySettings`); if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleCloudDialogflowCxV3ListSecuritySettingsResponse; } async projectsLocationsSecuritySettingsPatch(name: string, req: GoogleCloudDialogflowCxV3SecuritySettings, opts: ProjectsLocationsSecuritySettingsPatchOptions = {}): Promise { opts = serializeProjectsLocationsSecuritySettingsPatchOptions(opts); const url = new URL(`${this.#baseUrl}v3/${ name }`); if (opts.updateMask !== undefined) { url.searchParams.append("updateMask", String(opts.updateMask)); } const body = JSON.stringify(req); const data = await request(url.href, { client: this.#client, method: "PATCH", body, }); return data as GoogleCloudDialogflowCxV3SecuritySettings; } async projectsOperationsCancel(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }:cancel`); const data = await request(url.href, { client: this.#client, method: "POST", }); return data as GoogleProtobufEmpty; } async projectsOperationsGet(name: string): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }`); const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleLongrunningOperation; } async projectsOperationsList(name: string, opts: ProjectsOperationsListOptions = {}): Promise { const url = new URL(`${this.#baseUrl}v3/${ name }/operations`); if (opts.filter !== undefined) { url.searchParams.append("filter", String(opts.filter)); } if (opts.pageSize !== undefined) { url.searchParams.append("pageSize", String(opts.pageSize)); } if (opts.pageToken !== undefined) { url.searchParams.append("pageToken", String(opts.pageToken)); } if (opts.returnPartialSuccess !== undefined) { url.searchParams.append("returnPartialSuccess", String(opts.returnPartialSuccess)); } const data = await request(url.href, { client: this.#client, method: "GET", }); return data as GoogleLongrunningListOperationsResponse; } } export interface GoogleCloudDialogflowCxV3Action { agentUtterance?: GoogleCloudDialogflowCxV3AgentUtterance; flowInvocation?: GoogleCloudDialogflowCxV3FlowInvocation; flowTransition?: GoogleCloudDialogflowCxV3FlowTransition; playbookInvocation?: GoogleCloudDialogflowCxV3PlaybookInvocation; playbookTransition?: GoogleCloudDialogflowCxV3PlaybookTransition; toolUse?: GoogleCloudDialogflowCxV3ToolUse; userUtterance?: GoogleCloudDialogflowCxV3UserUtterance; } export interface GoogleCloudDialogflowCxV3AdvancedSettings { audioExportGcsDestination?: GoogleCloudDialogflowCxV3GcsDestination; dtmfSettings?: GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings; loggingSettings?: GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings; speechSettings?: GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings; } function serializeGoogleCloudDialogflowCxV3AdvancedSettings(data: any): GoogleCloudDialogflowCxV3AdvancedSettings { return { ...data, dtmfSettings: data["dtmfSettings"] !== undefined ? serializeGoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings(data["dtmfSettings"]) : undefined, speechSettings: data["speechSettings"] !== undefined ? serializeGoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings(data["speechSettings"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3AdvancedSettings(data: any): GoogleCloudDialogflowCxV3AdvancedSettings { return { ...data, dtmfSettings: data["dtmfSettings"] !== undefined ? deserializeGoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings(data["dtmfSettings"]) : undefined, speechSettings: data["speechSettings"] !== undefined ? deserializeGoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings(data["speechSettings"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings { enabled?: boolean; endpointingTimeoutDuration?: number /* Duration */; finishDigit?: string; interdigitTimeoutDuration?: number /* Duration */; maxDigits?: number; } function serializeGoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings(data: any): GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings { return { ...data, endpointingTimeoutDuration: data["endpointingTimeoutDuration"] !== undefined ? data["endpointingTimeoutDuration"] : undefined, interdigitTimeoutDuration: data["interdigitTimeoutDuration"] !== undefined ? data["interdigitTimeoutDuration"] : undefined, }; } function deserializeGoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings(data: any): GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings { return { ...data, endpointingTimeoutDuration: data["endpointingTimeoutDuration"] !== undefined ? data["endpointingTimeoutDuration"] : undefined, interdigitTimeoutDuration: data["interdigitTimeoutDuration"] !== undefined ? data["interdigitTimeoutDuration"] : undefined, }; } export interface GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings { enableConsentBasedRedaction?: boolean; enableInteractionLogging?: boolean; enableStackdriverLogging?: boolean; } export interface GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings { endpointerSensitivity?: number; models?: { [key: string]: string }; noSpeechTimeout?: number /* Duration */; useTimeoutBasedEndpointing?: boolean; } function serializeGoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings(data: any): GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings { return { ...data, noSpeechTimeout: data["noSpeechTimeout"] !== undefined ? data["noSpeechTimeout"] : undefined, }; } function deserializeGoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings(data: any): GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings { return { ...data, noSpeechTimeout: data["noSpeechTimeout"] !== undefined ? data["noSpeechTimeout"] : undefined, }; } export interface GoogleCloudDialogflowCxV3Agent { advancedSettings?: GoogleCloudDialogflowCxV3AdvancedSettings; answerFeedbackSettings?: GoogleCloudDialogflowCxV3AgentAnswerFeedbackSettings; avatarUri?: string; clientCertificateSettings?: GoogleCloudDialogflowCxV3AgentClientCertificateSettings; defaultLanguageCode?: string; description?: string; displayName?: string; enableMultiLanguageTraining?: boolean; enableSpellCorrection?: boolean; enableStackdriverLogging?: boolean; genAppBuilderSettings?: GoogleCloudDialogflowCxV3AgentGenAppBuilderSettings; gitIntegrationSettings?: GoogleCloudDialogflowCxV3AgentGitIntegrationSettings; locked?: boolean; name?: string; personalizationSettings?: GoogleCloudDialogflowCxV3AgentPersonalizationSettings; readonly satisfiesPzi?: boolean; readonly satisfiesPzs?: boolean; securitySettings?: string; speechToTextSettings?: GoogleCloudDialogflowCxV3SpeechToTextSettings; startFlow?: string; startPlaybook?: string; supportedLanguageCodes?: string[]; textToSpeechSettings?: GoogleCloudDialogflowCxV3TextToSpeechSettings; timeZone?: string; } function serializeGoogleCloudDialogflowCxV3Agent(data: any): GoogleCloudDialogflowCxV3Agent { return { ...data, advancedSettings: data["advancedSettings"] !== undefined ? serializeGoogleCloudDialogflowCxV3AdvancedSettings(data["advancedSettings"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3Agent(data: any): GoogleCloudDialogflowCxV3Agent { return { ...data, advancedSettings: data["advancedSettings"] !== undefined ? deserializeGoogleCloudDialogflowCxV3AdvancedSettings(data["advancedSettings"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3AgentAnswerFeedbackSettings { enableAnswerFeedback?: boolean; } export interface GoogleCloudDialogflowCxV3AgentClientCertificateSettings { passphrase?: string; privateKey?: string; sslCertificate?: string; } export interface GoogleCloudDialogflowCxV3AgentGenAppBuilderSettings { engine?: string; } export interface GoogleCloudDialogflowCxV3AgentGitIntegrationSettings { githubSettings?: GoogleCloudDialogflowCxV3AgentGitIntegrationSettingsGithubSettings; } export interface GoogleCloudDialogflowCxV3AgentGitIntegrationSettingsGithubSettings { accessToken?: string; branches?: string[]; displayName?: string; repositoryUri?: string; trackingBranch?: string; } export interface GoogleCloudDialogflowCxV3AgentPersonalizationSettings { defaultEndUserMetadata?: { [key: string]: any }; } export interface GoogleCloudDialogflowCxV3AgentUtterance { text?: string; } export interface GoogleCloudDialogflowCxV3AgentValidationResult { flowValidationResults?: GoogleCloudDialogflowCxV3FlowValidationResult[]; name?: string; } function serializeGoogleCloudDialogflowCxV3AgentValidationResult(data: any): GoogleCloudDialogflowCxV3AgentValidationResult { return { ...data, flowValidationResults: data["flowValidationResults"] !== undefined ? data["flowValidationResults"].map((item: any) => (serializeGoogleCloudDialogflowCxV3FlowValidationResult(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3AgentValidationResult(data: any): GoogleCloudDialogflowCxV3AgentValidationResult { return { ...data, flowValidationResults: data["flowValidationResults"] !== undefined ? data["flowValidationResults"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3FlowValidationResult(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3AnswerFeedback { customRating?: string; rating?: | "RATING_UNSPECIFIED" | "THUMBS_UP" | "THUMBS_DOWN"; ratingReason?: GoogleCloudDialogflowCxV3AnswerFeedbackRatingReason; } export interface GoogleCloudDialogflowCxV3AnswerFeedbackRatingReason { feedback?: string; reasonLabels?: string[]; } export interface GoogleCloudDialogflowCxV3AudioInput { audio?: Uint8Array; config?: GoogleCloudDialogflowCxV3InputAudioConfig; } function serializeGoogleCloudDialogflowCxV3AudioInput(data: any): GoogleCloudDialogflowCxV3AudioInput { return { ...data, audio: data["audio"] !== undefined ? encodeBase64(data["audio"]) : undefined, config: data["config"] !== undefined ? serializeGoogleCloudDialogflowCxV3InputAudioConfig(data["config"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3AudioInput(data: any): GoogleCloudDialogflowCxV3AudioInput { return { ...data, audio: data["audio"] !== undefined ? decodeBase64(data["audio"] as string) : undefined, config: data["config"] !== undefined ? deserializeGoogleCloudDialogflowCxV3InputAudioConfig(data["config"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3BargeInConfig { noBargeInDuration?: number /* Duration */; totalDuration?: number /* Duration */; } function serializeGoogleCloudDialogflowCxV3BargeInConfig(data: any): GoogleCloudDialogflowCxV3BargeInConfig { return { ...data, noBargeInDuration: data["noBargeInDuration"] !== undefined ? data["noBargeInDuration"] : undefined, totalDuration: data["totalDuration"] !== undefined ? data["totalDuration"] : undefined, }; } function deserializeGoogleCloudDialogflowCxV3BargeInConfig(data: any): GoogleCloudDialogflowCxV3BargeInConfig { return { ...data, noBargeInDuration: data["noBargeInDuration"] !== undefined ? data["noBargeInDuration"] : undefined, totalDuration: data["totalDuration"] !== undefined ? data["totalDuration"] : undefined, }; } export interface GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest { names?: string[]; } export interface GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata { errors?: GoogleCloudDialogflowCxV3TestError[]; } function serializeGoogleCloudDialogflowCxV3BatchRunTestCasesMetadata(data: any): GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata { return { ...data, errors: data["errors"] !== undefined ? data["errors"].map((item: any) => (serializeGoogleCloudDialogflowCxV3TestError(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3BatchRunTestCasesMetadata(data: any): GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata { return { ...data, errors: data["errors"] !== undefined ? data["errors"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3TestError(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3BatchRunTestCasesRequest { environment?: string; testCases?: string[]; } export interface GoogleCloudDialogflowCxV3BatchRunTestCasesResponse { results?: GoogleCloudDialogflowCxV3TestCaseResult[]; } function serializeGoogleCloudDialogflowCxV3BatchRunTestCasesResponse(data: any): GoogleCloudDialogflowCxV3BatchRunTestCasesResponse { return { ...data, results: data["results"] !== undefined ? data["results"].map((item: any) => (serializeGoogleCloudDialogflowCxV3TestCaseResult(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3BatchRunTestCasesResponse(data: any): GoogleCloudDialogflowCxV3BatchRunTestCasesResponse { return { ...data, results: data["results"] !== undefined ? data["results"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3TestCaseResult(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1AdvancedSettings { audioExportGcsDestination?: GoogleCloudDialogflowCxV3beta1GcsDestination; dtmfSettings?: GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings; loggingSettings?: GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings; speechSettings?: GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings; } function serializeGoogleCloudDialogflowCxV3beta1AdvancedSettings(data: any): GoogleCloudDialogflowCxV3beta1AdvancedSettings { return { ...data, dtmfSettings: data["dtmfSettings"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings(data["dtmfSettings"]) : undefined, speechSettings: data["speechSettings"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings(data["speechSettings"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1AdvancedSettings(data: any): GoogleCloudDialogflowCxV3beta1AdvancedSettings { return { ...data, dtmfSettings: data["dtmfSettings"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings(data["dtmfSettings"]) : undefined, speechSettings: data["speechSettings"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings(data["speechSettings"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings { enabled?: boolean; endpointingTimeoutDuration?: number /* Duration */; finishDigit?: string; interdigitTimeoutDuration?: number /* Duration */; maxDigits?: number; } function serializeGoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings(data: any): GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings { return { ...data, endpointingTimeoutDuration: data["endpointingTimeoutDuration"] !== undefined ? data["endpointingTimeoutDuration"] : undefined, interdigitTimeoutDuration: data["interdigitTimeoutDuration"] !== undefined ? data["interdigitTimeoutDuration"] : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings(data: any): GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings { return { ...data, endpointingTimeoutDuration: data["endpointingTimeoutDuration"] !== undefined ? data["endpointingTimeoutDuration"] : undefined, interdigitTimeoutDuration: data["interdigitTimeoutDuration"] !== undefined ? data["interdigitTimeoutDuration"] : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings { enableConsentBasedRedaction?: boolean; enableInteractionLogging?: boolean; enableStackdriverLogging?: boolean; } export interface GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings { endpointerSensitivity?: number; models?: { [key: string]: string }; noSpeechTimeout?: number /* Duration */; useTimeoutBasedEndpointing?: boolean; } function serializeGoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings(data: any): GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings { return { ...data, noSpeechTimeout: data["noSpeechTimeout"] !== undefined ? data["noSpeechTimeout"] : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings(data: any): GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings { return { ...data, noSpeechTimeout: data["noSpeechTimeout"] !== undefined ? data["noSpeechTimeout"] : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1AudioInput { audio?: Uint8Array; config?: GoogleCloudDialogflowCxV3beta1InputAudioConfig; } function serializeGoogleCloudDialogflowCxV3beta1AudioInput(data: any): GoogleCloudDialogflowCxV3beta1AudioInput { return { ...data, audio: data["audio"] !== undefined ? encodeBase64(data["audio"]) : undefined, config: data["config"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1InputAudioConfig(data["config"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1AudioInput(data: any): GoogleCloudDialogflowCxV3beta1AudioInput { return { ...data, audio: data["audio"] !== undefined ? decodeBase64(data["audio"] as string) : undefined, config: data["config"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1InputAudioConfig(data["config"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1BargeInConfig { noBargeInDuration?: number /* Duration */; totalDuration?: number /* Duration */; } function serializeGoogleCloudDialogflowCxV3beta1BargeInConfig(data: any): GoogleCloudDialogflowCxV3beta1BargeInConfig { return { ...data, noBargeInDuration: data["noBargeInDuration"] !== undefined ? data["noBargeInDuration"] : undefined, totalDuration: data["totalDuration"] !== undefined ? data["totalDuration"] : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1BargeInConfig(data: any): GoogleCloudDialogflowCxV3beta1BargeInConfig { return { ...data, noBargeInDuration: data["noBargeInDuration"] !== undefined ? data["noBargeInDuration"] : undefined, totalDuration: data["totalDuration"] !== undefined ? data["totalDuration"] : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata { errors?: GoogleCloudDialogflowCxV3beta1TestError[]; } function serializeGoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata(data: any): GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata { return { ...data, errors: data["errors"] !== undefined ? data["errors"].map((item: any) => (serializeGoogleCloudDialogflowCxV3beta1TestError(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata(data: any): GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata { return { ...data, errors: data["errors"] !== undefined ? data["errors"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3beta1TestError(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse { results?: GoogleCloudDialogflowCxV3beta1TestCaseResult[]; } function serializeGoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse(data: any): GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse { return { ...data, results: data["results"] !== undefined ? data["results"].map((item: any) => (serializeGoogleCloudDialogflowCxV3beta1TestCaseResult(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse(data: any): GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse { return { ...data, results: data["results"] !== undefined ? data["results"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3beta1TestCaseResult(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1ContinuousTestResult { name?: string; result?: | "AGGREGATED_TEST_RESULT_UNSPECIFIED" | "PASSED" | "FAILED"; runTime?: Date; testCaseResults?: string[]; } function serializeGoogleCloudDialogflowCxV3beta1ContinuousTestResult(data: any): GoogleCloudDialogflowCxV3beta1ContinuousTestResult { return { ...data, runTime: data["runTime"] !== undefined ? data["runTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1ContinuousTestResult(data: any): GoogleCloudDialogflowCxV3beta1ContinuousTestResult { return { ...data, runTime: data["runTime"] !== undefined ? new Date(data["runTime"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1ConversationSignals { turnSignals?: GoogleCloudDialogflowCxV3beta1TurnSignals; } export interface GoogleCloudDialogflowCxV3beta1ConversationTurn { userInput?: GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput; virtualAgentOutput?: GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput; } function serializeGoogleCloudDialogflowCxV3beta1ConversationTurn(data: any): GoogleCloudDialogflowCxV3beta1ConversationTurn { return { ...data, userInput: data["userInput"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1ConversationTurnUserInput(data["userInput"]) : undefined, virtualAgentOutput: data["virtualAgentOutput"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput(data["virtualAgentOutput"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1ConversationTurn(data: any): GoogleCloudDialogflowCxV3beta1ConversationTurn { return { ...data, userInput: data["userInput"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1ConversationTurnUserInput(data["userInput"]) : undefined, virtualAgentOutput: data["virtualAgentOutput"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput(data["virtualAgentOutput"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput { enableSentimentAnalysis?: boolean; injectedParameters?: { [key: string]: any }; input?: GoogleCloudDialogflowCxV3beta1QueryInput; isWebhookEnabled?: boolean; } function serializeGoogleCloudDialogflowCxV3beta1ConversationTurnUserInput(data: any): GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput { return { ...data, input: data["input"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1QueryInput(data["input"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1ConversationTurnUserInput(data: any): GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput { return { ...data, input: data["input"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1QueryInput(data["input"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput { currentPage?: GoogleCloudDialogflowCxV3beta1Page; diagnosticInfo?: { [key: string]: any }; readonly differences?: GoogleCloudDialogflowCxV3beta1TestRunDifference[]; sessionParameters?: { [key: string]: any }; status?: GoogleRpcStatus; textResponses?: GoogleCloudDialogflowCxV3beta1ResponseMessageText[]; triggeredIntent?: GoogleCloudDialogflowCxV3beta1Intent; } function serializeGoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput(data: any): GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput { return { ...data, currentPage: data["currentPage"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1Page(data["currentPage"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput(data: any): GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput { return { ...data, currentPage: data["currentPage"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1Page(data["currentPage"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata { version?: string; } export interface GoogleCloudDialogflowCxV3beta1DataStoreConnection { dataStore?: string; dataStoreType?: | "DATA_STORE_TYPE_UNSPECIFIED" | "PUBLIC_WEB" | "UNSTRUCTURED" | "STRUCTURED"; documentProcessingMode?: | "DOCUMENT_PROCESSING_MODE_UNSPECIFIED" | "DOCUMENTS" | "CHUNKS"; } export interface GoogleCloudDialogflowCxV3beta1DeployFlowMetadata { testErrors?: GoogleCloudDialogflowCxV3beta1TestError[]; } function serializeGoogleCloudDialogflowCxV3beta1DeployFlowMetadata(data: any): GoogleCloudDialogflowCxV3beta1DeployFlowMetadata { return { ...data, testErrors: data["testErrors"] !== undefined ? data["testErrors"].map((item: any) => (serializeGoogleCloudDialogflowCxV3beta1TestError(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1DeployFlowMetadata(data: any): GoogleCloudDialogflowCxV3beta1DeployFlowMetadata { return { ...data, testErrors: data["testErrors"] !== undefined ? data["testErrors"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3beta1TestError(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1DeployFlowResponse { deployment?: string; environment?: GoogleCloudDialogflowCxV3beta1Environment; } function serializeGoogleCloudDialogflowCxV3beta1DeployFlowResponse(data: any): GoogleCloudDialogflowCxV3beta1DeployFlowResponse { return { ...data, environment: data["environment"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1Environment(data["environment"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1DeployFlowResponse(data: any): GoogleCloudDialogflowCxV3beta1DeployFlowResponse { return { ...data, environment: data["environment"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1Environment(data["environment"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1DtmfInput { digits?: string; finishDigit?: string; } export interface GoogleCloudDialogflowCxV3beta1Environment { description?: string; displayName?: string; name?: string; testCasesConfig?: GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig; readonly updateTime?: Date; versionConfigs?: GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig[]; webhookConfig?: GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig; } function serializeGoogleCloudDialogflowCxV3beta1Environment(data: any): GoogleCloudDialogflowCxV3beta1Environment { return { ...data, webhookConfig: data["webhookConfig"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig(data["webhookConfig"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1Environment(data: any): GoogleCloudDialogflowCxV3beta1Environment { return { ...data, updateTime: data["updateTime"] !== undefined ? new Date(data["updateTime"]) : undefined, webhookConfig: data["webhookConfig"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig(data["webhookConfig"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig { enableContinuousRun?: boolean; enablePredeploymentRun?: boolean; testCases?: string[]; } export interface GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig { version?: string; } export interface GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig { webhookOverrides?: GoogleCloudDialogflowCxV3beta1Webhook[]; } function serializeGoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig(data: any): GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig { return { ...data, webhookOverrides: data["webhookOverrides"] !== undefined ? data["webhookOverrides"].map((item: any) => (serializeGoogleCloudDialogflowCxV3beta1Webhook(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig(data: any): GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig { return { ...data, webhookOverrides: data["webhookOverrides"] !== undefined ? data["webhookOverrides"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3beta1Webhook(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1EventHandler { event?: string; readonly name?: string; targetFlow?: string; targetPage?: string; targetPlaybook?: string; triggerFulfillment?: GoogleCloudDialogflowCxV3beta1Fulfillment; } function serializeGoogleCloudDialogflowCxV3beta1EventHandler(data: any): GoogleCloudDialogflowCxV3beta1EventHandler { return { ...data, triggerFulfillment: data["triggerFulfillment"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1Fulfillment(data["triggerFulfillment"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1EventHandler(data: any): GoogleCloudDialogflowCxV3beta1EventHandler { return { ...data, triggerFulfillment: data["triggerFulfillment"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1Fulfillment(data["triggerFulfillment"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1EventInput { event?: string; } export interface GoogleCloudDialogflowCxV3beta1ExportAgentResponse { agentContent?: Uint8Array; agentUri?: string; commitSha?: string; } function serializeGoogleCloudDialogflowCxV3beta1ExportAgentResponse(data: any): GoogleCloudDialogflowCxV3beta1ExportAgentResponse { return { ...data, agentContent: data["agentContent"] !== undefined ? encodeBase64(data["agentContent"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1ExportAgentResponse(data: any): GoogleCloudDialogflowCxV3beta1ExportAgentResponse { return { ...data, agentContent: data["agentContent"] !== undefined ? decodeBase64(data["agentContent"] as string) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata { } export interface GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse { entityTypesContent?: GoogleCloudDialogflowCxV3beta1InlineDestination; entityTypesUri?: string; } export interface GoogleCloudDialogflowCxV3beta1ExportFlowResponse { flowContent?: Uint8Array; flowUri?: string; } function serializeGoogleCloudDialogflowCxV3beta1ExportFlowResponse(data: any): GoogleCloudDialogflowCxV3beta1ExportFlowResponse { return { ...data, flowContent: data["flowContent"] !== undefined ? encodeBase64(data["flowContent"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1ExportFlowResponse(data: any): GoogleCloudDialogflowCxV3beta1ExportFlowResponse { return { ...data, flowContent: data["flowContent"] !== undefined ? decodeBase64(data["flowContent"] as string) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1ExportIntentsMetadata { } export interface GoogleCloudDialogflowCxV3beta1ExportIntentsResponse { intentsContent?: GoogleCloudDialogflowCxV3beta1InlineDestination; intentsUri?: string; } export interface GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata { } export interface GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse { content?: Uint8Array; gcsUri?: string; } function serializeGoogleCloudDialogflowCxV3beta1ExportTestCasesResponse(data: any): GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse { return { ...data, content: data["content"] !== undefined ? encodeBase64(data["content"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1ExportTestCasesResponse(data: any): GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse { return { ...data, content: data["content"] !== undefined ? decodeBase64(data["content"] as string) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1Form { parameters?: GoogleCloudDialogflowCxV3beta1FormParameter[]; } function serializeGoogleCloudDialogflowCxV3beta1Form(data: any): GoogleCloudDialogflowCxV3beta1Form { return { ...data, parameters: data["parameters"] !== undefined ? data["parameters"].map((item: any) => (serializeGoogleCloudDialogflowCxV3beta1FormParameter(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1Form(data: any): GoogleCloudDialogflowCxV3beta1Form { return { ...data, parameters: data["parameters"] !== undefined ? data["parameters"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3beta1FormParameter(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1FormParameter { advancedSettings?: GoogleCloudDialogflowCxV3beta1AdvancedSettings; defaultValue?: any; displayName?: string; entityType?: string; fillBehavior?: GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior; isList?: boolean; redact?: boolean; required?: boolean; } function serializeGoogleCloudDialogflowCxV3beta1FormParameter(data: any): GoogleCloudDialogflowCxV3beta1FormParameter { return { ...data, advancedSettings: data["advancedSettings"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1AdvancedSettings(data["advancedSettings"]) : undefined, fillBehavior: data["fillBehavior"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1FormParameterFillBehavior(data["fillBehavior"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1FormParameter(data: any): GoogleCloudDialogflowCxV3beta1FormParameter { return { ...data, advancedSettings: data["advancedSettings"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1AdvancedSettings(data["advancedSettings"]) : undefined, fillBehavior: data["fillBehavior"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1FormParameterFillBehavior(data["fillBehavior"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior { initialPromptFulfillment?: GoogleCloudDialogflowCxV3beta1Fulfillment; repromptEventHandlers?: GoogleCloudDialogflowCxV3beta1EventHandler[]; } function serializeGoogleCloudDialogflowCxV3beta1FormParameterFillBehavior(data: any): GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior { return { ...data, initialPromptFulfillment: data["initialPromptFulfillment"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1Fulfillment(data["initialPromptFulfillment"]) : undefined, repromptEventHandlers: data["repromptEventHandlers"] !== undefined ? data["repromptEventHandlers"].map((item: any) => (serializeGoogleCloudDialogflowCxV3beta1EventHandler(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1FormParameterFillBehavior(data: any): GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior { return { ...data, initialPromptFulfillment: data["initialPromptFulfillment"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1Fulfillment(data["initialPromptFulfillment"]) : undefined, repromptEventHandlers: data["repromptEventHandlers"] !== undefined ? data["repromptEventHandlers"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3beta1EventHandler(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1Fulfillment { advancedSettings?: GoogleCloudDialogflowCxV3beta1AdvancedSettings; conditionalCases?: GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases[]; enableGenerativeFallback?: boolean; generators?: GoogleCloudDialogflowCxV3beta1FulfillmentGeneratorSettings[]; messages?: GoogleCloudDialogflowCxV3beta1ResponseMessage[]; returnPartialResponses?: boolean; setParameterActions?: GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction[]; tag?: string; webhook?: string; } function serializeGoogleCloudDialogflowCxV3beta1Fulfillment(data: any): GoogleCloudDialogflowCxV3beta1Fulfillment { return { ...data, advancedSettings: data["advancedSettings"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1AdvancedSettings(data["advancedSettings"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1Fulfillment(data: any): GoogleCloudDialogflowCxV3beta1Fulfillment { return { ...data, advancedSettings: data["advancedSettings"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1AdvancedSettings(data["advancedSettings"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases { cases?: GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase[]; } export interface GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase { caseContent?: GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent[]; condition?: string; } export interface GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent { additionalCases?: GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases; message?: GoogleCloudDialogflowCxV3beta1ResponseMessage; } export interface GoogleCloudDialogflowCxV3beta1FulfillmentGeneratorSettings { generator?: string; inputParameters?: { [key: string]: string }; outputParameter?: string; } export interface GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction { parameter?: string; value?: any; } export interface GoogleCloudDialogflowCxV3beta1GcsDestination { uri?: string; } export interface GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata { } export interface GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse { conflictingResources?: GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources; entityTypes?: string[]; } export interface GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources { entityDisplayNames?: string[]; entityTypeDisplayNames?: string[]; } export interface GoogleCloudDialogflowCxV3beta1ImportFlowResponse { flow?: string; } export interface GoogleCloudDialogflowCxV3beta1ImportIntentsMetadata { } export interface GoogleCloudDialogflowCxV3beta1ImportIntentsResponse { conflictingResources?: GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources; intents?: string[]; } export interface GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources { entityDisplayNames?: string[]; intentDisplayNames?: string[]; } export interface GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata { errors?: GoogleCloudDialogflowCxV3beta1TestCaseError[]; } function serializeGoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata(data: any): GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata { return { ...data, errors: data["errors"] !== undefined ? data["errors"].map((item: any) => (serializeGoogleCloudDialogflowCxV3beta1TestCaseError(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata(data: any): GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata { return { ...data, errors: data["errors"] !== undefined ? data["errors"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3beta1TestCaseError(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse { names?: string[]; } export interface GoogleCloudDialogflowCxV3beta1InlineDestination { readonly content?: Uint8Array; } export interface GoogleCloudDialogflowCxV3beta1InputAudioConfig { audioEncoding?: | "AUDIO_ENCODING_UNSPECIFIED" | "AUDIO_ENCODING_LINEAR_16" | "AUDIO_ENCODING_FLAC" | "AUDIO_ENCODING_MULAW" | "AUDIO_ENCODING_AMR" | "AUDIO_ENCODING_AMR_WB" | "AUDIO_ENCODING_OGG_OPUS" | "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" | "AUDIO_ENCODING_ALAW"; bargeInConfig?: GoogleCloudDialogflowCxV3beta1BargeInConfig; enableWordInfo?: boolean; model?: string; modelVariant?: | "SPEECH_MODEL_VARIANT_UNSPECIFIED" | "USE_BEST_AVAILABLE" | "USE_STANDARD" | "USE_ENHANCED"; optOutConformerModelMigration?: boolean; phraseHints?: string[]; sampleRateHertz?: number; singleUtterance?: boolean; } function serializeGoogleCloudDialogflowCxV3beta1InputAudioConfig(data: any): GoogleCloudDialogflowCxV3beta1InputAudioConfig { return { ...data, bargeInConfig: data["bargeInConfig"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1BargeInConfig(data["bargeInConfig"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1InputAudioConfig(data: any): GoogleCloudDialogflowCxV3beta1InputAudioConfig { return { ...data, bargeInConfig: data["bargeInConfig"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1BargeInConfig(data["bargeInConfig"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1Intent { description?: string; displayName?: string; isFallback?: boolean; labels?: { [key: string]: string }; name?: string; parameters?: GoogleCloudDialogflowCxV3beta1IntentParameter[]; priority?: number; trainingPhrases?: GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase[]; } export interface GoogleCloudDialogflowCxV3beta1IntentInput { intent?: string; } export interface GoogleCloudDialogflowCxV3beta1IntentParameter { entityType?: string; id?: string; isList?: boolean; redact?: boolean; } export interface GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase { readonly id?: string; parts?: GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart[]; repeatCount?: number; } export interface GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart { parameterId?: string; text?: string; } export interface GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings { dataStoreConnections?: GoogleCloudDialogflowCxV3beta1DataStoreConnection[]; enabled?: boolean; targetFlow?: string; targetPage?: string; triggerFulfillment?: GoogleCloudDialogflowCxV3beta1Fulfillment; } function serializeGoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings(data: any): GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings { return { ...data, triggerFulfillment: data["triggerFulfillment"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1Fulfillment(data["triggerFulfillment"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings(data: any): GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings { return { ...data, triggerFulfillment: data["triggerFulfillment"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1Fulfillment(data["triggerFulfillment"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1LanguageInfo { confidenceScore?: number; inputLanguageCode?: string; resolvedLanguageCode?: string; } export interface GoogleCloudDialogflowCxV3beta1Page { advancedSettings?: GoogleCloudDialogflowCxV3beta1AdvancedSettings; description?: string; displayName?: string; entryFulfillment?: GoogleCloudDialogflowCxV3beta1Fulfillment; eventHandlers?: GoogleCloudDialogflowCxV3beta1EventHandler[]; form?: GoogleCloudDialogflowCxV3beta1Form; knowledgeConnectorSettings?: GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings; name?: string; transitionRouteGroups?: string[]; transitionRoutes?: GoogleCloudDialogflowCxV3beta1TransitionRoute[]; } function serializeGoogleCloudDialogflowCxV3beta1Page(data: any): GoogleCloudDialogflowCxV3beta1Page { return { ...data, advancedSettings: data["advancedSettings"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1AdvancedSettings(data["advancedSettings"]) : undefined, entryFulfillment: data["entryFulfillment"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1Fulfillment(data["entryFulfillment"]) : undefined, eventHandlers: data["eventHandlers"] !== undefined ? data["eventHandlers"].map((item: any) => (serializeGoogleCloudDialogflowCxV3beta1EventHandler(item))) : undefined, form: data["form"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1Form(data["form"]) : undefined, knowledgeConnectorSettings: data["knowledgeConnectorSettings"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings(data["knowledgeConnectorSettings"]) : undefined, transitionRoutes: data["transitionRoutes"] !== undefined ? data["transitionRoutes"].map((item: any) => (serializeGoogleCloudDialogflowCxV3beta1TransitionRoute(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1Page(data: any): GoogleCloudDialogflowCxV3beta1Page { return { ...data, advancedSettings: data["advancedSettings"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1AdvancedSettings(data["advancedSettings"]) : undefined, entryFulfillment: data["entryFulfillment"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1Fulfillment(data["entryFulfillment"]) : undefined, eventHandlers: data["eventHandlers"] !== undefined ? data["eventHandlers"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3beta1EventHandler(item))) : undefined, form: data["form"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1Form(data["form"]) : undefined, knowledgeConnectorSettings: data["knowledgeConnectorSettings"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings(data["knowledgeConnectorSettings"]) : undefined, transitionRoutes: data["transitionRoutes"] !== undefined ? data["transitionRoutes"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3beta1TransitionRoute(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1PageInfo { currentPage?: string; displayName?: string; formInfo?: GoogleCloudDialogflowCxV3beta1PageInfoFormInfo; } export interface GoogleCloudDialogflowCxV3beta1PageInfoFormInfo { parameterInfo?: GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo[]; } export interface GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo { displayName?: string; justCollected?: boolean; required?: boolean; state?: | "PARAMETER_STATE_UNSPECIFIED" | "EMPTY" | "INVALID" | "FILLED"; value?: any; } export interface GoogleCloudDialogflowCxV3beta1QueryInput { audio?: GoogleCloudDialogflowCxV3beta1AudioInput; dtmf?: GoogleCloudDialogflowCxV3beta1DtmfInput; event?: GoogleCloudDialogflowCxV3beta1EventInput; intent?: GoogleCloudDialogflowCxV3beta1IntentInput; languageCode?: string; text?: GoogleCloudDialogflowCxV3beta1TextInput; toolCallResult?: GoogleCloudDialogflowCxV3beta1ToolCallResult; } function serializeGoogleCloudDialogflowCxV3beta1QueryInput(data: any): GoogleCloudDialogflowCxV3beta1QueryInput { return { ...data, audio: data["audio"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1AudioInput(data["audio"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1QueryInput(data: any): GoogleCloudDialogflowCxV3beta1QueryInput { return { ...data, audio: data["audio"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1AudioInput(data["audio"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1ResponseMessage { channel?: string; conversationSuccess?: GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess; readonly endInteraction?: GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction; knowledgeInfoCard?: GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard; liveAgentHandoff?: GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff; readonly mixedAudio?: GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio; outputAudioText?: GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText; payload?: { [key: string]: any }; playAudio?: GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio; telephonyTransferCall?: GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall; text?: GoogleCloudDialogflowCxV3beta1ResponseMessageText; toolCall?: GoogleCloudDialogflowCxV3beta1ToolCall; } export interface GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess { metadata?: { [key: string]: any }; } export interface GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction { } export interface GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard { } export interface GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff { metadata?: { [key: string]: any }; } export interface GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio { segments?: GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment[]; } function serializeGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio(data: any): GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio { return { ...data, segments: data["segments"] !== undefined ? data["segments"].map((item: any) => (serializeGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio(data: any): GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio { return { ...data, segments: data["segments"] !== undefined ? data["segments"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment { readonly allowPlaybackInterruption?: boolean; audio?: Uint8Array; uri?: string; } function serializeGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment(data: any): GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment { return { ...data, audio: data["audio"] !== undefined ? encodeBase64(data["audio"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment(data: any): GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment { return { ...data, audio: data["audio"] !== undefined ? decodeBase64(data["audio"] as string) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText { readonly allowPlaybackInterruption?: boolean; ssml?: string; text?: string; } export interface GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio { readonly allowPlaybackInterruption?: boolean; audioUri?: string; } export interface GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall { phoneNumber?: string; } export interface GoogleCloudDialogflowCxV3beta1ResponseMessageText { readonly allowPlaybackInterruption?: boolean; text?: string[]; } export interface GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata { errors?: GoogleCloudDialogflowCxV3beta1TestError[]; } function serializeGoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata(data: any): GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata { return { ...data, errors: data["errors"] !== undefined ? data["errors"].map((item: any) => (serializeGoogleCloudDialogflowCxV3beta1TestError(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata(data: any): GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata { return { ...data, errors: data["errors"] !== undefined ? data["errors"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3beta1TestError(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse { continuousTestResult?: GoogleCloudDialogflowCxV3beta1ContinuousTestResult; } function serializeGoogleCloudDialogflowCxV3beta1RunContinuousTestResponse(data: any): GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse { return { ...data, continuousTestResult: data["continuousTestResult"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1ContinuousTestResult(data["continuousTestResult"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1RunContinuousTestResponse(data: any): GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse { return { ...data, continuousTestResult: data["continuousTestResult"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1ContinuousTestResult(data["continuousTestResult"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata { } export interface GoogleCloudDialogflowCxV3beta1RunTestCaseResponse { result?: GoogleCloudDialogflowCxV3beta1TestCaseResult; } function serializeGoogleCloudDialogflowCxV3beta1RunTestCaseResponse(data: any): GoogleCloudDialogflowCxV3beta1RunTestCaseResponse { return { ...data, result: data["result"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1TestCaseResult(data["result"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1RunTestCaseResponse(data: any): GoogleCloudDialogflowCxV3beta1RunTestCaseResponse { return { ...data, result: data["result"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1TestCaseResult(data["result"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1SessionInfo { parameters?: { [key: string]: any }; session?: string; } export interface GoogleCloudDialogflowCxV3beta1TestCase { readonly creationTime?: Date; displayName?: string; lastTestResult?: GoogleCloudDialogflowCxV3beta1TestCaseResult; name?: string; notes?: string; tags?: string[]; testCaseConversationTurns?: GoogleCloudDialogflowCxV3beta1ConversationTurn[]; testConfig?: GoogleCloudDialogflowCxV3beta1TestConfig; } function serializeGoogleCloudDialogflowCxV3beta1TestCase(data: any): GoogleCloudDialogflowCxV3beta1TestCase { return { ...data, lastTestResult: data["lastTestResult"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1TestCaseResult(data["lastTestResult"]) : undefined, testCaseConversationTurns: data["testCaseConversationTurns"] !== undefined ? data["testCaseConversationTurns"].map((item: any) => (serializeGoogleCloudDialogflowCxV3beta1ConversationTurn(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1TestCase(data: any): GoogleCloudDialogflowCxV3beta1TestCase { return { ...data, creationTime: data["creationTime"] !== undefined ? new Date(data["creationTime"]) : undefined, lastTestResult: data["lastTestResult"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1TestCaseResult(data["lastTestResult"]) : undefined, testCaseConversationTurns: data["testCaseConversationTurns"] !== undefined ? data["testCaseConversationTurns"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3beta1ConversationTurn(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1TestCaseError { status?: GoogleRpcStatus; testCase?: GoogleCloudDialogflowCxV3beta1TestCase; } function serializeGoogleCloudDialogflowCxV3beta1TestCaseError(data: any): GoogleCloudDialogflowCxV3beta1TestCaseError { return { ...data, testCase: data["testCase"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1TestCase(data["testCase"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1TestCaseError(data: any): GoogleCloudDialogflowCxV3beta1TestCaseError { return { ...data, testCase: data["testCase"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1TestCase(data["testCase"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1TestCaseResult { conversationTurns?: GoogleCloudDialogflowCxV3beta1ConversationTurn[]; environment?: string; name?: string; testResult?: | "TEST_RESULT_UNSPECIFIED" | "PASSED" | "FAILED"; testTime?: Date; } function serializeGoogleCloudDialogflowCxV3beta1TestCaseResult(data: any): GoogleCloudDialogflowCxV3beta1TestCaseResult { return { ...data, conversationTurns: data["conversationTurns"] !== undefined ? data["conversationTurns"].map((item: any) => (serializeGoogleCloudDialogflowCxV3beta1ConversationTurn(item))) : undefined, testTime: data["testTime"] !== undefined ? data["testTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1TestCaseResult(data: any): GoogleCloudDialogflowCxV3beta1TestCaseResult { return { ...data, conversationTurns: data["conversationTurns"] !== undefined ? data["conversationTurns"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3beta1ConversationTurn(item))) : undefined, testTime: data["testTime"] !== undefined ? new Date(data["testTime"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1TestConfig { flow?: string; page?: string; trackingParameters?: string[]; } export interface GoogleCloudDialogflowCxV3beta1TestError { status?: GoogleRpcStatus; testCase?: string; testTime?: Date; } function serializeGoogleCloudDialogflowCxV3beta1TestError(data: any): GoogleCloudDialogflowCxV3beta1TestError { return { ...data, testTime: data["testTime"] !== undefined ? data["testTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1TestError(data: any): GoogleCloudDialogflowCxV3beta1TestError { return { ...data, testTime: data["testTime"] !== undefined ? new Date(data["testTime"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1TestRunDifference { description?: string; type?: | "DIFF_TYPE_UNSPECIFIED" | "INTENT" | "PAGE" | "PARAMETERS" | "UTTERANCE" | "FLOW"; } export interface GoogleCloudDialogflowCxV3beta1TextInput { text?: string; } export interface GoogleCloudDialogflowCxV3beta1ToolCall { action?: string; inputParameters?: { [key: string]: any }; tool?: string; } export interface GoogleCloudDialogflowCxV3beta1ToolCallResult { action?: string; error?: GoogleCloudDialogflowCxV3beta1ToolCallResultError; outputParameters?: { [key: string]: any }; tool?: string; } export interface GoogleCloudDialogflowCxV3beta1ToolCallResultError { message?: string; } export interface GoogleCloudDialogflowCxV3beta1TransitionRoute { condition?: string; description?: string; intent?: string; readonly name?: string; targetFlow?: string; targetPage?: string; triggerFulfillment?: GoogleCloudDialogflowCxV3beta1Fulfillment; } function serializeGoogleCloudDialogflowCxV3beta1TransitionRoute(data: any): GoogleCloudDialogflowCxV3beta1TransitionRoute { return { ...data, triggerFulfillment: data["triggerFulfillment"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1Fulfillment(data["triggerFulfillment"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1TransitionRoute(data: any): GoogleCloudDialogflowCxV3beta1TransitionRoute { return { ...data, triggerFulfillment: data["triggerFulfillment"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1Fulfillment(data["triggerFulfillment"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1TurnSignals { agentEscalated?: boolean; dtmfUsed?: boolean; failureReasons?: | "FAILURE_REASON_UNSPECIFIED" | "FAILED_INTENT" | "FAILED_WEBHOOK"[]; noMatch?: boolean; noUserInput?: boolean; reachedEndPage?: boolean; sentimentMagnitude?: number; sentimentScore?: number; userEscalated?: boolean; webhookStatuses?: string[]; } export interface GoogleCloudDialogflowCxV3beta1Webhook { disabled?: boolean; displayName?: string; genericWebService?: GoogleCloudDialogflowCxV3beta1WebhookGenericWebService; name?: string; serviceDirectory?: GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig; timeout?: number /* Duration */; } function serializeGoogleCloudDialogflowCxV3beta1Webhook(data: any): GoogleCloudDialogflowCxV3beta1Webhook { return { ...data, genericWebService: data["genericWebService"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1WebhookGenericWebService(data["genericWebService"]) : undefined, serviceDirectory: data["serviceDirectory"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig(data["serviceDirectory"]) : undefined, timeout: data["timeout"] !== undefined ? data["timeout"] : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1Webhook(data: any): GoogleCloudDialogflowCxV3beta1Webhook { return { ...data, genericWebService: data["genericWebService"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1WebhookGenericWebService(data["genericWebService"]) : undefined, serviceDirectory: data["serviceDirectory"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig(data["serviceDirectory"]) : undefined, timeout: data["timeout"] !== undefined ? data["timeout"] : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1WebhookGenericWebService { allowedCaCerts?: Uint8Array[]; httpMethod?: | "HTTP_METHOD_UNSPECIFIED" | "POST" | "GET" | "HEAD" | "PUT" | "DELETE" | "PATCH" | "OPTIONS"; oauthConfig?: GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig; parameterMapping?: { [key: string]: string }; password?: string; requestBody?: string; requestHeaders?: { [key: string]: string }; secretVersionForUsernamePassword?: string; secretVersionsForRequestHeaders?: { [key: string]: GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue }; serviceAccountAuthConfig?: GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfig; serviceAgentAuth?: | "SERVICE_AGENT_AUTH_UNSPECIFIED" | "NONE" | "ID_TOKEN" | "ACCESS_TOKEN"; uri?: string; username?: string; webhookType?: | "WEBHOOK_TYPE_UNSPECIFIED" | "STANDARD" | "FLEXIBLE"; } function serializeGoogleCloudDialogflowCxV3beta1WebhookGenericWebService(data: any): GoogleCloudDialogflowCxV3beta1WebhookGenericWebService { return { ...data, allowedCaCerts: data["allowedCaCerts"] !== undefined ? data["allowedCaCerts"].map((item: any) => (encodeBase64(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1WebhookGenericWebService(data: any): GoogleCloudDialogflowCxV3beta1WebhookGenericWebService { return { ...data, allowedCaCerts: data["allowedCaCerts"] !== undefined ? data["allowedCaCerts"].map((item: any) => (decodeBase64(item as string))) : undefined, }; } export interface GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig { clientId?: string; clientSecret?: string; scopes?: string[]; secretVersionForClientSecret?: string; tokenEndpoint?: string; } export interface GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue { secretVersion?: string; } export interface GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfig { serviceAccount?: string; } export interface GoogleCloudDialogflowCxV3beta1WebhookRequest { detectIntentResponseId?: string; dtmfDigits?: string; fulfillmentInfo?: GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo; intentInfo?: GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo; languageCode?: string; languageInfo?: GoogleCloudDialogflowCxV3beta1LanguageInfo; messages?: GoogleCloudDialogflowCxV3beta1ResponseMessage[]; pageInfo?: GoogleCloudDialogflowCxV3beta1PageInfo; payload?: { [key: string]: any }; sentimentAnalysisResult?: GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult; sessionInfo?: GoogleCloudDialogflowCxV3beta1SessionInfo; text?: string; transcript?: string; triggerEvent?: string; triggerIntent?: string; } export interface GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo { tag?: string; } export interface GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo { confidence?: number; displayName?: string; lastMatchedIntent?: string; parameters?: { [key: string]: GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue }; } export interface GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue { originalValue?: string; resolvedValue?: any; } export interface GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult { magnitude?: number; score?: number; } export interface GoogleCloudDialogflowCxV3beta1WebhookResponse { fulfillmentResponse?: GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse; pageInfo?: GoogleCloudDialogflowCxV3beta1PageInfo; payload?: { [key: string]: any }; sessionInfo?: GoogleCloudDialogflowCxV3beta1SessionInfo; targetFlow?: string; targetPage?: string; } export interface GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse { mergeBehavior?: | "MERGE_BEHAVIOR_UNSPECIFIED" | "APPEND" | "REPLACE"; messages?: GoogleCloudDialogflowCxV3beta1ResponseMessage[]; } export interface GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig { genericWebService?: GoogleCloudDialogflowCxV3beta1WebhookGenericWebService; service?: string; } function serializeGoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig(data: any): GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig { return { ...data, genericWebService: data["genericWebService"] !== undefined ? serializeGoogleCloudDialogflowCxV3beta1WebhookGenericWebService(data["genericWebService"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig(data: any): GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig { return { ...data, genericWebService: data["genericWebService"] !== undefined ? deserializeGoogleCloudDialogflowCxV3beta1WebhookGenericWebService(data["genericWebService"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3BoostSpec { conditionBoostSpecs?: GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec[]; } export interface GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec { boost?: number; boostControlSpec?: GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpecBoostControlSpec; condition?: string; } export interface GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpecBoostControlSpec { attributeType?: | "ATTRIBUTE_TYPE_UNSPECIFIED" | "NUMERICAL" | "FRESHNESS"; controlPoints?: GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpecBoostControlSpecControlPoint[]; fieldName?: string; interpolationType?: | "INTERPOLATION_TYPE_UNSPECIFIED" | "LINEAR"; } export interface GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpecBoostControlSpecControlPoint { attributeValue?: string; boostAmount?: number; } export interface GoogleCloudDialogflowCxV3BoostSpecs { dataStores?: string[]; spec?: GoogleCloudDialogflowCxV3BoostSpec[]; } export interface GoogleCloudDialogflowCxV3CalculateCoverageResponse { agent?: string; intentCoverage?: GoogleCloudDialogflowCxV3IntentCoverage; routeGroupCoverage?: GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage; transitionCoverage?: GoogleCloudDialogflowCxV3TransitionCoverage; } function serializeGoogleCloudDialogflowCxV3CalculateCoverageResponse(data: any): GoogleCloudDialogflowCxV3CalculateCoverageResponse { return { ...data, routeGroupCoverage: data["routeGroupCoverage"] !== undefined ? serializeGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage(data["routeGroupCoverage"]) : undefined, transitionCoverage: data["transitionCoverage"] !== undefined ? serializeGoogleCloudDialogflowCxV3TransitionCoverage(data["transitionCoverage"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3CalculateCoverageResponse(data: any): GoogleCloudDialogflowCxV3CalculateCoverageResponse { return { ...data, routeGroupCoverage: data["routeGroupCoverage"] !== undefined ? deserializeGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage(data["routeGroupCoverage"]) : undefined, transitionCoverage: data["transitionCoverage"] !== undefined ? deserializeGoogleCloudDialogflowCxV3TransitionCoverage(data["transitionCoverage"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3Changelog { action?: string; createTime?: Date; displayName?: string; languageCode?: string; name?: string; resource?: string; type?: string; userEmail?: string; } function serializeGoogleCloudDialogflowCxV3Changelog(data: any): GoogleCloudDialogflowCxV3Changelog { return { ...data, createTime: data["createTime"] !== undefined ? data["createTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowCxV3Changelog(data: any): GoogleCloudDialogflowCxV3Changelog { return { ...data, createTime: data["createTime"] !== undefined ? new Date(data["createTime"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3CodeBlock { code?: string; } export interface GoogleCloudDialogflowCxV3CompareVersionsRequest { languageCode?: string; targetVersion?: string; } export interface GoogleCloudDialogflowCxV3CompareVersionsResponse { baseVersionContentJson?: string; compareTime?: Date; targetVersionContentJson?: string; } function serializeGoogleCloudDialogflowCxV3CompareVersionsResponse(data: any): GoogleCloudDialogflowCxV3CompareVersionsResponse { return { ...data, compareTime: data["compareTime"] !== undefined ? data["compareTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowCxV3CompareVersionsResponse(data: any): GoogleCloudDialogflowCxV3CompareVersionsResponse { return { ...data, compareTime: data["compareTime"] !== undefined ? new Date(data["compareTime"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3ContinuousTestResult { name?: string; result?: | "AGGREGATED_TEST_RESULT_UNSPECIFIED" | "PASSED" | "FAILED"; runTime?: Date; testCaseResults?: string[]; } function serializeGoogleCloudDialogflowCxV3ContinuousTestResult(data: any): GoogleCloudDialogflowCxV3ContinuousTestResult { return { ...data, runTime: data["runTime"] !== undefined ? data["runTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ContinuousTestResult(data: any): GoogleCloudDialogflowCxV3ContinuousTestResult { return { ...data, runTime: data["runTime"] !== undefined ? new Date(data["runTime"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3ConversationSignals { turnSignals?: GoogleCloudDialogflowCxV3TurnSignals; } export interface GoogleCloudDialogflowCxV3ConversationTurn { userInput?: GoogleCloudDialogflowCxV3ConversationTurnUserInput; virtualAgentOutput?: GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput; } function serializeGoogleCloudDialogflowCxV3ConversationTurn(data: any): GoogleCloudDialogflowCxV3ConversationTurn { return { ...data, userInput: data["userInput"] !== undefined ? serializeGoogleCloudDialogflowCxV3ConversationTurnUserInput(data["userInput"]) : undefined, virtualAgentOutput: data["virtualAgentOutput"] !== undefined ? serializeGoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput(data["virtualAgentOutput"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ConversationTurn(data: any): GoogleCloudDialogflowCxV3ConversationTurn { return { ...data, userInput: data["userInput"] !== undefined ? deserializeGoogleCloudDialogflowCxV3ConversationTurnUserInput(data["userInput"]) : undefined, virtualAgentOutput: data["virtualAgentOutput"] !== undefined ? deserializeGoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput(data["virtualAgentOutput"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3ConversationTurnUserInput { enableSentimentAnalysis?: boolean; injectedParameters?: { [key: string]: any }; input?: GoogleCloudDialogflowCxV3QueryInput; isWebhookEnabled?: boolean; } function serializeGoogleCloudDialogflowCxV3ConversationTurnUserInput(data: any): GoogleCloudDialogflowCxV3ConversationTurnUserInput { return { ...data, input: data["input"] !== undefined ? serializeGoogleCloudDialogflowCxV3QueryInput(data["input"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ConversationTurnUserInput(data: any): GoogleCloudDialogflowCxV3ConversationTurnUserInput { return { ...data, input: data["input"] !== undefined ? deserializeGoogleCloudDialogflowCxV3QueryInput(data["input"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput { currentPage?: GoogleCloudDialogflowCxV3Page; diagnosticInfo?: { [key: string]: any }; readonly differences?: GoogleCloudDialogflowCxV3TestRunDifference[]; sessionParameters?: { [key: string]: any }; status?: GoogleRpcStatus; textResponses?: GoogleCloudDialogflowCxV3ResponseMessageText[]; triggeredIntent?: GoogleCloudDialogflowCxV3Intent; } function serializeGoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput(data: any): GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput { return { ...data, currentPage: data["currentPage"] !== undefined ? serializeGoogleCloudDialogflowCxV3Page(data["currentPage"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput(data: any): GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput { return { ...data, currentPage: data["currentPage"] !== undefined ? deserializeGoogleCloudDialogflowCxV3Page(data["currentPage"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3CreateVersionOperationMetadata { version?: string; } export interface GoogleCloudDialogflowCxV3DataStoreConnection { dataStore?: string; dataStoreType?: | "DATA_STORE_TYPE_UNSPECIFIED" | "PUBLIC_WEB" | "UNSTRUCTURED" | "STRUCTURED"; documentProcessingMode?: | "DOCUMENT_PROCESSING_MODE_UNSPECIFIED" | "DOCUMENTS" | "CHUNKS"; } export interface GoogleCloudDialogflowCxV3DataStoreConnectionSignals { answer?: string; answerGenerationModelCallSignals?: GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals; answerParts?: GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerPart[]; citedSnippets?: GoogleCloudDialogflowCxV3DataStoreConnectionSignalsCitedSnippet[]; groundingSignals?: GoogleCloudDialogflowCxV3DataStoreConnectionSignalsGroundingSignals; rewriterModelCallSignals?: GoogleCloudDialogflowCxV3DataStoreConnectionSignalsRewriterModelCallSignals; rewrittenQuery?: string; safetySignals?: GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSafetySignals; searchSnippets?: GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet[]; } export interface GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals { model?: string; modelOutput?: string; renderedPrompt?: string; } export interface GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerPart { supportingIndices?: number[]; text?: string; } export interface GoogleCloudDialogflowCxV3DataStoreConnectionSignalsCitedSnippet { searchSnippet?: GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet; snippetIndex?: number; } export interface GoogleCloudDialogflowCxV3DataStoreConnectionSignalsGroundingSignals { decision?: | "GROUNDING_DECISION_UNSPECIFIED" | "ACCEPTED_BY_GROUNDING" | "REJECTED_BY_GROUNDING"; score?: | "GROUNDING_SCORE_BUCKET_UNSPECIFIED" | "VERY_LOW" | "LOW" | "MEDIUM" | "HIGH" | "VERY_HIGH"; } export interface GoogleCloudDialogflowCxV3DataStoreConnectionSignalsRewriterModelCallSignals { model?: string; modelOutput?: string; renderedPrompt?: string; } export interface GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSafetySignals { bannedPhraseMatch?: | "BANNED_PHRASE_MATCH_UNSPECIFIED" | "BANNED_PHRASE_MATCH_NONE" | "BANNED_PHRASE_MATCH_QUERY" | "BANNED_PHRASE_MATCH_RESPONSE"; decision?: | "SAFETY_DECISION_UNSPECIFIED" | "ACCEPTED_BY_SAFETY_CHECK" | "REJECTED_BY_SAFETY_CHECK"; matchedBannedPhrase?: string; } export interface GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet { documentTitle?: string; documentUri?: string; metadata?: { [key: string]: any }; text?: string; } export interface GoogleCloudDialogflowCxV3DeployFlowMetadata { testErrors?: GoogleCloudDialogflowCxV3TestError[]; } function serializeGoogleCloudDialogflowCxV3DeployFlowMetadata(data: any): GoogleCloudDialogflowCxV3DeployFlowMetadata { return { ...data, testErrors: data["testErrors"] !== undefined ? data["testErrors"].map((item: any) => (serializeGoogleCloudDialogflowCxV3TestError(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3DeployFlowMetadata(data: any): GoogleCloudDialogflowCxV3DeployFlowMetadata { return { ...data, testErrors: data["testErrors"] !== undefined ? data["testErrors"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3TestError(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3DeployFlowRequest { flowVersion?: string; } export interface GoogleCloudDialogflowCxV3DeployFlowResponse { deployment?: string; environment?: GoogleCloudDialogflowCxV3Environment; } function serializeGoogleCloudDialogflowCxV3DeployFlowResponse(data: any): GoogleCloudDialogflowCxV3DeployFlowResponse { return { ...data, environment: data["environment"] !== undefined ? serializeGoogleCloudDialogflowCxV3Environment(data["environment"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3DeployFlowResponse(data: any): GoogleCloudDialogflowCxV3DeployFlowResponse { return { ...data, environment: data["environment"] !== undefined ? deserializeGoogleCloudDialogflowCxV3Environment(data["environment"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3Deployment { endTime?: Date; flowVersion?: string; name?: string; result?: GoogleCloudDialogflowCxV3DeploymentResult; startTime?: Date; state?: | "STATE_UNSPECIFIED" | "RUNNING" | "SUCCEEDED" | "FAILED"; } function serializeGoogleCloudDialogflowCxV3Deployment(data: any): GoogleCloudDialogflowCxV3Deployment { return { ...data, endTime: data["endTime"] !== undefined ? data["endTime"].toISOString() : undefined, startTime: data["startTime"] !== undefined ? data["startTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowCxV3Deployment(data: any): GoogleCloudDialogflowCxV3Deployment { return { ...data, endTime: data["endTime"] !== undefined ? new Date(data["endTime"]) : undefined, startTime: data["startTime"] !== undefined ? new Date(data["startTime"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3DeploymentResult { deploymentTestResults?: string[]; experiment?: string; } export interface GoogleCloudDialogflowCxV3DetectIntentRequest { outputAudioConfig?: GoogleCloudDialogflowCxV3OutputAudioConfig; queryInput?: GoogleCloudDialogflowCxV3QueryInput; queryParams?: GoogleCloudDialogflowCxV3QueryParameters; responseView?: | "DETECT_INTENT_RESPONSE_VIEW_UNSPECIFIED" | "DETECT_INTENT_RESPONSE_VIEW_FULL" | "DETECT_INTENT_RESPONSE_VIEW_BASIC" | "DETECT_INTENT_RESPONSE_VIEW_DEFAULT"; } function serializeGoogleCloudDialogflowCxV3DetectIntentRequest(data: any): GoogleCloudDialogflowCxV3DetectIntentRequest { return { ...data, queryInput: data["queryInput"] !== undefined ? serializeGoogleCloudDialogflowCxV3QueryInput(data["queryInput"]) : undefined, queryParams: data["queryParams"] !== undefined ? serializeGoogleCloudDialogflowCxV3QueryParameters(data["queryParams"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3DetectIntentRequest(data: any): GoogleCloudDialogflowCxV3DetectIntentRequest { return { ...data, queryInput: data["queryInput"] !== undefined ? deserializeGoogleCloudDialogflowCxV3QueryInput(data["queryInput"]) : undefined, queryParams: data["queryParams"] !== undefined ? deserializeGoogleCloudDialogflowCxV3QueryParameters(data["queryParams"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3DetectIntentResponse { allowCancellation?: boolean; outputAudio?: Uint8Array; outputAudioConfig?: GoogleCloudDialogflowCxV3OutputAudioConfig; queryResult?: GoogleCloudDialogflowCxV3QueryResult; responseId?: string; responseType?: | "RESPONSE_TYPE_UNSPECIFIED" | "PARTIAL" | "FINAL"; } function serializeGoogleCloudDialogflowCxV3DetectIntentResponse(data: any): GoogleCloudDialogflowCxV3DetectIntentResponse { return { ...data, outputAudio: data["outputAudio"] !== undefined ? encodeBase64(data["outputAudio"]) : undefined, queryResult: data["queryResult"] !== undefined ? serializeGoogleCloudDialogflowCxV3QueryResult(data["queryResult"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3DetectIntentResponse(data: any): GoogleCloudDialogflowCxV3DetectIntentResponse { return { ...data, outputAudio: data["outputAudio"] !== undefined ? decodeBase64(data["outputAudio"] as string) : undefined, queryResult: data["queryResult"] !== undefined ? deserializeGoogleCloudDialogflowCxV3QueryResult(data["queryResult"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3DtmfInput { digits?: string; finishDigit?: string; } export interface GoogleCloudDialogflowCxV3EntityType { autoExpansionMode?: | "AUTO_EXPANSION_MODE_UNSPECIFIED" | "AUTO_EXPANSION_MODE_DEFAULT"; displayName?: string; enableFuzzyExtraction?: boolean; entities?: GoogleCloudDialogflowCxV3EntityTypeEntity[]; excludedPhrases?: GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase[]; kind?: | "KIND_UNSPECIFIED" | "KIND_MAP" | "KIND_LIST" | "KIND_REGEXP"; name?: string; redact?: boolean; } export interface GoogleCloudDialogflowCxV3EntityTypeEntity { synonyms?: string[]; value?: string; } export interface GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase { value?: string; } export interface GoogleCloudDialogflowCxV3Environment { description?: string; displayName?: string; name?: string; testCasesConfig?: GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig; readonly updateTime?: Date; versionConfigs?: GoogleCloudDialogflowCxV3EnvironmentVersionConfig[]; webhookConfig?: GoogleCloudDialogflowCxV3EnvironmentWebhookConfig; } function serializeGoogleCloudDialogflowCxV3Environment(data: any): GoogleCloudDialogflowCxV3Environment { return { ...data, webhookConfig: data["webhookConfig"] !== undefined ? serializeGoogleCloudDialogflowCxV3EnvironmentWebhookConfig(data["webhookConfig"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3Environment(data: any): GoogleCloudDialogflowCxV3Environment { return { ...data, updateTime: data["updateTime"] !== undefined ? new Date(data["updateTime"]) : undefined, webhookConfig: data["webhookConfig"] !== undefined ? deserializeGoogleCloudDialogflowCxV3EnvironmentWebhookConfig(data["webhookConfig"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig { enableContinuousRun?: boolean; enablePredeploymentRun?: boolean; testCases?: string[]; } export interface GoogleCloudDialogflowCxV3EnvironmentVersionConfig { version?: string; } export interface GoogleCloudDialogflowCxV3EnvironmentWebhookConfig { webhookOverrides?: GoogleCloudDialogflowCxV3Webhook[]; } function serializeGoogleCloudDialogflowCxV3EnvironmentWebhookConfig(data: any): GoogleCloudDialogflowCxV3EnvironmentWebhookConfig { return { ...data, webhookOverrides: data["webhookOverrides"] !== undefined ? data["webhookOverrides"].map((item: any) => (serializeGoogleCloudDialogflowCxV3Webhook(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3EnvironmentWebhookConfig(data: any): GoogleCloudDialogflowCxV3EnvironmentWebhookConfig { return { ...data, webhookOverrides: data["webhookOverrides"] !== undefined ? data["webhookOverrides"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3Webhook(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3EventHandler { event?: string; readonly name?: string; targetFlow?: string; targetPage?: string; targetPlaybook?: string; triggerFulfillment?: GoogleCloudDialogflowCxV3Fulfillment; } function serializeGoogleCloudDialogflowCxV3EventHandler(data: any): GoogleCloudDialogflowCxV3EventHandler { return { ...data, triggerFulfillment: data["triggerFulfillment"] !== undefined ? serializeGoogleCloudDialogflowCxV3Fulfillment(data["triggerFulfillment"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3EventHandler(data: any): GoogleCloudDialogflowCxV3EventHandler { return { ...data, triggerFulfillment: data["triggerFulfillment"] !== undefined ? deserializeGoogleCloudDialogflowCxV3Fulfillment(data["triggerFulfillment"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3EventInput { event?: string; } export interface GoogleCloudDialogflowCxV3Example { actions?: GoogleCloudDialogflowCxV3Action[]; conversationState?: | "OUTPUT_STATE_UNSPECIFIED" | "OUTPUT_STATE_OK" | "OUTPUT_STATE_CANCELLED" | "OUTPUT_STATE_FAILED" | "OUTPUT_STATE_ESCALATED" | "OUTPUT_STATE_PENDING"; readonly createTime?: Date; description?: string; displayName?: string; languageCode?: string; name?: string; playbookInput?: GoogleCloudDialogflowCxV3PlaybookInput; playbookOutput?: GoogleCloudDialogflowCxV3PlaybookOutput; readonly tokenCount?: bigint; readonly updateTime?: Date; } export interface GoogleCloudDialogflowCxV3Experiment { createTime?: Date; definition?: GoogleCloudDialogflowCxV3ExperimentDefinition; description?: string; displayName?: string; endTime?: Date; experimentLength?: number /* Duration */; lastUpdateTime?: Date; name?: string; result?: GoogleCloudDialogflowCxV3ExperimentResult; rolloutConfig?: GoogleCloudDialogflowCxV3RolloutConfig; rolloutFailureReason?: string; rolloutState?: GoogleCloudDialogflowCxV3RolloutState; startTime?: Date; state?: | "STATE_UNSPECIFIED" | "DRAFT" | "RUNNING" | "DONE" | "ROLLOUT_FAILED"; variantsHistory?: GoogleCloudDialogflowCxV3VariantsHistory[]; } function serializeGoogleCloudDialogflowCxV3Experiment(data: any): GoogleCloudDialogflowCxV3Experiment { return { ...data, createTime: data["createTime"] !== undefined ? data["createTime"].toISOString() : undefined, endTime: data["endTime"] !== undefined ? data["endTime"].toISOString() : undefined, experimentLength: data["experimentLength"] !== undefined ? data["experimentLength"] : undefined, lastUpdateTime: data["lastUpdateTime"] !== undefined ? data["lastUpdateTime"].toISOString() : undefined, result: data["result"] !== undefined ? serializeGoogleCloudDialogflowCxV3ExperimentResult(data["result"]) : undefined, rolloutConfig: data["rolloutConfig"] !== undefined ? serializeGoogleCloudDialogflowCxV3RolloutConfig(data["rolloutConfig"]) : undefined, rolloutState: data["rolloutState"] !== undefined ? serializeGoogleCloudDialogflowCxV3RolloutState(data["rolloutState"]) : undefined, startTime: data["startTime"] !== undefined ? data["startTime"].toISOString() : undefined, variantsHistory: data["variantsHistory"] !== undefined ? data["variantsHistory"].map((item: any) => (serializeGoogleCloudDialogflowCxV3VariantsHistory(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3Experiment(data: any): GoogleCloudDialogflowCxV3Experiment { return { ...data, createTime: data["createTime"] !== undefined ? new Date(data["createTime"]) : undefined, endTime: data["endTime"] !== undefined ? new Date(data["endTime"]) : undefined, experimentLength: data["experimentLength"] !== undefined ? data["experimentLength"] : undefined, lastUpdateTime: data["lastUpdateTime"] !== undefined ? new Date(data["lastUpdateTime"]) : undefined, result: data["result"] !== undefined ? deserializeGoogleCloudDialogflowCxV3ExperimentResult(data["result"]) : undefined, rolloutConfig: data["rolloutConfig"] !== undefined ? deserializeGoogleCloudDialogflowCxV3RolloutConfig(data["rolloutConfig"]) : undefined, rolloutState: data["rolloutState"] !== undefined ? deserializeGoogleCloudDialogflowCxV3RolloutState(data["rolloutState"]) : undefined, startTime: data["startTime"] !== undefined ? new Date(data["startTime"]) : undefined, variantsHistory: data["variantsHistory"] !== undefined ? data["variantsHistory"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3VariantsHistory(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3ExperimentDefinition { condition?: string; versionVariants?: GoogleCloudDialogflowCxV3VersionVariants; } export interface GoogleCloudDialogflowCxV3ExperimentResult { lastUpdateTime?: Date; versionMetrics?: GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics[]; } function serializeGoogleCloudDialogflowCxV3ExperimentResult(data: any): GoogleCloudDialogflowCxV3ExperimentResult { return { ...data, lastUpdateTime: data["lastUpdateTime"] !== undefined ? data["lastUpdateTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ExperimentResult(data: any): GoogleCloudDialogflowCxV3ExperimentResult { return { ...data, lastUpdateTime: data["lastUpdateTime"] !== undefined ? new Date(data["lastUpdateTime"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval { confidenceLevel?: number; lowerBound?: number; ratio?: number; upperBound?: number; } export interface GoogleCloudDialogflowCxV3ExperimentResultMetric { confidenceInterval?: GoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval; count?: number; countType?: | "COUNT_TYPE_UNSPECIFIED" | "TOTAL_NO_MATCH_COUNT" | "TOTAL_TURN_COUNT" | "AVERAGE_TURN_COUNT"; ratio?: number; type?: | "METRIC_UNSPECIFIED" | "CONTAINED_SESSION_NO_CALLBACK_RATE" | "LIVE_AGENT_HANDOFF_RATE" | "CALLBACK_SESSION_RATE" | "ABANDONED_SESSION_RATE" | "SESSION_END_RATE"; } export interface GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics { metrics?: GoogleCloudDialogflowCxV3ExperimentResultMetric[]; sessionCount?: number; version?: string; } export interface GoogleCloudDialogflowCxV3ExportAgentRequest { agentUri?: string; dataFormat?: | "DATA_FORMAT_UNSPECIFIED" | "BLOB" | "JSON_PACKAGE"; environment?: string; gitDestination?: GoogleCloudDialogflowCxV3ExportAgentRequestGitDestination; includeBigqueryExportSettings?: boolean; } export interface GoogleCloudDialogflowCxV3ExportAgentRequestGitDestination { commitMessage?: string; trackingBranch?: string; } export interface GoogleCloudDialogflowCxV3ExportAgentResponse { agentContent?: Uint8Array; agentUri?: string; commitSha?: string; } function serializeGoogleCloudDialogflowCxV3ExportAgentResponse(data: any): GoogleCloudDialogflowCxV3ExportAgentResponse { return { ...data, agentContent: data["agentContent"] !== undefined ? encodeBase64(data["agentContent"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ExportAgentResponse(data: any): GoogleCloudDialogflowCxV3ExportAgentResponse { return { ...data, agentContent: data["agentContent"] !== undefined ? decodeBase64(data["agentContent"] as string) : undefined, }; } export interface GoogleCloudDialogflowCxV3ExportEntityTypesMetadata { } export interface GoogleCloudDialogflowCxV3ExportEntityTypesRequest { dataFormat?: | "DATA_FORMAT_UNSPECIFIED" | "BLOB" | "JSON_PACKAGE"; entityTypes?: string[]; entityTypesContentInline?: boolean; entityTypesUri?: string; languageCode?: string; } export interface GoogleCloudDialogflowCxV3ExportEntityTypesResponse { entityTypesContent?: GoogleCloudDialogflowCxV3InlineDestination; entityTypesUri?: string; } export interface GoogleCloudDialogflowCxV3ExportFlowRequest { flowUri?: string; includeReferencedFlows?: boolean; } export interface GoogleCloudDialogflowCxV3ExportFlowResponse { flowContent?: Uint8Array; flowUri?: string; } function serializeGoogleCloudDialogflowCxV3ExportFlowResponse(data: any): GoogleCloudDialogflowCxV3ExportFlowResponse { return { ...data, flowContent: data["flowContent"] !== undefined ? encodeBase64(data["flowContent"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ExportFlowResponse(data: any): GoogleCloudDialogflowCxV3ExportFlowResponse { return { ...data, flowContent: data["flowContent"] !== undefined ? decodeBase64(data["flowContent"] as string) : undefined, }; } export interface GoogleCloudDialogflowCxV3ExportIntentsMetadata { } export interface GoogleCloudDialogflowCxV3ExportIntentsRequest { dataFormat?: | "DATA_FORMAT_UNSPECIFIED" | "BLOB" | "JSON" | "CSV"; intents?: string[]; intentsContentInline?: boolean; intentsUri?: string; } export interface GoogleCloudDialogflowCxV3ExportIntentsResponse { intentsContent?: GoogleCloudDialogflowCxV3InlineDestination; intentsUri?: string; } export interface GoogleCloudDialogflowCxV3ExportPlaybookRequest { dataFormat?: | "DATA_FORMAT_UNSPECIFIED" | "BLOB" | "JSON"; playbookUri?: string; } export interface GoogleCloudDialogflowCxV3ExportTestCasesMetadata { } export interface GoogleCloudDialogflowCxV3ExportTestCasesRequest { dataFormat?: | "DATA_FORMAT_UNSPECIFIED" | "BLOB" | "JSON"; filter?: string; gcsUri?: string; } export interface GoogleCloudDialogflowCxV3ExportTestCasesResponse { content?: Uint8Array; gcsUri?: string; } function serializeGoogleCloudDialogflowCxV3ExportTestCasesResponse(data: any): GoogleCloudDialogflowCxV3ExportTestCasesResponse { return { ...data, content: data["content"] !== undefined ? encodeBase64(data["content"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ExportTestCasesResponse(data: any): GoogleCloudDialogflowCxV3ExportTestCasesResponse { return { ...data, content: data["content"] !== undefined ? decodeBase64(data["content"] as string) : undefined, }; } export interface GoogleCloudDialogflowCxV3FilterSpecs { dataStores?: string[]; filter?: string; } export interface GoogleCloudDialogflowCxV3Flow { advancedSettings?: GoogleCloudDialogflowCxV3AdvancedSettings; description?: string; displayName?: string; eventHandlers?: GoogleCloudDialogflowCxV3EventHandler[]; inputParameterDefinitions?: GoogleCloudDialogflowCxV3ParameterDefinition[]; knowledgeConnectorSettings?: GoogleCloudDialogflowCxV3KnowledgeConnectorSettings; locked?: boolean; multiLanguageSettings?: GoogleCloudDialogflowCxV3FlowMultiLanguageSettings; name?: string; nluSettings?: GoogleCloudDialogflowCxV3NluSettings; outputParameterDefinitions?: GoogleCloudDialogflowCxV3ParameterDefinition[]; transitionRouteGroups?: string[]; transitionRoutes?: GoogleCloudDialogflowCxV3TransitionRoute[]; } function serializeGoogleCloudDialogflowCxV3Flow(data: any): GoogleCloudDialogflowCxV3Flow { return { ...data, advancedSettings: data["advancedSettings"] !== undefined ? serializeGoogleCloudDialogflowCxV3AdvancedSettings(data["advancedSettings"]) : undefined, eventHandlers: data["eventHandlers"] !== undefined ? data["eventHandlers"].map((item: any) => (serializeGoogleCloudDialogflowCxV3EventHandler(item))) : undefined, knowledgeConnectorSettings: data["knowledgeConnectorSettings"] !== undefined ? serializeGoogleCloudDialogflowCxV3KnowledgeConnectorSettings(data["knowledgeConnectorSettings"]) : undefined, transitionRoutes: data["transitionRoutes"] !== undefined ? data["transitionRoutes"].map((item: any) => (serializeGoogleCloudDialogflowCxV3TransitionRoute(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3Flow(data: any): GoogleCloudDialogflowCxV3Flow { return { ...data, advancedSettings: data["advancedSettings"] !== undefined ? deserializeGoogleCloudDialogflowCxV3AdvancedSettings(data["advancedSettings"]) : undefined, eventHandlers: data["eventHandlers"] !== undefined ? data["eventHandlers"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3EventHandler(item))) : undefined, knowledgeConnectorSettings: data["knowledgeConnectorSettings"] !== undefined ? deserializeGoogleCloudDialogflowCxV3KnowledgeConnectorSettings(data["knowledgeConnectorSettings"]) : undefined, transitionRoutes: data["transitionRoutes"] !== undefined ? data["transitionRoutes"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3TransitionRoute(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3FlowImportStrategy { globalImportStrategy?: | "IMPORT_STRATEGY_UNSPECIFIED" | "IMPORT_STRATEGY_CREATE_NEW" | "IMPORT_STRATEGY_REPLACE" | "IMPORT_STRATEGY_KEEP" | "IMPORT_STRATEGY_MERGE" | "IMPORT_STRATEGY_THROW_ERROR"; } export interface GoogleCloudDialogflowCxV3FlowInvocation { readonly displayName?: string; flow?: string; flowState?: | "OUTPUT_STATE_UNSPECIFIED" | "OUTPUT_STATE_OK" | "OUTPUT_STATE_CANCELLED" | "OUTPUT_STATE_FAILED" | "OUTPUT_STATE_ESCALATED" | "OUTPUT_STATE_PENDING"; } export interface GoogleCloudDialogflowCxV3FlowMultiLanguageSettings { enableMultiLanguageDetection?: boolean; supportedResponseLanguageCodes?: string[]; } export interface GoogleCloudDialogflowCxV3FlowTransition { readonly displayName?: string; flow?: string; } export interface GoogleCloudDialogflowCxV3FlowValidationResult { name?: string; updateTime?: Date; validationMessages?: GoogleCloudDialogflowCxV3ValidationMessage[]; } function serializeGoogleCloudDialogflowCxV3FlowValidationResult(data: any): GoogleCloudDialogflowCxV3FlowValidationResult { return { ...data, updateTime: data["updateTime"] !== undefined ? data["updateTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowCxV3FlowValidationResult(data: any): GoogleCloudDialogflowCxV3FlowValidationResult { return { ...data, updateTime: data["updateTime"] !== undefined ? new Date(data["updateTime"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3Form { parameters?: GoogleCloudDialogflowCxV3FormParameter[]; } function serializeGoogleCloudDialogflowCxV3Form(data: any): GoogleCloudDialogflowCxV3Form { return { ...data, parameters: data["parameters"] !== undefined ? data["parameters"].map((item: any) => (serializeGoogleCloudDialogflowCxV3FormParameter(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3Form(data: any): GoogleCloudDialogflowCxV3Form { return { ...data, parameters: data["parameters"] !== undefined ? data["parameters"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3FormParameter(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3FormParameter { advancedSettings?: GoogleCloudDialogflowCxV3AdvancedSettings; defaultValue?: any; displayName?: string; entityType?: string; fillBehavior?: GoogleCloudDialogflowCxV3FormParameterFillBehavior; isList?: boolean; redact?: boolean; required?: boolean; } function serializeGoogleCloudDialogflowCxV3FormParameter(data: any): GoogleCloudDialogflowCxV3FormParameter { return { ...data, advancedSettings: data["advancedSettings"] !== undefined ? serializeGoogleCloudDialogflowCxV3AdvancedSettings(data["advancedSettings"]) : undefined, fillBehavior: data["fillBehavior"] !== undefined ? serializeGoogleCloudDialogflowCxV3FormParameterFillBehavior(data["fillBehavior"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3FormParameter(data: any): GoogleCloudDialogflowCxV3FormParameter { return { ...data, advancedSettings: data["advancedSettings"] !== undefined ? deserializeGoogleCloudDialogflowCxV3AdvancedSettings(data["advancedSettings"]) : undefined, fillBehavior: data["fillBehavior"] !== undefined ? deserializeGoogleCloudDialogflowCxV3FormParameterFillBehavior(data["fillBehavior"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3FormParameterFillBehavior { initialPromptFulfillment?: GoogleCloudDialogflowCxV3Fulfillment; repromptEventHandlers?: GoogleCloudDialogflowCxV3EventHandler[]; } function serializeGoogleCloudDialogflowCxV3FormParameterFillBehavior(data: any): GoogleCloudDialogflowCxV3FormParameterFillBehavior { return { ...data, initialPromptFulfillment: data["initialPromptFulfillment"] !== undefined ? serializeGoogleCloudDialogflowCxV3Fulfillment(data["initialPromptFulfillment"]) : undefined, repromptEventHandlers: data["repromptEventHandlers"] !== undefined ? data["repromptEventHandlers"].map((item: any) => (serializeGoogleCloudDialogflowCxV3EventHandler(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3FormParameterFillBehavior(data: any): GoogleCloudDialogflowCxV3FormParameterFillBehavior { return { ...data, initialPromptFulfillment: data["initialPromptFulfillment"] !== undefined ? deserializeGoogleCloudDialogflowCxV3Fulfillment(data["initialPromptFulfillment"]) : undefined, repromptEventHandlers: data["repromptEventHandlers"] !== undefined ? data["repromptEventHandlers"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3EventHandler(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3FulfillIntentRequest { match?: GoogleCloudDialogflowCxV3Match; matchIntentRequest?: GoogleCloudDialogflowCxV3MatchIntentRequest; outputAudioConfig?: GoogleCloudDialogflowCxV3OutputAudioConfig; } function serializeGoogleCloudDialogflowCxV3FulfillIntentRequest(data: any): GoogleCloudDialogflowCxV3FulfillIntentRequest { return { ...data, matchIntentRequest: data["matchIntentRequest"] !== undefined ? serializeGoogleCloudDialogflowCxV3MatchIntentRequest(data["matchIntentRequest"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3FulfillIntentRequest(data: any): GoogleCloudDialogflowCxV3FulfillIntentRequest { return { ...data, matchIntentRequest: data["matchIntentRequest"] !== undefined ? deserializeGoogleCloudDialogflowCxV3MatchIntentRequest(data["matchIntentRequest"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3FulfillIntentResponse { outputAudio?: Uint8Array; outputAudioConfig?: GoogleCloudDialogflowCxV3OutputAudioConfig; queryResult?: GoogleCloudDialogflowCxV3QueryResult; responseId?: string; } function serializeGoogleCloudDialogflowCxV3FulfillIntentResponse(data: any): GoogleCloudDialogflowCxV3FulfillIntentResponse { return { ...data, outputAudio: data["outputAudio"] !== undefined ? encodeBase64(data["outputAudio"]) : undefined, queryResult: data["queryResult"] !== undefined ? serializeGoogleCloudDialogflowCxV3QueryResult(data["queryResult"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3FulfillIntentResponse(data: any): GoogleCloudDialogflowCxV3FulfillIntentResponse { return { ...data, outputAudio: data["outputAudio"] !== undefined ? decodeBase64(data["outputAudio"] as string) : undefined, queryResult: data["queryResult"] !== undefined ? deserializeGoogleCloudDialogflowCxV3QueryResult(data["queryResult"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3Fulfillment { advancedSettings?: GoogleCloudDialogflowCxV3AdvancedSettings; conditionalCases?: GoogleCloudDialogflowCxV3FulfillmentConditionalCases[]; enableGenerativeFallback?: boolean; generators?: GoogleCloudDialogflowCxV3FulfillmentGeneratorSettings[]; messages?: GoogleCloudDialogflowCxV3ResponseMessage[]; returnPartialResponses?: boolean; setParameterActions?: GoogleCloudDialogflowCxV3FulfillmentSetParameterAction[]; tag?: string; webhook?: string; } function serializeGoogleCloudDialogflowCxV3Fulfillment(data: any): GoogleCloudDialogflowCxV3Fulfillment { return { ...data, advancedSettings: data["advancedSettings"] !== undefined ? serializeGoogleCloudDialogflowCxV3AdvancedSettings(data["advancedSettings"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3Fulfillment(data: any): GoogleCloudDialogflowCxV3Fulfillment { return { ...data, advancedSettings: data["advancedSettings"] !== undefined ? deserializeGoogleCloudDialogflowCxV3AdvancedSettings(data["advancedSettings"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3FulfillmentConditionalCases { cases?: GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase[]; } export interface GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase { caseContent?: GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent[]; condition?: string; } export interface GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent { additionalCases?: GoogleCloudDialogflowCxV3FulfillmentConditionalCases; message?: GoogleCloudDialogflowCxV3ResponseMessage; } export interface GoogleCloudDialogflowCxV3FulfillmentGeneratorSettings { generator?: string; inputParameters?: { [key: string]: string }; outputParameter?: string; } export interface GoogleCloudDialogflowCxV3FulfillmentSetParameterAction { parameter?: string; value?: any; } export interface GoogleCloudDialogflowCxV3GcsDestination { uri?: string; } export interface GoogleCloudDialogflowCxV3GenerativeSettings { fallbackSettings?: GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings; generativeSafetySettings?: GoogleCloudDialogflowCxV3SafetySettings; knowledgeConnectorSettings?: GoogleCloudDialogflowCxV3GenerativeSettingsKnowledgeConnectorSettings; languageCode?: string; llmModelSettings?: GoogleCloudDialogflowCxV3LlmModelSettings; name?: string; } export interface GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings { promptTemplates?: GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettingsPromptTemplate[]; selectedPrompt?: string; } export interface GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettingsPromptTemplate { displayName?: string; frozen?: boolean; promptText?: string; } export interface GoogleCloudDialogflowCxV3GenerativeSettingsKnowledgeConnectorSettings { agent?: string; agentIdentity?: string; agentScope?: string; business?: string; businessDescription?: string; disableDataStoreFallback?: boolean; } export interface GoogleCloudDialogflowCxV3Generator { displayName?: string; llmModelSettings?: GoogleCloudDialogflowCxV3LlmModelSettings; modelParameter?: GoogleCloudDialogflowCxV3GeneratorModelParameter; name?: string; placeholders?: GoogleCloudDialogflowCxV3GeneratorPlaceholder[]; promptText?: GoogleCloudDialogflowCxV3Phrase; } export interface GoogleCloudDialogflowCxV3GeneratorModelParameter { maxDecodeSteps?: number; temperature?: number; topK?: number; topP?: number; } export interface GoogleCloudDialogflowCxV3GeneratorPlaceholder { id?: string; name?: string; } export interface GoogleCloudDialogflowCxV3Handler { eventHandler?: GoogleCloudDialogflowCxV3HandlerEventHandler; lifecycleHandler?: GoogleCloudDialogflowCxV3HandlerLifecycleHandler; } function serializeGoogleCloudDialogflowCxV3Handler(data: any): GoogleCloudDialogflowCxV3Handler { return { ...data, eventHandler: data["eventHandler"] !== undefined ? serializeGoogleCloudDialogflowCxV3HandlerEventHandler(data["eventHandler"]) : undefined, lifecycleHandler: data["lifecycleHandler"] !== undefined ? serializeGoogleCloudDialogflowCxV3HandlerLifecycleHandler(data["lifecycleHandler"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3Handler(data: any): GoogleCloudDialogflowCxV3Handler { return { ...data, eventHandler: data["eventHandler"] !== undefined ? deserializeGoogleCloudDialogflowCxV3HandlerEventHandler(data["eventHandler"]) : undefined, lifecycleHandler: data["lifecycleHandler"] !== undefined ? deserializeGoogleCloudDialogflowCxV3HandlerLifecycleHandler(data["lifecycleHandler"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3HandlerEventHandler { condition?: string; event?: string; fulfillment?: GoogleCloudDialogflowCxV3Fulfillment; } function serializeGoogleCloudDialogflowCxV3HandlerEventHandler(data: any): GoogleCloudDialogflowCxV3HandlerEventHandler { return { ...data, fulfillment: data["fulfillment"] !== undefined ? serializeGoogleCloudDialogflowCxV3Fulfillment(data["fulfillment"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3HandlerEventHandler(data: any): GoogleCloudDialogflowCxV3HandlerEventHandler { return { ...data, fulfillment: data["fulfillment"] !== undefined ? deserializeGoogleCloudDialogflowCxV3Fulfillment(data["fulfillment"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3HandlerLifecycleHandler { condition?: string; fulfillment?: GoogleCloudDialogflowCxV3Fulfillment; lifecycleStage?: string; } function serializeGoogleCloudDialogflowCxV3HandlerLifecycleHandler(data: any): GoogleCloudDialogflowCxV3HandlerLifecycleHandler { return { ...data, fulfillment: data["fulfillment"] !== undefined ? serializeGoogleCloudDialogflowCxV3Fulfillment(data["fulfillment"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3HandlerLifecycleHandler(data: any): GoogleCloudDialogflowCxV3HandlerLifecycleHandler { return { ...data, fulfillment: data["fulfillment"] !== undefined ? deserializeGoogleCloudDialogflowCxV3Fulfillment(data["fulfillment"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3ImportEntityTypesMetadata { } export interface GoogleCloudDialogflowCxV3ImportEntityTypesRequest { entityTypesContent?: GoogleCloudDialogflowCxV3InlineSource; entityTypesUri?: string; mergeOption?: | "MERGE_OPTION_UNSPECIFIED" | "REPLACE" | "MERGE" | "RENAME" | "REPORT_CONFLICT" | "KEEP"; targetEntityType?: string; } function serializeGoogleCloudDialogflowCxV3ImportEntityTypesRequest(data: any): GoogleCloudDialogflowCxV3ImportEntityTypesRequest { return { ...data, entityTypesContent: data["entityTypesContent"] !== undefined ? serializeGoogleCloudDialogflowCxV3InlineSource(data["entityTypesContent"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ImportEntityTypesRequest(data: any): GoogleCloudDialogflowCxV3ImportEntityTypesRequest { return { ...data, entityTypesContent: data["entityTypesContent"] !== undefined ? deserializeGoogleCloudDialogflowCxV3InlineSource(data["entityTypesContent"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3ImportEntityTypesResponse { conflictingResources?: GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources; entityTypes?: string[]; } export interface GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources { entityDisplayNames?: string[]; entityTypeDisplayNames?: string[]; } export interface GoogleCloudDialogflowCxV3ImportFlowRequest { flowContent?: Uint8Array; flowImportStrategy?: GoogleCloudDialogflowCxV3FlowImportStrategy; flowUri?: string; importOption?: | "IMPORT_OPTION_UNSPECIFIED" | "KEEP" | "FALLBACK"; } function serializeGoogleCloudDialogflowCxV3ImportFlowRequest(data: any): GoogleCloudDialogflowCxV3ImportFlowRequest { return { ...data, flowContent: data["flowContent"] !== undefined ? encodeBase64(data["flowContent"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ImportFlowRequest(data: any): GoogleCloudDialogflowCxV3ImportFlowRequest { return { ...data, flowContent: data["flowContent"] !== undefined ? decodeBase64(data["flowContent"] as string) : undefined, }; } export interface GoogleCloudDialogflowCxV3ImportFlowResponse { flow?: string; } export interface GoogleCloudDialogflowCxV3ImportIntentsMetadata { } export interface GoogleCloudDialogflowCxV3ImportIntentsRequest { intentsContent?: GoogleCloudDialogflowCxV3InlineSource; intentsUri?: string; mergeOption?: | "MERGE_OPTION_UNSPECIFIED" | "REJECT" | "REPLACE" | "MERGE" | "RENAME" | "REPORT_CONFLICT" | "KEEP"; } function serializeGoogleCloudDialogflowCxV3ImportIntentsRequest(data: any): GoogleCloudDialogflowCxV3ImportIntentsRequest { return { ...data, intentsContent: data["intentsContent"] !== undefined ? serializeGoogleCloudDialogflowCxV3InlineSource(data["intentsContent"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ImportIntentsRequest(data: any): GoogleCloudDialogflowCxV3ImportIntentsRequest { return { ...data, intentsContent: data["intentsContent"] !== undefined ? deserializeGoogleCloudDialogflowCxV3InlineSource(data["intentsContent"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3ImportIntentsResponse { conflictingResources?: GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources; intents?: string[]; } export interface GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources { entityDisplayNames?: string[]; intentDisplayNames?: string[]; } export interface GoogleCloudDialogflowCxV3ImportPlaybookRequest { importStrategy?: GoogleCloudDialogflowCxV3PlaybookImportStrategy; playbookContent?: Uint8Array; playbookUri?: string; } function serializeGoogleCloudDialogflowCxV3ImportPlaybookRequest(data: any): GoogleCloudDialogflowCxV3ImportPlaybookRequest { return { ...data, playbookContent: data["playbookContent"] !== undefined ? encodeBase64(data["playbookContent"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ImportPlaybookRequest(data: any): GoogleCloudDialogflowCxV3ImportPlaybookRequest { return { ...data, playbookContent: data["playbookContent"] !== undefined ? decodeBase64(data["playbookContent"] as string) : undefined, }; } export interface GoogleCloudDialogflowCxV3ImportTestCasesMetadata { errors?: GoogleCloudDialogflowCxV3TestCaseError[]; } function serializeGoogleCloudDialogflowCxV3ImportTestCasesMetadata(data: any): GoogleCloudDialogflowCxV3ImportTestCasesMetadata { return { ...data, errors: data["errors"] !== undefined ? data["errors"].map((item: any) => (serializeGoogleCloudDialogflowCxV3TestCaseError(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ImportTestCasesMetadata(data: any): GoogleCloudDialogflowCxV3ImportTestCasesMetadata { return { ...data, errors: data["errors"] !== undefined ? data["errors"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3TestCaseError(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3ImportTestCasesRequest { content?: Uint8Array; gcsUri?: string; } function serializeGoogleCloudDialogflowCxV3ImportTestCasesRequest(data: any): GoogleCloudDialogflowCxV3ImportTestCasesRequest { return { ...data, content: data["content"] !== undefined ? encodeBase64(data["content"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ImportTestCasesRequest(data: any): GoogleCloudDialogflowCxV3ImportTestCasesRequest { return { ...data, content: data["content"] !== undefined ? decodeBase64(data["content"] as string) : undefined, }; } export interface GoogleCloudDialogflowCxV3ImportTestCasesResponse { names?: string[]; } export interface GoogleCloudDialogflowCxV3InlineDestination { readonly content?: Uint8Array; } export interface GoogleCloudDialogflowCxV3InlineSchema { items?: GoogleCloudDialogflowCxV3TypeSchema; type?: | "DATA_TYPE_UNSPECIFIED" | "STRING" | "NUMBER" | "BOOLEAN" | "ARRAY"; } export interface GoogleCloudDialogflowCxV3InlineSource { content?: Uint8Array; } function serializeGoogleCloudDialogflowCxV3InlineSource(data: any): GoogleCloudDialogflowCxV3InlineSource { return { ...data, content: data["content"] !== undefined ? encodeBase64(data["content"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3InlineSource(data: any): GoogleCloudDialogflowCxV3InlineSource { return { ...data, content: data["content"] !== undefined ? decodeBase64(data["content"] as string) : undefined, }; } export interface GoogleCloudDialogflowCxV3InputAudioConfig { audioEncoding?: | "AUDIO_ENCODING_UNSPECIFIED" | "AUDIO_ENCODING_LINEAR_16" | "AUDIO_ENCODING_FLAC" | "AUDIO_ENCODING_MULAW" | "AUDIO_ENCODING_AMR" | "AUDIO_ENCODING_AMR_WB" | "AUDIO_ENCODING_OGG_OPUS" | "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" | "AUDIO_ENCODING_ALAW"; bargeInConfig?: GoogleCloudDialogflowCxV3BargeInConfig; enableWordInfo?: boolean; model?: string; modelVariant?: | "SPEECH_MODEL_VARIANT_UNSPECIFIED" | "USE_BEST_AVAILABLE" | "USE_STANDARD" | "USE_ENHANCED"; optOutConformerModelMigration?: boolean; phraseHints?: string[]; sampleRateHertz?: number; singleUtterance?: boolean; } function serializeGoogleCloudDialogflowCxV3InputAudioConfig(data: any): GoogleCloudDialogflowCxV3InputAudioConfig { return { ...data, bargeInConfig: data["bargeInConfig"] !== undefined ? serializeGoogleCloudDialogflowCxV3BargeInConfig(data["bargeInConfig"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3InputAudioConfig(data: any): GoogleCloudDialogflowCxV3InputAudioConfig { return { ...data, bargeInConfig: data["bargeInConfig"] !== undefined ? deserializeGoogleCloudDialogflowCxV3BargeInConfig(data["bargeInConfig"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3Intent { description?: string; displayName?: string; isFallback?: boolean; labels?: { [key: string]: string }; name?: string; parameters?: GoogleCloudDialogflowCxV3IntentParameter[]; priority?: number; trainingPhrases?: GoogleCloudDialogflowCxV3IntentTrainingPhrase[]; } export interface GoogleCloudDialogflowCxV3IntentCoverage { coverageScore?: number; intents?: GoogleCloudDialogflowCxV3IntentCoverageIntent[]; } export interface GoogleCloudDialogflowCxV3IntentCoverageIntent { covered?: boolean; intent?: string; } export interface GoogleCloudDialogflowCxV3IntentInput { intent?: string; } export interface GoogleCloudDialogflowCxV3IntentParameter { entityType?: string; id?: string; isList?: boolean; redact?: boolean; } export interface GoogleCloudDialogflowCxV3IntentTrainingPhrase { readonly id?: string; parts?: GoogleCloudDialogflowCxV3IntentTrainingPhrasePart[]; repeatCount?: number; } export interface GoogleCloudDialogflowCxV3IntentTrainingPhrasePart { parameterId?: string; text?: string; } export interface GoogleCloudDialogflowCxV3KnowledgeConnectorSettings { dataStoreConnections?: GoogleCloudDialogflowCxV3DataStoreConnection[]; enabled?: boolean; targetFlow?: string; targetPage?: string; triggerFulfillment?: GoogleCloudDialogflowCxV3Fulfillment; } function serializeGoogleCloudDialogflowCxV3KnowledgeConnectorSettings(data: any): GoogleCloudDialogflowCxV3KnowledgeConnectorSettings { return { ...data, triggerFulfillment: data["triggerFulfillment"] !== undefined ? serializeGoogleCloudDialogflowCxV3Fulfillment(data["triggerFulfillment"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3KnowledgeConnectorSettings(data: any): GoogleCloudDialogflowCxV3KnowledgeConnectorSettings { return { ...data, triggerFulfillment: data["triggerFulfillment"] !== undefined ? deserializeGoogleCloudDialogflowCxV3Fulfillment(data["triggerFulfillment"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3LanguageInfo { confidenceScore?: number; inputLanguageCode?: string; resolvedLanguageCode?: string; } export interface GoogleCloudDialogflowCxV3ListAgentsResponse { agents?: GoogleCloudDialogflowCxV3Agent[]; nextPageToken?: string; } function serializeGoogleCloudDialogflowCxV3ListAgentsResponse(data: any): GoogleCloudDialogflowCxV3ListAgentsResponse { return { ...data, agents: data["agents"] !== undefined ? data["agents"].map((item: any) => (serializeGoogleCloudDialogflowCxV3Agent(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ListAgentsResponse(data: any): GoogleCloudDialogflowCxV3ListAgentsResponse { return { ...data, agents: data["agents"] !== undefined ? data["agents"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3Agent(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3ListChangelogsResponse { changelogs?: GoogleCloudDialogflowCxV3Changelog[]; nextPageToken?: string; } function serializeGoogleCloudDialogflowCxV3ListChangelogsResponse(data: any): GoogleCloudDialogflowCxV3ListChangelogsResponse { return { ...data, changelogs: data["changelogs"] !== undefined ? data["changelogs"].map((item: any) => (serializeGoogleCloudDialogflowCxV3Changelog(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ListChangelogsResponse(data: any): GoogleCloudDialogflowCxV3ListChangelogsResponse { return { ...data, changelogs: data["changelogs"] !== undefined ? data["changelogs"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3Changelog(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3ListContinuousTestResultsResponse { continuousTestResults?: GoogleCloudDialogflowCxV3ContinuousTestResult[]; nextPageToken?: string; } function serializeGoogleCloudDialogflowCxV3ListContinuousTestResultsResponse(data: any): GoogleCloudDialogflowCxV3ListContinuousTestResultsResponse { return { ...data, continuousTestResults: data["continuousTestResults"] !== undefined ? data["continuousTestResults"].map((item: any) => (serializeGoogleCloudDialogflowCxV3ContinuousTestResult(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ListContinuousTestResultsResponse(data: any): GoogleCloudDialogflowCxV3ListContinuousTestResultsResponse { return { ...data, continuousTestResults: data["continuousTestResults"] !== undefined ? data["continuousTestResults"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3ContinuousTestResult(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3ListDeploymentsResponse { deployments?: GoogleCloudDialogflowCxV3Deployment[]; nextPageToken?: string; } function serializeGoogleCloudDialogflowCxV3ListDeploymentsResponse(data: any): GoogleCloudDialogflowCxV3ListDeploymentsResponse { return { ...data, deployments: data["deployments"] !== undefined ? data["deployments"].map((item: any) => (serializeGoogleCloudDialogflowCxV3Deployment(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ListDeploymentsResponse(data: any): GoogleCloudDialogflowCxV3ListDeploymentsResponse { return { ...data, deployments: data["deployments"] !== undefined ? data["deployments"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3Deployment(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3ListEntityTypesResponse { entityTypes?: GoogleCloudDialogflowCxV3EntityType[]; nextPageToken?: string; } export interface GoogleCloudDialogflowCxV3ListEnvironmentsResponse { environments?: GoogleCloudDialogflowCxV3Environment[]; nextPageToken?: string; } function serializeGoogleCloudDialogflowCxV3ListEnvironmentsResponse(data: any): GoogleCloudDialogflowCxV3ListEnvironmentsResponse { return { ...data, environments: data["environments"] !== undefined ? data["environments"].map((item: any) => (serializeGoogleCloudDialogflowCxV3Environment(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ListEnvironmentsResponse(data: any): GoogleCloudDialogflowCxV3ListEnvironmentsResponse { return { ...data, environments: data["environments"] !== undefined ? data["environments"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3Environment(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3ListExamplesResponse { examples?: GoogleCloudDialogflowCxV3Example[]; nextPageToken?: string; } export interface GoogleCloudDialogflowCxV3ListExperimentsResponse { experiments?: GoogleCloudDialogflowCxV3Experiment[]; nextPageToken?: string; } function serializeGoogleCloudDialogflowCxV3ListExperimentsResponse(data: any): GoogleCloudDialogflowCxV3ListExperimentsResponse { return { ...data, experiments: data["experiments"] !== undefined ? data["experiments"].map((item: any) => (serializeGoogleCloudDialogflowCxV3Experiment(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ListExperimentsResponse(data: any): GoogleCloudDialogflowCxV3ListExperimentsResponse { return { ...data, experiments: data["experiments"] !== undefined ? data["experiments"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3Experiment(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3ListFlowsResponse { flows?: GoogleCloudDialogflowCxV3Flow[]; nextPageToken?: string; } function serializeGoogleCloudDialogflowCxV3ListFlowsResponse(data: any): GoogleCloudDialogflowCxV3ListFlowsResponse { return { ...data, flows: data["flows"] !== undefined ? data["flows"].map((item: any) => (serializeGoogleCloudDialogflowCxV3Flow(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ListFlowsResponse(data: any): GoogleCloudDialogflowCxV3ListFlowsResponse { return { ...data, flows: data["flows"] !== undefined ? data["flows"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3Flow(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3ListGeneratorsResponse { generators?: GoogleCloudDialogflowCxV3Generator[]; nextPageToken?: string; } export interface GoogleCloudDialogflowCxV3ListIntentsResponse { intents?: GoogleCloudDialogflowCxV3Intent[]; nextPageToken?: string; } export interface GoogleCloudDialogflowCxV3ListPagesResponse { nextPageToken?: string; pages?: GoogleCloudDialogflowCxV3Page[]; } function serializeGoogleCloudDialogflowCxV3ListPagesResponse(data: any): GoogleCloudDialogflowCxV3ListPagesResponse { return { ...data, pages: data["pages"] !== undefined ? data["pages"].map((item: any) => (serializeGoogleCloudDialogflowCxV3Page(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ListPagesResponse(data: any): GoogleCloudDialogflowCxV3ListPagesResponse { return { ...data, pages: data["pages"] !== undefined ? data["pages"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3Page(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3ListPlaybooksResponse { nextPageToken?: string; playbooks?: GoogleCloudDialogflowCxV3Playbook[]; } function serializeGoogleCloudDialogflowCxV3ListPlaybooksResponse(data: any): GoogleCloudDialogflowCxV3ListPlaybooksResponse { return { ...data, playbooks: data["playbooks"] !== undefined ? data["playbooks"].map((item: any) => (serializeGoogleCloudDialogflowCxV3Playbook(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ListPlaybooksResponse(data: any): GoogleCloudDialogflowCxV3ListPlaybooksResponse { return { ...data, playbooks: data["playbooks"] !== undefined ? data["playbooks"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3Playbook(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3ListPlaybookVersionsResponse { nextPageToken?: string; playbookVersions?: GoogleCloudDialogflowCxV3PlaybookVersion[]; } export interface GoogleCloudDialogflowCxV3ListSecuritySettingsResponse { nextPageToken?: string; securitySettings?: GoogleCloudDialogflowCxV3SecuritySettings[]; } export interface GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse { nextPageToken?: string; sessionEntityTypes?: GoogleCloudDialogflowCxV3SessionEntityType[]; } export interface GoogleCloudDialogflowCxV3ListTestCaseResultsResponse { nextPageToken?: string; testCaseResults?: GoogleCloudDialogflowCxV3TestCaseResult[]; } function serializeGoogleCloudDialogflowCxV3ListTestCaseResultsResponse(data: any): GoogleCloudDialogflowCxV3ListTestCaseResultsResponse { return { ...data, testCaseResults: data["testCaseResults"] !== undefined ? data["testCaseResults"].map((item: any) => (serializeGoogleCloudDialogflowCxV3TestCaseResult(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ListTestCaseResultsResponse(data: any): GoogleCloudDialogflowCxV3ListTestCaseResultsResponse { return { ...data, testCaseResults: data["testCaseResults"] !== undefined ? data["testCaseResults"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3TestCaseResult(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3ListTestCasesResponse { nextPageToken?: string; testCases?: GoogleCloudDialogflowCxV3TestCase[]; } function serializeGoogleCloudDialogflowCxV3ListTestCasesResponse(data: any): GoogleCloudDialogflowCxV3ListTestCasesResponse { return { ...data, testCases: data["testCases"] !== undefined ? data["testCases"].map((item: any) => (serializeGoogleCloudDialogflowCxV3TestCase(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ListTestCasesResponse(data: any): GoogleCloudDialogflowCxV3ListTestCasesResponse { return { ...data, testCases: data["testCases"] !== undefined ? data["testCases"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3TestCase(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3ListToolsResponse { nextPageToken?: string; tools?: GoogleCloudDialogflowCxV3Tool[]; } function serializeGoogleCloudDialogflowCxV3ListToolsResponse(data: any): GoogleCloudDialogflowCxV3ListToolsResponse { return { ...data, tools: data["tools"] !== undefined ? data["tools"].map((item: any) => (serializeGoogleCloudDialogflowCxV3Tool(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ListToolsResponse(data: any): GoogleCloudDialogflowCxV3ListToolsResponse { return { ...data, tools: data["tools"] !== undefined ? data["tools"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3Tool(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3ListToolVersionsResponse { nextPageToken?: string; toolVersions?: GoogleCloudDialogflowCxV3ToolVersion[]; } function serializeGoogleCloudDialogflowCxV3ListToolVersionsResponse(data: any): GoogleCloudDialogflowCxV3ListToolVersionsResponse { return { ...data, toolVersions: data["toolVersions"] !== undefined ? data["toolVersions"].map((item: any) => (serializeGoogleCloudDialogflowCxV3ToolVersion(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ListToolVersionsResponse(data: any): GoogleCloudDialogflowCxV3ListToolVersionsResponse { return { ...data, toolVersions: data["toolVersions"] !== undefined ? data["toolVersions"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3ToolVersion(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse { nextPageToken?: string; transitionRouteGroups?: GoogleCloudDialogflowCxV3TransitionRouteGroup[]; } function serializeGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse(data: any): GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse { return { ...data, transitionRouteGroups: data["transitionRouteGroups"] !== undefined ? data["transitionRouteGroups"].map((item: any) => (serializeGoogleCloudDialogflowCxV3TransitionRouteGroup(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse(data: any): GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse { return { ...data, transitionRouteGroups: data["transitionRouteGroups"] !== undefined ? data["transitionRouteGroups"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3TransitionRouteGroup(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3ListVersionsResponse { nextPageToken?: string; versions?: GoogleCloudDialogflowCxV3Version[]; } export interface GoogleCloudDialogflowCxV3ListWebhooksResponse { nextPageToken?: string; webhooks?: GoogleCloudDialogflowCxV3Webhook[]; } function serializeGoogleCloudDialogflowCxV3ListWebhooksResponse(data: any): GoogleCloudDialogflowCxV3ListWebhooksResponse { return { ...data, webhooks: data["webhooks"] !== undefined ? data["webhooks"].map((item: any) => (serializeGoogleCloudDialogflowCxV3Webhook(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ListWebhooksResponse(data: any): GoogleCloudDialogflowCxV3ListWebhooksResponse { return { ...data, webhooks: data["webhooks"] !== undefined ? data["webhooks"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3Webhook(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3LlmModelSettings { model?: string; promptText?: string; } export interface GoogleCloudDialogflowCxV3LoadVersionRequest { allowOverrideAgentResources?: boolean; } export interface GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse { environments?: GoogleCloudDialogflowCxV3Environment[]; nextPageToken?: string; } function serializeGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse(data: any): GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse { return { ...data, environments: data["environments"] !== undefined ? data["environments"].map((item: any) => (serializeGoogleCloudDialogflowCxV3Environment(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse(data: any): GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse { return { ...data, environments: data["environments"] !== undefined ? data["environments"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3Environment(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3Match { confidence?: number; event?: string; intent?: GoogleCloudDialogflowCxV3Intent; matchType?: | "MATCH_TYPE_UNSPECIFIED" | "INTENT" | "DIRECT_INTENT" | "PARAMETER_FILLING" | "NO_MATCH" | "NO_INPUT" | "EVENT" | "KNOWLEDGE_CONNECTOR" | "PLAYBOOK"; parameters?: { [key: string]: any }; resolvedInput?: string; } export interface GoogleCloudDialogflowCxV3MatchIntentRequest { persistParameterChanges?: boolean; queryInput?: GoogleCloudDialogflowCxV3QueryInput; queryParams?: GoogleCloudDialogflowCxV3QueryParameters; } function serializeGoogleCloudDialogflowCxV3MatchIntentRequest(data: any): GoogleCloudDialogflowCxV3MatchIntentRequest { return { ...data, queryInput: data["queryInput"] !== undefined ? serializeGoogleCloudDialogflowCxV3QueryInput(data["queryInput"]) : undefined, queryParams: data["queryParams"] !== undefined ? serializeGoogleCloudDialogflowCxV3QueryParameters(data["queryParams"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3MatchIntentRequest(data: any): GoogleCloudDialogflowCxV3MatchIntentRequest { return { ...data, queryInput: data["queryInput"] !== undefined ? deserializeGoogleCloudDialogflowCxV3QueryInput(data["queryInput"]) : undefined, queryParams: data["queryParams"] !== undefined ? deserializeGoogleCloudDialogflowCxV3QueryParameters(data["queryParams"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3MatchIntentResponse { currentPage?: GoogleCloudDialogflowCxV3Page; matches?: GoogleCloudDialogflowCxV3Match[]; text?: string; transcript?: string; triggerEvent?: string; triggerIntent?: string; } function serializeGoogleCloudDialogflowCxV3MatchIntentResponse(data: any): GoogleCloudDialogflowCxV3MatchIntentResponse { return { ...data, currentPage: data["currentPage"] !== undefined ? serializeGoogleCloudDialogflowCxV3Page(data["currentPage"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3MatchIntentResponse(data: any): GoogleCloudDialogflowCxV3MatchIntentResponse { return { ...data, currentPage: data["currentPage"] !== undefined ? deserializeGoogleCloudDialogflowCxV3Page(data["currentPage"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3NluSettings { classificationThreshold?: number; modelTrainingMode?: | "MODEL_TRAINING_MODE_UNSPECIFIED" | "MODEL_TRAINING_MODE_AUTOMATIC" | "MODEL_TRAINING_MODE_MANUAL"; modelType?: | "MODEL_TYPE_UNSPECIFIED" | "MODEL_TYPE_STANDARD" | "MODEL_TYPE_ADVANCED"; } export interface GoogleCloudDialogflowCxV3OutputAudioConfig { audioEncoding?: | "OUTPUT_AUDIO_ENCODING_UNSPECIFIED" | "OUTPUT_AUDIO_ENCODING_LINEAR_16" | "OUTPUT_AUDIO_ENCODING_MP3" | "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS" | "OUTPUT_AUDIO_ENCODING_OGG_OPUS" | "OUTPUT_AUDIO_ENCODING_MULAW" | "OUTPUT_AUDIO_ENCODING_ALAW"; sampleRateHertz?: number; synthesizeSpeechConfig?: GoogleCloudDialogflowCxV3SynthesizeSpeechConfig; } export interface GoogleCloudDialogflowCxV3Page { advancedSettings?: GoogleCloudDialogflowCxV3AdvancedSettings; description?: string; displayName?: string; entryFulfillment?: GoogleCloudDialogflowCxV3Fulfillment; eventHandlers?: GoogleCloudDialogflowCxV3EventHandler[]; form?: GoogleCloudDialogflowCxV3Form; knowledgeConnectorSettings?: GoogleCloudDialogflowCxV3KnowledgeConnectorSettings; name?: string; transitionRouteGroups?: string[]; transitionRoutes?: GoogleCloudDialogflowCxV3TransitionRoute[]; } function serializeGoogleCloudDialogflowCxV3Page(data: any): GoogleCloudDialogflowCxV3Page { return { ...data, advancedSettings: data["advancedSettings"] !== undefined ? serializeGoogleCloudDialogflowCxV3AdvancedSettings(data["advancedSettings"]) : undefined, entryFulfillment: data["entryFulfillment"] !== undefined ? serializeGoogleCloudDialogflowCxV3Fulfillment(data["entryFulfillment"]) : undefined, eventHandlers: data["eventHandlers"] !== undefined ? data["eventHandlers"].map((item: any) => (serializeGoogleCloudDialogflowCxV3EventHandler(item))) : undefined, form: data["form"] !== undefined ? serializeGoogleCloudDialogflowCxV3Form(data["form"]) : undefined, knowledgeConnectorSettings: data["knowledgeConnectorSettings"] !== undefined ? serializeGoogleCloudDialogflowCxV3KnowledgeConnectorSettings(data["knowledgeConnectorSettings"]) : undefined, transitionRoutes: data["transitionRoutes"] !== undefined ? data["transitionRoutes"].map((item: any) => (serializeGoogleCloudDialogflowCxV3TransitionRoute(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3Page(data: any): GoogleCloudDialogflowCxV3Page { return { ...data, advancedSettings: data["advancedSettings"] !== undefined ? deserializeGoogleCloudDialogflowCxV3AdvancedSettings(data["advancedSettings"]) : undefined, entryFulfillment: data["entryFulfillment"] !== undefined ? deserializeGoogleCloudDialogflowCxV3Fulfillment(data["entryFulfillment"]) : undefined, eventHandlers: data["eventHandlers"] !== undefined ? data["eventHandlers"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3EventHandler(item))) : undefined, form: data["form"] !== undefined ? deserializeGoogleCloudDialogflowCxV3Form(data["form"]) : undefined, knowledgeConnectorSettings: data["knowledgeConnectorSettings"] !== undefined ? deserializeGoogleCloudDialogflowCxV3KnowledgeConnectorSettings(data["knowledgeConnectorSettings"]) : undefined, transitionRoutes: data["transitionRoutes"] !== undefined ? data["transitionRoutes"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3TransitionRoute(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3PageInfo { currentPage?: string; displayName?: string; formInfo?: GoogleCloudDialogflowCxV3PageInfoFormInfo; } export interface GoogleCloudDialogflowCxV3PageInfoFormInfo { parameterInfo?: GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo[]; } export interface GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo { displayName?: string; justCollected?: boolean; required?: boolean; state?: | "PARAMETER_STATE_UNSPECIFIED" | "EMPTY" | "INVALID" | "FILLED"; value?: any; } export interface GoogleCloudDialogflowCxV3ParameterDefinition { description?: string; name?: string; type?: | "PARAMETER_TYPE_UNSPECIFIED" | "STRING" | "NUMBER" | "BOOLEAN" | "NULL" | "OBJECT" | "LIST"; typeSchema?: GoogleCloudDialogflowCxV3TypeSchema; } export interface GoogleCloudDialogflowCxV3Phrase { text?: string; } export interface GoogleCloudDialogflowCxV3Playbook { codeBlock?: GoogleCloudDialogflowCxV3CodeBlock; readonly createTime?: Date; displayName?: string; goal?: string; handlers?: GoogleCloudDialogflowCxV3Handler[]; readonly inlineActions?: string[]; inputParameterDefinitions?: GoogleCloudDialogflowCxV3ParameterDefinition[]; instruction?: GoogleCloudDialogflowCxV3PlaybookInstruction; llmModelSettings?: GoogleCloudDialogflowCxV3LlmModelSettings; name?: string; outputParameterDefinitions?: GoogleCloudDialogflowCxV3ParameterDefinition[]; playbookType?: | "PLAYBOOK_TYPE_UNSPECIFIED" | "TASK" | "ROUTINE"; readonly referencedFlows?: string[]; readonly referencedPlaybooks?: string[]; referencedTools?: string[]; readonly tokenCount?: bigint; readonly updateTime?: Date; } function serializeGoogleCloudDialogflowCxV3Playbook(data: any): GoogleCloudDialogflowCxV3Playbook { return { ...data, handlers: data["handlers"] !== undefined ? data["handlers"].map((item: any) => (serializeGoogleCloudDialogflowCxV3Handler(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3Playbook(data: any): GoogleCloudDialogflowCxV3Playbook { return { ...data, createTime: data["createTime"] !== undefined ? new Date(data["createTime"]) : undefined, handlers: data["handlers"] !== undefined ? data["handlers"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3Handler(item))) : undefined, tokenCount: data["tokenCount"] !== undefined ? BigInt(data["tokenCount"]) : undefined, updateTime: data["updateTime"] !== undefined ? new Date(data["updateTime"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3PlaybookImportStrategy { mainPlaybookImportStrategy?: | "IMPORT_STRATEGY_UNSPECIFIED" | "IMPORT_STRATEGY_CREATE_NEW" | "IMPORT_STRATEGY_REPLACE" | "IMPORT_STRATEGY_KEEP" | "IMPORT_STRATEGY_MERGE" | "IMPORT_STRATEGY_THROW_ERROR"; nestedResourceImportStrategy?: | "IMPORT_STRATEGY_UNSPECIFIED" | "IMPORT_STRATEGY_CREATE_NEW" | "IMPORT_STRATEGY_REPLACE" | "IMPORT_STRATEGY_KEEP" | "IMPORT_STRATEGY_MERGE" | "IMPORT_STRATEGY_THROW_ERROR"; toolImportStrategy?: | "IMPORT_STRATEGY_UNSPECIFIED" | "IMPORT_STRATEGY_CREATE_NEW" | "IMPORT_STRATEGY_REPLACE" | "IMPORT_STRATEGY_KEEP" | "IMPORT_STRATEGY_MERGE" | "IMPORT_STRATEGY_THROW_ERROR"; } export interface GoogleCloudDialogflowCxV3PlaybookInput { precedingConversationSummary?: string; } export interface GoogleCloudDialogflowCxV3PlaybookInstruction { guidelines?: string; steps?: GoogleCloudDialogflowCxV3PlaybookStep[]; } export interface GoogleCloudDialogflowCxV3PlaybookInvocation { readonly displayName?: string; playbook?: string; playbookInput?: GoogleCloudDialogflowCxV3PlaybookInput; playbookOutput?: GoogleCloudDialogflowCxV3PlaybookOutput; playbookState?: | "OUTPUT_STATE_UNSPECIFIED" | "OUTPUT_STATE_OK" | "OUTPUT_STATE_CANCELLED" | "OUTPUT_STATE_FAILED" | "OUTPUT_STATE_ESCALATED" | "OUTPUT_STATE_PENDING"; } export interface GoogleCloudDialogflowCxV3PlaybookOutput { executionSummary?: string; } export interface GoogleCloudDialogflowCxV3PlaybookStep { steps?: GoogleCloudDialogflowCxV3PlaybookStep[]; text?: string; } export interface GoogleCloudDialogflowCxV3PlaybookTransition { readonly displayName?: string; playbook?: string; } export interface GoogleCloudDialogflowCxV3PlaybookVersion { description?: string; readonly examples?: GoogleCloudDialogflowCxV3Example[]; name?: string; readonly playbook?: GoogleCloudDialogflowCxV3Playbook; readonly updateTime?: Date; } export interface GoogleCloudDialogflowCxV3QueryInput { audio?: GoogleCloudDialogflowCxV3AudioInput; dtmf?: GoogleCloudDialogflowCxV3DtmfInput; event?: GoogleCloudDialogflowCxV3EventInput; intent?: GoogleCloudDialogflowCxV3IntentInput; languageCode?: string; text?: GoogleCloudDialogflowCxV3TextInput; toolCallResult?: GoogleCloudDialogflowCxV3ToolCallResult; } function serializeGoogleCloudDialogflowCxV3QueryInput(data: any): GoogleCloudDialogflowCxV3QueryInput { return { ...data, audio: data["audio"] !== undefined ? serializeGoogleCloudDialogflowCxV3AudioInput(data["audio"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3QueryInput(data: any): GoogleCloudDialogflowCxV3QueryInput { return { ...data, audio: data["audio"] !== undefined ? deserializeGoogleCloudDialogflowCxV3AudioInput(data["audio"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3QueryParameters { analyzeQueryTextSentiment?: boolean; channel?: string; currentPage?: string; currentPlaybook?: string; disableWebhook?: boolean; endUserMetadata?: { [key: string]: any }; flowVersions?: string[]; geoLocation?: GoogleTypeLatLng; llmModelSettings?: GoogleCloudDialogflowCxV3LlmModelSettings; parameters?: { [key: string]: any }; parameterScope?: string; payload?: { [key: string]: any }; populateDataStoreConnectionSignals?: boolean; searchConfig?: GoogleCloudDialogflowCxV3SearchConfig; sessionEntityTypes?: GoogleCloudDialogflowCxV3SessionEntityType[]; sessionTtl?: number /* Duration */; timeZone?: string; webhookHeaders?: { [key: string]: string }; } function serializeGoogleCloudDialogflowCxV3QueryParameters(data: any): GoogleCloudDialogflowCxV3QueryParameters { return { ...data, sessionTtl: data["sessionTtl"] !== undefined ? data["sessionTtl"] : undefined, }; } function deserializeGoogleCloudDialogflowCxV3QueryParameters(data: any): GoogleCloudDialogflowCxV3QueryParameters { return { ...data, sessionTtl: data["sessionTtl"] !== undefined ? data["sessionTtl"] : undefined, }; } export interface GoogleCloudDialogflowCxV3QueryResult { advancedSettings?: GoogleCloudDialogflowCxV3AdvancedSettings; allowAnswerFeedback?: boolean; currentFlow?: GoogleCloudDialogflowCxV3Flow; currentPage?: GoogleCloudDialogflowCxV3Page; dataStoreConnectionSignals?: GoogleCloudDialogflowCxV3DataStoreConnectionSignals; diagnosticInfo?: { [key: string]: any }; dtmf?: GoogleCloudDialogflowCxV3DtmfInput; intent?: GoogleCloudDialogflowCxV3Intent; intentDetectionConfidence?: number; languageCode?: string; match?: GoogleCloudDialogflowCxV3Match; parameters?: { [key: string]: any }; responseMessages?: GoogleCloudDialogflowCxV3ResponseMessage[]; sentimentAnalysisResult?: GoogleCloudDialogflowCxV3SentimentAnalysisResult; text?: string; transcript?: string; triggerEvent?: string; triggerIntent?: string; webhookPayloads?: { [key: string]: any }[]; webhookStatuses?: GoogleRpcStatus[]; } function serializeGoogleCloudDialogflowCxV3QueryResult(data: any): GoogleCloudDialogflowCxV3QueryResult { return { ...data, advancedSettings: data["advancedSettings"] !== undefined ? serializeGoogleCloudDialogflowCxV3AdvancedSettings(data["advancedSettings"]) : undefined, currentFlow: data["currentFlow"] !== undefined ? serializeGoogleCloudDialogflowCxV3Flow(data["currentFlow"]) : undefined, currentPage: data["currentPage"] !== undefined ? serializeGoogleCloudDialogflowCxV3Page(data["currentPage"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3QueryResult(data: any): GoogleCloudDialogflowCxV3QueryResult { return { ...data, advancedSettings: data["advancedSettings"] !== undefined ? deserializeGoogleCloudDialogflowCxV3AdvancedSettings(data["advancedSettings"]) : undefined, currentFlow: data["currentFlow"] !== undefined ? deserializeGoogleCloudDialogflowCxV3Flow(data["currentFlow"]) : undefined, currentPage: data["currentPage"] !== undefined ? deserializeGoogleCloudDialogflowCxV3Page(data["currentPage"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3ResourceName { displayName?: string; name?: string; } export interface GoogleCloudDialogflowCxV3ResponseMessage { channel?: string; conversationSuccess?: GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess; readonly endInteraction?: GoogleCloudDialogflowCxV3ResponseMessageEndInteraction; knowledgeInfoCard?: GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard; liveAgentHandoff?: GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff; readonly mixedAudio?: GoogleCloudDialogflowCxV3ResponseMessageMixedAudio; outputAudioText?: GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText; payload?: { [key: string]: any }; playAudio?: GoogleCloudDialogflowCxV3ResponseMessagePlayAudio; responseType?: | "RESPONSE_TYPE_UNSPECIFIED" | "ENTRY_PROMPT" | "PARAMETER_PROMPT" | "HANDLER_PROMPT"; telephonyTransferCall?: GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall; text?: GoogleCloudDialogflowCxV3ResponseMessageText; toolCall?: GoogleCloudDialogflowCxV3ToolCall; } export interface GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess { metadata?: { [key: string]: any }; } export interface GoogleCloudDialogflowCxV3ResponseMessageEndInteraction { } export interface GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard { } export interface GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff { metadata?: { [key: string]: any }; } export interface GoogleCloudDialogflowCxV3ResponseMessageMixedAudio { segments?: GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment[]; } function serializeGoogleCloudDialogflowCxV3ResponseMessageMixedAudio(data: any): GoogleCloudDialogflowCxV3ResponseMessageMixedAudio { return { ...data, segments: data["segments"] !== undefined ? data["segments"].map((item: any) => (serializeGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ResponseMessageMixedAudio(data: any): GoogleCloudDialogflowCxV3ResponseMessageMixedAudio { return { ...data, segments: data["segments"] !== undefined ? data["segments"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment { readonly allowPlaybackInterruption?: boolean; audio?: Uint8Array; uri?: string; } function serializeGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment(data: any): GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment { return { ...data, audio: data["audio"] !== undefined ? encodeBase64(data["audio"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment(data: any): GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment { return { ...data, audio: data["audio"] !== undefined ? decodeBase64(data["audio"] as string) : undefined, }; } export interface GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText { readonly allowPlaybackInterruption?: boolean; ssml?: string; text?: string; } export interface GoogleCloudDialogflowCxV3ResponseMessagePlayAudio { readonly allowPlaybackInterruption?: boolean; audioUri?: string; } export interface GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall { phoneNumber?: string; } export interface GoogleCloudDialogflowCxV3ResponseMessageText { readonly allowPlaybackInterruption?: boolean; text?: string[]; } export interface GoogleCloudDialogflowCxV3RestoreAgentRequest { agentContent?: Uint8Array; agentUri?: string; gitSource?: GoogleCloudDialogflowCxV3RestoreAgentRequestGitSource; restoreOption?: | "RESTORE_OPTION_UNSPECIFIED" | "KEEP" | "FALLBACK"; } function serializeGoogleCloudDialogflowCxV3RestoreAgentRequest(data: any): GoogleCloudDialogflowCxV3RestoreAgentRequest { return { ...data, agentContent: data["agentContent"] !== undefined ? encodeBase64(data["agentContent"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3RestoreAgentRequest(data: any): GoogleCloudDialogflowCxV3RestoreAgentRequest { return { ...data, agentContent: data["agentContent"] !== undefined ? decodeBase64(data["agentContent"] as string) : undefined, }; } export interface GoogleCloudDialogflowCxV3RestoreAgentRequestGitSource { trackingBranch?: string; } export interface GoogleCloudDialogflowCxV3RestorePlaybookVersionRequest { } export interface GoogleCloudDialogflowCxV3RestorePlaybookVersionResponse { playbook?: GoogleCloudDialogflowCxV3Playbook; } function serializeGoogleCloudDialogflowCxV3RestorePlaybookVersionResponse(data: any): GoogleCloudDialogflowCxV3RestorePlaybookVersionResponse { return { ...data, playbook: data["playbook"] !== undefined ? serializeGoogleCloudDialogflowCxV3Playbook(data["playbook"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3RestorePlaybookVersionResponse(data: any): GoogleCloudDialogflowCxV3RestorePlaybookVersionResponse { return { ...data, playbook: data["playbook"] !== undefined ? deserializeGoogleCloudDialogflowCxV3Playbook(data["playbook"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3RestoreToolVersionRequest { } export interface GoogleCloudDialogflowCxV3RestoreToolVersionResponse { tool?: GoogleCloudDialogflowCxV3Tool; } function serializeGoogleCloudDialogflowCxV3RestoreToolVersionResponse(data: any): GoogleCloudDialogflowCxV3RestoreToolVersionResponse { return { ...data, tool: data["tool"] !== undefined ? serializeGoogleCloudDialogflowCxV3Tool(data["tool"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3RestoreToolVersionResponse(data: any): GoogleCloudDialogflowCxV3RestoreToolVersionResponse { return { ...data, tool: data["tool"] !== undefined ? deserializeGoogleCloudDialogflowCxV3Tool(data["tool"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3RolloutConfig { failureCondition?: string; rolloutCondition?: string; rolloutSteps?: GoogleCloudDialogflowCxV3RolloutConfigRolloutStep[]; } function serializeGoogleCloudDialogflowCxV3RolloutConfig(data: any): GoogleCloudDialogflowCxV3RolloutConfig { return { ...data, rolloutSteps: data["rolloutSteps"] !== undefined ? data["rolloutSteps"].map((item: any) => (serializeGoogleCloudDialogflowCxV3RolloutConfigRolloutStep(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3RolloutConfig(data: any): GoogleCloudDialogflowCxV3RolloutConfig { return { ...data, rolloutSteps: data["rolloutSteps"] !== undefined ? data["rolloutSteps"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3RolloutConfigRolloutStep(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3RolloutConfigRolloutStep { displayName?: string; minDuration?: number /* Duration */; trafficPercent?: number; } function serializeGoogleCloudDialogflowCxV3RolloutConfigRolloutStep(data: any): GoogleCloudDialogflowCxV3RolloutConfigRolloutStep { return { ...data, minDuration: data["minDuration"] !== undefined ? data["minDuration"] : undefined, }; } function deserializeGoogleCloudDialogflowCxV3RolloutConfigRolloutStep(data: any): GoogleCloudDialogflowCxV3RolloutConfigRolloutStep { return { ...data, minDuration: data["minDuration"] !== undefined ? data["minDuration"] : undefined, }; } export interface GoogleCloudDialogflowCxV3RolloutState { startTime?: Date; step?: string; stepIndex?: number; } function serializeGoogleCloudDialogflowCxV3RolloutState(data: any): GoogleCloudDialogflowCxV3RolloutState { return { ...data, startTime: data["startTime"] !== undefined ? data["startTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowCxV3RolloutState(data: any): GoogleCloudDialogflowCxV3RolloutState { return { ...data, startTime: data["startTime"] !== undefined ? new Date(data["startTime"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3RunContinuousTestMetadata { errors?: GoogleCloudDialogflowCxV3TestError[]; } function serializeGoogleCloudDialogflowCxV3RunContinuousTestMetadata(data: any): GoogleCloudDialogflowCxV3RunContinuousTestMetadata { return { ...data, errors: data["errors"] !== undefined ? data["errors"].map((item: any) => (serializeGoogleCloudDialogflowCxV3TestError(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3RunContinuousTestMetadata(data: any): GoogleCloudDialogflowCxV3RunContinuousTestMetadata { return { ...data, errors: data["errors"] !== undefined ? data["errors"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3TestError(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3RunContinuousTestRequest { } export interface GoogleCloudDialogflowCxV3RunContinuousTestResponse { continuousTestResult?: GoogleCloudDialogflowCxV3ContinuousTestResult; } function serializeGoogleCloudDialogflowCxV3RunContinuousTestResponse(data: any): GoogleCloudDialogflowCxV3RunContinuousTestResponse { return { ...data, continuousTestResult: data["continuousTestResult"] !== undefined ? serializeGoogleCloudDialogflowCxV3ContinuousTestResult(data["continuousTestResult"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3RunContinuousTestResponse(data: any): GoogleCloudDialogflowCxV3RunContinuousTestResponse { return { ...data, continuousTestResult: data["continuousTestResult"] !== undefined ? deserializeGoogleCloudDialogflowCxV3ContinuousTestResult(data["continuousTestResult"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3RunTestCaseMetadata { } export interface GoogleCloudDialogflowCxV3RunTestCaseRequest { environment?: string; } export interface GoogleCloudDialogflowCxV3RunTestCaseResponse { result?: GoogleCloudDialogflowCxV3TestCaseResult; } function serializeGoogleCloudDialogflowCxV3RunTestCaseResponse(data: any): GoogleCloudDialogflowCxV3RunTestCaseResponse { return { ...data, result: data["result"] !== undefined ? serializeGoogleCloudDialogflowCxV3TestCaseResult(data["result"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3RunTestCaseResponse(data: any): GoogleCloudDialogflowCxV3RunTestCaseResponse { return { ...data, result: data["result"] !== undefined ? deserializeGoogleCloudDialogflowCxV3TestCaseResult(data["result"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3SafetySettings { bannedPhrases?: GoogleCloudDialogflowCxV3SafetySettingsPhrase[]; defaultBannedPhraseMatchStrategy?: | "PHRASE_MATCH_STRATEGY_UNSPECIFIED" | "PARTIAL_MATCH" | "WORD_MATCH"; defaultRaiSettings?: GoogleCloudDialogflowCxV3SafetySettingsRaiSettings; promptSecuritySettings?: GoogleCloudDialogflowCxV3SafetySettingsPromptSecuritySettings; raiSettings?: GoogleCloudDialogflowCxV3SafetySettingsRaiSettings; } export interface GoogleCloudDialogflowCxV3SafetySettingsPhrase { languageCode?: string; text?: string; } export interface GoogleCloudDialogflowCxV3SafetySettingsPromptSecuritySettings { enablePromptSecurity?: boolean; } export interface GoogleCloudDialogflowCxV3SafetySettingsRaiSettings { categoryFilters?: GoogleCloudDialogflowCxV3SafetySettingsRaiSettingsCategoryFilter[]; } export interface GoogleCloudDialogflowCxV3SafetySettingsRaiSettingsCategoryFilter { category?: | "SAFETY_CATEGORY_UNSPECIFIED" | "DANGEROUS_CONTENT" | "HATE_SPEECH" | "HARASSMENT" | "SEXUALLY_EXPLICIT_CONTENT"; filterLevel?: | "SAFETY_FILTER_LEVEL_UNSPECIFIED" | "BLOCK_NONE" | "BLOCK_FEW" | "BLOCK_SOME" | "BLOCK_MOST"; } export interface GoogleCloudDialogflowCxV3SearchConfig { boostSpecs?: GoogleCloudDialogflowCxV3BoostSpecs[]; filterSpecs?: GoogleCloudDialogflowCxV3FilterSpecs[]; } export interface GoogleCloudDialogflowCxV3SecuritySettings { audioExportSettings?: GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings; deidentifyTemplate?: string; displayName?: string; insightsExportSettings?: GoogleCloudDialogflowCxV3SecuritySettingsInsightsExportSettings; inspectTemplate?: string; name?: string; purgeDataTypes?: | "PURGE_DATA_TYPE_UNSPECIFIED" | "DIALOGFLOW_HISTORY"[]; redactionScope?: | "REDACTION_SCOPE_UNSPECIFIED" | "REDACT_DISK_STORAGE"; redactionStrategy?: | "REDACTION_STRATEGY_UNSPECIFIED" | "REDACT_WITH_SERVICE"; retentionStrategy?: | "RETENTION_STRATEGY_UNSPECIFIED" | "REMOVE_AFTER_CONVERSATION"; retentionWindowDays?: number; } export interface GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings { audioExportPattern?: string; audioFormat?: | "AUDIO_FORMAT_UNSPECIFIED" | "MULAW" | "MP3" | "OGG"; enableAudioRedaction?: boolean; gcsBucket?: string; storeTtsAudio?: boolean; } export interface GoogleCloudDialogflowCxV3SecuritySettingsInsightsExportSettings { enableInsightsExport?: boolean; } export interface GoogleCloudDialogflowCxV3SentimentAnalysisResult { magnitude?: number; score?: number; } export interface GoogleCloudDialogflowCxV3SessionEntityType { entities?: GoogleCloudDialogflowCxV3EntityTypeEntity[]; entityOverrideMode?: | "ENTITY_OVERRIDE_MODE_UNSPECIFIED" | "ENTITY_OVERRIDE_MODE_OVERRIDE" | "ENTITY_OVERRIDE_MODE_SUPPLEMENT"; name?: string; } export interface GoogleCloudDialogflowCxV3SessionInfo { parameters?: { [key: string]: any }; session?: string; } export interface GoogleCloudDialogflowCxV3SpeechToTextSettings { enableSpeechAdaptation?: boolean; } export interface GoogleCloudDialogflowCxV3StartExperimentRequest { } export interface GoogleCloudDialogflowCxV3StopExperimentRequest { } export interface GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest { answerFeedback?: GoogleCloudDialogflowCxV3AnswerFeedback; responseId?: string; updateMask?: string /* FieldMask */; } function serializeGoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest(data: any): GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeGoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest(data: any): GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } export interface GoogleCloudDialogflowCxV3SynthesizeSpeechConfig { effectsProfileId?: string[]; pitch?: number; speakingRate?: number; voice?: GoogleCloudDialogflowCxV3VoiceSelectionParams; volumeGainDb?: number; } export interface GoogleCloudDialogflowCxV3TestCase { readonly creationTime?: Date; displayName?: string; lastTestResult?: GoogleCloudDialogflowCxV3TestCaseResult; name?: string; notes?: string; tags?: string[]; testCaseConversationTurns?: GoogleCloudDialogflowCxV3ConversationTurn[]; testConfig?: GoogleCloudDialogflowCxV3TestConfig; } function serializeGoogleCloudDialogflowCxV3TestCase(data: any): GoogleCloudDialogflowCxV3TestCase { return { ...data, lastTestResult: data["lastTestResult"] !== undefined ? serializeGoogleCloudDialogflowCxV3TestCaseResult(data["lastTestResult"]) : undefined, testCaseConversationTurns: data["testCaseConversationTurns"] !== undefined ? data["testCaseConversationTurns"].map((item: any) => (serializeGoogleCloudDialogflowCxV3ConversationTurn(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3TestCase(data: any): GoogleCloudDialogflowCxV3TestCase { return { ...data, creationTime: data["creationTime"] !== undefined ? new Date(data["creationTime"]) : undefined, lastTestResult: data["lastTestResult"] !== undefined ? deserializeGoogleCloudDialogflowCxV3TestCaseResult(data["lastTestResult"]) : undefined, testCaseConversationTurns: data["testCaseConversationTurns"] !== undefined ? data["testCaseConversationTurns"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3ConversationTurn(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3TestCaseError { status?: GoogleRpcStatus; testCase?: GoogleCloudDialogflowCxV3TestCase; } function serializeGoogleCloudDialogflowCxV3TestCaseError(data: any): GoogleCloudDialogflowCxV3TestCaseError { return { ...data, testCase: data["testCase"] !== undefined ? serializeGoogleCloudDialogflowCxV3TestCase(data["testCase"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3TestCaseError(data: any): GoogleCloudDialogflowCxV3TestCaseError { return { ...data, testCase: data["testCase"] !== undefined ? deserializeGoogleCloudDialogflowCxV3TestCase(data["testCase"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3TestCaseResult { conversationTurns?: GoogleCloudDialogflowCxV3ConversationTurn[]; environment?: string; name?: string; testResult?: | "TEST_RESULT_UNSPECIFIED" | "PASSED" | "FAILED"; testTime?: Date; } function serializeGoogleCloudDialogflowCxV3TestCaseResult(data: any): GoogleCloudDialogflowCxV3TestCaseResult { return { ...data, conversationTurns: data["conversationTurns"] !== undefined ? data["conversationTurns"].map((item: any) => (serializeGoogleCloudDialogflowCxV3ConversationTurn(item))) : undefined, testTime: data["testTime"] !== undefined ? data["testTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowCxV3TestCaseResult(data: any): GoogleCloudDialogflowCxV3TestCaseResult { return { ...data, conversationTurns: data["conversationTurns"] !== undefined ? data["conversationTurns"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3ConversationTurn(item))) : undefined, testTime: data["testTime"] !== undefined ? new Date(data["testTime"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3TestConfig { flow?: string; page?: string; trackingParameters?: string[]; } export interface GoogleCloudDialogflowCxV3TestError { status?: GoogleRpcStatus; testCase?: string; testTime?: Date; } function serializeGoogleCloudDialogflowCxV3TestError(data: any): GoogleCloudDialogflowCxV3TestError { return { ...data, testTime: data["testTime"] !== undefined ? data["testTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowCxV3TestError(data: any): GoogleCloudDialogflowCxV3TestError { return { ...data, testTime: data["testTime"] !== undefined ? new Date(data["testTime"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3TestRunDifference { description?: string; type?: | "DIFF_TYPE_UNSPECIFIED" | "INTENT" | "PAGE" | "PARAMETERS" | "UTTERANCE" | "FLOW"; } export interface GoogleCloudDialogflowCxV3TextInput { text?: string; } export interface GoogleCloudDialogflowCxV3TextToSpeechSettings { synthesizeSpeechConfigs?: { [key: string]: GoogleCloudDialogflowCxV3SynthesizeSpeechConfig }; } export interface GoogleCloudDialogflowCxV3Tool { dataStoreSpec?: GoogleCloudDialogflowCxV3ToolDataStoreTool; description?: string; displayName?: string; functionSpec?: GoogleCloudDialogflowCxV3ToolFunctionTool; name?: string; openApiSpec?: GoogleCloudDialogflowCxV3ToolOpenApiTool; readonly toolType?: | "TOOL_TYPE_UNSPECIFIED" | "CUSTOMIZED_TOOL" | "BUILTIN_TOOL"; } function serializeGoogleCloudDialogflowCxV3Tool(data: any): GoogleCloudDialogflowCxV3Tool { return { ...data, openApiSpec: data["openApiSpec"] !== undefined ? serializeGoogleCloudDialogflowCxV3ToolOpenApiTool(data["openApiSpec"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3Tool(data: any): GoogleCloudDialogflowCxV3Tool { return { ...data, openApiSpec: data["openApiSpec"] !== undefined ? deserializeGoogleCloudDialogflowCxV3ToolOpenApiTool(data["openApiSpec"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3ToolAuthentication { apiKeyConfig?: GoogleCloudDialogflowCxV3ToolAuthenticationApiKeyConfig; bearerTokenConfig?: GoogleCloudDialogflowCxV3ToolAuthenticationBearerTokenConfig; oauthConfig?: GoogleCloudDialogflowCxV3ToolAuthenticationOAuthConfig; serviceAccountAuthConfig?: GoogleCloudDialogflowCxV3ToolAuthenticationServiceAccountAuthConfig; serviceAgentAuthConfig?: GoogleCloudDialogflowCxV3ToolAuthenticationServiceAgentAuthConfig; } export interface GoogleCloudDialogflowCxV3ToolAuthenticationApiKeyConfig { apiKey?: string; keyName?: string; requestLocation?: | "REQUEST_LOCATION_UNSPECIFIED" | "HEADER" | "QUERY_STRING"; secretVersionForApiKey?: string; } export interface GoogleCloudDialogflowCxV3ToolAuthenticationBearerTokenConfig { secretVersionForToken?: string; token?: string; } export interface GoogleCloudDialogflowCxV3ToolAuthenticationOAuthConfig { clientId?: string; clientSecret?: string; oauthGrantType?: | "OAUTH_GRANT_TYPE_UNSPECIFIED" | "CLIENT_CREDENTIAL"; scopes?: string[]; secretVersionForClientSecret?: string; tokenEndpoint?: string; } export interface GoogleCloudDialogflowCxV3ToolAuthenticationServiceAccountAuthConfig { serviceAccount?: string; } export interface GoogleCloudDialogflowCxV3ToolAuthenticationServiceAgentAuthConfig { serviceAgentAuth?: | "SERVICE_AGENT_AUTH_UNSPECIFIED" | "ID_TOKEN" | "ACCESS_TOKEN"; } export interface GoogleCloudDialogflowCxV3ToolCall { action?: string; inputParameters?: { [key: string]: any }; tool?: string; } export interface GoogleCloudDialogflowCxV3ToolCallResult { action?: string; error?: GoogleCloudDialogflowCxV3ToolCallResultError; outputParameters?: { [key: string]: any }; tool?: string; } export interface GoogleCloudDialogflowCxV3ToolCallResultError { message?: string; } export interface GoogleCloudDialogflowCxV3ToolDataStoreTool { dataStoreConnections?: GoogleCloudDialogflowCxV3DataStoreConnection[]; fallbackPrompt?: GoogleCloudDialogflowCxV3ToolDataStoreToolFallbackPrompt; } export interface GoogleCloudDialogflowCxV3ToolDataStoreToolFallbackPrompt { } export interface GoogleCloudDialogflowCxV3ToolFunctionTool { inputSchema?: { [key: string]: any }; outputSchema?: { [key: string]: any }; } export interface GoogleCloudDialogflowCxV3ToolOpenApiTool { authentication?: GoogleCloudDialogflowCxV3ToolAuthentication; serviceDirectoryConfig?: GoogleCloudDialogflowCxV3ToolServiceDirectoryConfig; textSchema?: string; tlsConfig?: GoogleCloudDialogflowCxV3ToolTLSConfig; } function serializeGoogleCloudDialogflowCxV3ToolOpenApiTool(data: any): GoogleCloudDialogflowCxV3ToolOpenApiTool { return { ...data, tlsConfig: data["tlsConfig"] !== undefined ? serializeGoogleCloudDialogflowCxV3ToolTLSConfig(data["tlsConfig"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ToolOpenApiTool(data: any): GoogleCloudDialogflowCxV3ToolOpenApiTool { return { ...data, tlsConfig: data["tlsConfig"] !== undefined ? deserializeGoogleCloudDialogflowCxV3ToolTLSConfig(data["tlsConfig"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3ToolServiceDirectoryConfig { service?: string; } export interface GoogleCloudDialogflowCxV3ToolTLSConfig { caCerts?: GoogleCloudDialogflowCxV3ToolTLSConfigCACert[]; } function serializeGoogleCloudDialogflowCxV3ToolTLSConfig(data: any): GoogleCloudDialogflowCxV3ToolTLSConfig { return { ...data, caCerts: data["caCerts"] !== undefined ? data["caCerts"].map((item: any) => (serializeGoogleCloudDialogflowCxV3ToolTLSConfigCACert(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ToolTLSConfig(data: any): GoogleCloudDialogflowCxV3ToolTLSConfig { return { ...data, caCerts: data["caCerts"] !== undefined ? data["caCerts"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3ToolTLSConfigCACert(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3ToolTLSConfigCACert { cert?: Uint8Array; displayName?: string; } function serializeGoogleCloudDialogflowCxV3ToolTLSConfigCACert(data: any): GoogleCloudDialogflowCxV3ToolTLSConfigCACert { return { ...data, cert: data["cert"] !== undefined ? encodeBase64(data["cert"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ToolTLSConfigCACert(data: any): GoogleCloudDialogflowCxV3ToolTLSConfigCACert { return { ...data, cert: data["cert"] !== undefined ? decodeBase64(data["cert"] as string) : undefined, }; } export interface GoogleCloudDialogflowCxV3ToolUse { action?: string; readonly displayName?: string; inputActionParameters?: { [key: string]: any }; outputActionParameters?: { [key: string]: any }; tool?: string; } export interface GoogleCloudDialogflowCxV3ToolVersion { readonly createTime?: Date; displayName?: string; name?: string; tool?: GoogleCloudDialogflowCxV3Tool; readonly updateTime?: Date; } function serializeGoogleCloudDialogflowCxV3ToolVersion(data: any): GoogleCloudDialogflowCxV3ToolVersion { return { ...data, tool: data["tool"] !== undefined ? serializeGoogleCloudDialogflowCxV3Tool(data["tool"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3ToolVersion(data: any): GoogleCloudDialogflowCxV3ToolVersion { return { ...data, createTime: data["createTime"] !== undefined ? new Date(data["createTime"]) : undefined, tool: data["tool"] !== undefined ? deserializeGoogleCloudDialogflowCxV3Tool(data["tool"]) : undefined, updateTime: data["updateTime"] !== undefined ? new Date(data["updateTime"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3TrainFlowRequest { } export interface GoogleCloudDialogflowCxV3TransitionCoverage { coverageScore?: number; transitions?: GoogleCloudDialogflowCxV3TransitionCoverageTransition[]; } function serializeGoogleCloudDialogflowCxV3TransitionCoverage(data: any): GoogleCloudDialogflowCxV3TransitionCoverage { return { ...data, transitions: data["transitions"] !== undefined ? data["transitions"].map((item: any) => (serializeGoogleCloudDialogflowCxV3TransitionCoverageTransition(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3TransitionCoverage(data: any): GoogleCloudDialogflowCxV3TransitionCoverage { return { ...data, transitions: data["transitions"] !== undefined ? data["transitions"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3TransitionCoverageTransition(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3TransitionCoverageTransition { covered?: boolean; eventHandler?: GoogleCloudDialogflowCxV3EventHandler; index?: number; source?: GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode; target?: GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode; transitionRoute?: GoogleCloudDialogflowCxV3TransitionRoute; } function serializeGoogleCloudDialogflowCxV3TransitionCoverageTransition(data: any): GoogleCloudDialogflowCxV3TransitionCoverageTransition { return { ...data, eventHandler: data["eventHandler"] !== undefined ? serializeGoogleCloudDialogflowCxV3EventHandler(data["eventHandler"]) : undefined, source: data["source"] !== undefined ? serializeGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode(data["source"]) : undefined, target: data["target"] !== undefined ? serializeGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode(data["target"]) : undefined, transitionRoute: data["transitionRoute"] !== undefined ? serializeGoogleCloudDialogflowCxV3TransitionRoute(data["transitionRoute"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3TransitionCoverageTransition(data: any): GoogleCloudDialogflowCxV3TransitionCoverageTransition { return { ...data, eventHandler: data["eventHandler"] !== undefined ? deserializeGoogleCloudDialogflowCxV3EventHandler(data["eventHandler"]) : undefined, source: data["source"] !== undefined ? deserializeGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode(data["source"]) : undefined, target: data["target"] !== undefined ? deserializeGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode(data["target"]) : undefined, transitionRoute: data["transitionRoute"] !== undefined ? deserializeGoogleCloudDialogflowCxV3TransitionRoute(data["transitionRoute"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode { flow?: GoogleCloudDialogflowCxV3Flow; page?: GoogleCloudDialogflowCxV3Page; } function serializeGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode(data: any): GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode { return { ...data, flow: data["flow"] !== undefined ? serializeGoogleCloudDialogflowCxV3Flow(data["flow"]) : undefined, page: data["page"] !== undefined ? serializeGoogleCloudDialogflowCxV3Page(data["page"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode(data: any): GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode { return { ...data, flow: data["flow"] !== undefined ? deserializeGoogleCloudDialogflowCxV3Flow(data["flow"]) : undefined, page: data["page"] !== undefined ? deserializeGoogleCloudDialogflowCxV3Page(data["page"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3TransitionRoute { condition?: string; description?: string; intent?: string; readonly name?: string; targetFlow?: string; targetPage?: string; triggerFulfillment?: GoogleCloudDialogflowCxV3Fulfillment; } function serializeGoogleCloudDialogflowCxV3TransitionRoute(data: any): GoogleCloudDialogflowCxV3TransitionRoute { return { ...data, triggerFulfillment: data["triggerFulfillment"] !== undefined ? serializeGoogleCloudDialogflowCxV3Fulfillment(data["triggerFulfillment"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3TransitionRoute(data: any): GoogleCloudDialogflowCxV3TransitionRoute { return { ...data, triggerFulfillment: data["triggerFulfillment"] !== undefined ? deserializeGoogleCloudDialogflowCxV3Fulfillment(data["triggerFulfillment"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3TransitionRouteGroup { displayName?: string; name?: string; transitionRoutes?: GoogleCloudDialogflowCxV3TransitionRoute[]; } function serializeGoogleCloudDialogflowCxV3TransitionRouteGroup(data: any): GoogleCloudDialogflowCxV3TransitionRouteGroup { return { ...data, transitionRoutes: data["transitionRoutes"] !== undefined ? data["transitionRoutes"].map((item: any) => (serializeGoogleCloudDialogflowCxV3TransitionRoute(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3TransitionRouteGroup(data: any): GoogleCloudDialogflowCxV3TransitionRouteGroup { return { ...data, transitionRoutes: data["transitionRoutes"] !== undefined ? data["transitionRoutes"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3TransitionRoute(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage { coverages?: GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage[]; coverageScore?: number; } function serializeGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage(data: any): GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage { return { ...data, coverages: data["coverages"] !== undefined ? data["coverages"].map((item: any) => (serializeGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage(data: any): GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage { return { ...data, coverages: data["coverages"] !== undefined ? data["coverages"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage { coverageScore?: number; routeGroup?: GoogleCloudDialogflowCxV3TransitionRouteGroup; transitions?: GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition[]; } function serializeGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage(data: any): GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage { return { ...data, routeGroup: data["routeGroup"] !== undefined ? serializeGoogleCloudDialogflowCxV3TransitionRouteGroup(data["routeGroup"]) : undefined, transitions: data["transitions"] !== undefined ? data["transitions"].map((item: any) => (serializeGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage(data: any): GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage { return { ...data, routeGroup: data["routeGroup"] !== undefined ? deserializeGoogleCloudDialogflowCxV3TransitionRouteGroup(data["routeGroup"]) : undefined, transitions: data["transitions"] !== undefined ? data["transitions"].map((item: any) => (deserializeGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition(item))) : undefined, }; } export interface GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition { covered?: boolean; transitionRoute?: GoogleCloudDialogflowCxV3TransitionRoute; } function serializeGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition(data: any): GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition { return { ...data, transitionRoute: data["transitionRoute"] !== undefined ? serializeGoogleCloudDialogflowCxV3TransitionRoute(data["transitionRoute"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition(data: any): GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition { return { ...data, transitionRoute: data["transitionRoute"] !== undefined ? deserializeGoogleCloudDialogflowCxV3TransitionRoute(data["transitionRoute"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3TurnSignals { agentEscalated?: boolean; dtmfUsed?: boolean; failureReasons?: | "FAILURE_REASON_UNSPECIFIED" | "FAILED_INTENT" | "FAILED_WEBHOOK"[]; noMatch?: boolean; noUserInput?: boolean; reachedEndPage?: boolean; sentimentMagnitude?: number; sentimentScore?: number; userEscalated?: boolean; webhookStatuses?: string[]; } export interface GoogleCloudDialogflowCxV3TypeSchema { inlineSchema?: GoogleCloudDialogflowCxV3InlineSchema; schemaReference?: GoogleCloudDialogflowCxV3TypeSchemaSchemaReference; } export interface GoogleCloudDialogflowCxV3TypeSchemaSchemaReference { schema?: string; tool?: string; } export interface GoogleCloudDialogflowCxV3UserUtterance { text?: string; } export interface GoogleCloudDialogflowCxV3ValidateAgentRequest { languageCode?: string; } export interface GoogleCloudDialogflowCxV3ValidateFlowRequest { languageCode?: string; } export interface GoogleCloudDialogflowCxV3ValidationMessage { detail?: string; resourceNames?: GoogleCloudDialogflowCxV3ResourceName[]; resources?: string[]; resourceType?: | "RESOURCE_TYPE_UNSPECIFIED" | "AGENT" | "INTENT" | "INTENT_TRAINING_PHRASE" | "INTENT_PARAMETER" | "INTENTS" | "INTENT_TRAINING_PHRASES" | "ENTITY_TYPE" | "ENTITY_TYPES" | "WEBHOOK" | "FLOW" | "PAGE" | "PAGES" | "TRANSITION_ROUTE_GROUP" | "AGENT_TRANSITION_ROUTE_GROUP"; severity?: | "SEVERITY_UNSPECIFIED" | "INFO" | "WARNING" | "ERROR"; } export interface GoogleCloudDialogflowCxV3VariantsHistory { updateTime?: Date; versionVariants?: GoogleCloudDialogflowCxV3VersionVariants; } function serializeGoogleCloudDialogflowCxV3VariantsHistory(data: any): GoogleCloudDialogflowCxV3VariantsHistory { return { ...data, updateTime: data["updateTime"] !== undefined ? data["updateTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowCxV3VariantsHistory(data: any): GoogleCloudDialogflowCxV3VariantsHistory { return { ...data, updateTime: data["updateTime"] !== undefined ? new Date(data["updateTime"]) : undefined, }; } export interface GoogleCloudDialogflowCxV3Version { readonly createTime?: Date; description?: string; displayName?: string; name?: string; readonly nluSettings?: GoogleCloudDialogflowCxV3NluSettings; readonly state?: | "STATE_UNSPECIFIED" | "RUNNING" | "SUCCEEDED" | "FAILED"; } export interface GoogleCloudDialogflowCxV3VersionVariants { variants?: GoogleCloudDialogflowCxV3VersionVariantsVariant[]; } export interface GoogleCloudDialogflowCxV3VersionVariantsVariant { isControlGroup?: boolean; trafficAllocation?: number; version?: string; } export interface GoogleCloudDialogflowCxV3VoiceSelectionParams { name?: string; ssmlGender?: | "SSML_VOICE_GENDER_UNSPECIFIED" | "SSML_VOICE_GENDER_MALE" | "SSML_VOICE_GENDER_FEMALE" | "SSML_VOICE_GENDER_NEUTRAL"; } export interface GoogleCloudDialogflowCxV3Webhook { disabled?: boolean; displayName?: string; genericWebService?: GoogleCloudDialogflowCxV3WebhookGenericWebService; name?: string; serviceDirectory?: GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig; timeout?: number /* Duration */; } function serializeGoogleCloudDialogflowCxV3Webhook(data: any): GoogleCloudDialogflowCxV3Webhook { return { ...data, genericWebService: data["genericWebService"] !== undefined ? serializeGoogleCloudDialogflowCxV3WebhookGenericWebService(data["genericWebService"]) : undefined, serviceDirectory: data["serviceDirectory"] !== undefined ? serializeGoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig(data["serviceDirectory"]) : undefined, timeout: data["timeout"] !== undefined ? data["timeout"] : undefined, }; } function deserializeGoogleCloudDialogflowCxV3Webhook(data: any): GoogleCloudDialogflowCxV3Webhook { return { ...data, genericWebService: data["genericWebService"] !== undefined ? deserializeGoogleCloudDialogflowCxV3WebhookGenericWebService(data["genericWebService"]) : undefined, serviceDirectory: data["serviceDirectory"] !== undefined ? deserializeGoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig(data["serviceDirectory"]) : undefined, timeout: data["timeout"] !== undefined ? data["timeout"] : undefined, }; } export interface GoogleCloudDialogflowCxV3WebhookGenericWebService { allowedCaCerts?: Uint8Array[]; httpMethod?: | "HTTP_METHOD_UNSPECIFIED" | "POST" | "GET" | "HEAD" | "PUT" | "DELETE" | "PATCH" | "OPTIONS"; oauthConfig?: GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig; parameterMapping?: { [key: string]: string }; password?: string; requestBody?: string; requestHeaders?: { [key: string]: string }; secretVersionForUsernamePassword?: string; secretVersionsForRequestHeaders?: { [key: string]: GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue }; serviceAccountAuthConfig?: GoogleCloudDialogflowCxV3WebhookGenericWebServiceServiceAccountAuthConfig; serviceAgentAuth?: | "SERVICE_AGENT_AUTH_UNSPECIFIED" | "NONE" | "ID_TOKEN" | "ACCESS_TOKEN"; uri?: string; username?: string; webhookType?: | "WEBHOOK_TYPE_UNSPECIFIED" | "STANDARD" | "FLEXIBLE"; } function serializeGoogleCloudDialogflowCxV3WebhookGenericWebService(data: any): GoogleCloudDialogflowCxV3WebhookGenericWebService { return { ...data, allowedCaCerts: data["allowedCaCerts"] !== undefined ? data["allowedCaCerts"].map((item: any) => (encodeBase64(item))) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3WebhookGenericWebService(data: any): GoogleCloudDialogflowCxV3WebhookGenericWebService { return { ...data, allowedCaCerts: data["allowedCaCerts"] !== undefined ? data["allowedCaCerts"].map((item: any) => (decodeBase64(item as string))) : undefined, }; } export interface GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig { clientId?: string; clientSecret?: string; scopes?: string[]; secretVersionForClientSecret?: string; tokenEndpoint?: string; } export interface GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue { secretVersion?: string; } export interface GoogleCloudDialogflowCxV3WebhookGenericWebServiceServiceAccountAuthConfig { serviceAccount?: string; } export interface GoogleCloudDialogflowCxV3WebhookRequest { detectIntentResponseId?: string; dtmfDigits?: string; fulfillmentInfo?: GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo; intentInfo?: GoogleCloudDialogflowCxV3WebhookRequestIntentInfo; languageCode?: string; languageInfo?: GoogleCloudDialogflowCxV3LanguageInfo; messages?: GoogleCloudDialogflowCxV3ResponseMessage[]; pageInfo?: GoogleCloudDialogflowCxV3PageInfo; payload?: { [key: string]: any }; sentimentAnalysisResult?: GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult; sessionInfo?: GoogleCloudDialogflowCxV3SessionInfo; text?: string; transcript?: string; triggerEvent?: string; triggerIntent?: string; } export interface GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo { tag?: string; } export interface GoogleCloudDialogflowCxV3WebhookRequestIntentInfo { confidence?: number; displayName?: string; lastMatchedIntent?: string; parameters?: { [key: string]: GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue }; } export interface GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue { originalValue?: string; resolvedValue?: any; } export interface GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult { magnitude?: number; score?: number; } export interface GoogleCloudDialogflowCxV3WebhookResponse { fulfillmentResponse?: GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse; pageInfo?: GoogleCloudDialogflowCxV3PageInfo; payload?: { [key: string]: any }; sessionInfo?: GoogleCloudDialogflowCxV3SessionInfo; targetFlow?: string; targetPage?: string; } export interface GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse { mergeBehavior?: | "MERGE_BEHAVIOR_UNSPECIFIED" | "APPEND" | "REPLACE"; messages?: GoogleCloudDialogflowCxV3ResponseMessage[]; } export interface GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig { genericWebService?: GoogleCloudDialogflowCxV3WebhookGenericWebService; service?: string; } function serializeGoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig(data: any): GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig { return { ...data, genericWebService: data["genericWebService"] !== undefined ? serializeGoogleCloudDialogflowCxV3WebhookGenericWebService(data["genericWebService"]) : undefined, }; } function deserializeGoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig(data: any): GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig { return { ...data, genericWebService: data["genericWebService"] !== undefined ? deserializeGoogleCloudDialogflowCxV3WebhookGenericWebService(data["genericWebService"]) : undefined, }; } export interface GoogleCloudDialogflowV2AgentCoachingInstruction { agentAction?: string; condition?: string; displayDetails?: string; displayName?: string; readonly duplicateCheckResult?: GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult; systemAction?: string; triggeringEvent?: | "TRIGGER_EVENT_UNSPECIFIED" | "END_OF_UTTERANCE" | "MANUAL_CALL" | "CUSTOMER_MESSAGE" | "AGENT_MESSAGE" | "TOOL_CALL_COMPLETION"; } export interface GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult { readonly duplicateSuggestions?: GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion[]; } export interface GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion { readonly answerRecord?: string; readonly similarityScore?: number; readonly suggestionIndex?: number; } export interface GoogleCloudDialogflowV2AgentCoachingSuggestion { agentActionSuggestions?: GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion[]; applicableInstructions?: GoogleCloudDialogflowV2AgentCoachingInstruction[]; sampleResponses?: GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse[]; } export interface GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion { agentAction?: string; readonly duplicateCheckResult?: GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult; readonly sources?: GoogleCloudDialogflowV2AgentCoachingSuggestionSources; } export interface GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult { readonly duplicateSuggestions?: GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion[]; } export interface GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion { readonly answerRecord?: string; readonly similarityScore?: number; readonly sources?: GoogleCloudDialogflowV2AgentCoachingSuggestionSources; readonly suggestionIndex?: number; } export interface GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse { readonly duplicateCheckResult?: GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult; responseText?: string; readonly sources?: GoogleCloudDialogflowV2AgentCoachingSuggestionSources; } export interface GoogleCloudDialogflowV2AgentCoachingSuggestionSources { readonly instructionIndexes?: number[]; } export interface GoogleCloudDialogflowV2AnnotatedMessagePart { entityType?: string; formattedValue?: any; text?: string; } export interface GoogleCloudDialogflowV2ArticleAnswer { answerRecord?: string; confidence?: number; metadata?: { [key: string]: string }; snippets?: string[]; title?: string; uri?: string; } export interface GoogleCloudDialogflowV2ArticleSuggestionModelMetadata { trainingModelType?: | "MODEL_TYPE_UNSPECIFIED" | "SMART_REPLY_DUAL_ENCODER_MODEL" | "SMART_REPLY_BERT_MODEL"; } export interface GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse { entityTypes?: GoogleCloudDialogflowV2EntityType[]; } export interface GoogleCloudDialogflowV2BatchUpdateIntentsResponse { intents?: GoogleCloudDialogflowV2Intent[]; } export interface GoogleCloudDialogflowV2beta1AgentCoachingInstruction { agentAction?: string; condition?: string; displayDetails?: string; displayName?: string; readonly duplicateCheckResult?: GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult; systemAction?: string; triggeringEvent?: | "TRIGGER_EVENT_UNSPECIFIED" | "END_OF_UTTERANCE" | "MANUAL_CALL" | "CUSTOMER_MESSAGE" | "AGENT_MESSAGE" | "TOOL_CALL_COMPLETION"; } export interface GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult { readonly duplicateSuggestions?: GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion[]; } export interface GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion { readonly answerRecord?: string; readonly similarityScore?: number; readonly suggestionIndex?: number; } export interface GoogleCloudDialogflowV2beta1AgentCoachingSuggestion { agentActionSuggestions?: GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion[]; applicableInstructions?: GoogleCloudDialogflowV2beta1AgentCoachingInstruction[]; sampleResponses?: GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse[]; } export interface GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion { agentAction?: string; readonly duplicateCheckResult?: GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult; readonly sources?: GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources; } export interface GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult { readonly duplicateSuggestions?: GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion[]; } export interface GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion { readonly answerRecord?: string; readonly similarityScore?: number; readonly sources?: GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources; readonly suggestionIndex?: number; } export interface GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse { readonly duplicateCheckResult?: GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult; responseText?: string; readonly sources?: GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources; } export interface GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources { readonly instructionIndexes?: number[]; } export interface GoogleCloudDialogflowV2beta1AnnotatedMessagePart { entityType?: string; formattedValue?: any; text?: string; } export interface GoogleCloudDialogflowV2beta1ArticleAnswer { answerRecord?: string; metadata?: { [key: string]: string }; snippets?: string[]; title?: string; uri?: string; } export interface GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse { entityTypes?: GoogleCloudDialogflowV2beta1EntityType[]; } export interface GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse { intents?: GoogleCloudDialogflowV2beta1Intent[]; } export interface GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata { conversationProfile?: string; createTime?: Date; participantRole?: | "ROLE_UNSPECIFIED" | "HUMAN_AGENT" | "AUTOMATED_AGENT" | "END_USER"; suggestionFeatureType?: | "TYPE_UNSPECIFIED" | "ARTICLE_SUGGESTION" | "FAQ" | "SMART_REPLY" | "DIALOGFLOW_ASSIST" | "CONVERSATION_SUMMARIZATION" | "KNOWLEDGE_SEARCH" | "KNOWLEDGE_ASSIST"; } function serializeGoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata(data: any): GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? data["createTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata(data: any): GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? new Date(data["createTime"]) : undefined, }; } export interface GoogleCloudDialogflowV2beta1Context { lifespanCount?: number; name?: string; parameters?: { [key: string]: any }; } export interface GoogleCloudDialogflowV2beta1ConversationEvent { conversation?: string; errorStatus?: GoogleRpcStatus; newMessagePayload?: GoogleCloudDialogflowV2beta1Message; newRecognitionResultPayload?: GoogleCloudDialogflowV2beta1StreamingRecognitionResult; type?: | "TYPE_UNSPECIFIED" | "CONVERSATION_STARTED" | "CONVERSATION_FINISHED" | "HUMAN_INTERVENTION_NEEDED" | "NEW_MESSAGE" | "NEW_RECOGNITION_RESULT" | "UNRECOVERABLE_ERROR"; } function serializeGoogleCloudDialogflowV2beta1ConversationEvent(data: any): GoogleCloudDialogflowV2beta1ConversationEvent { return { ...data, newMessagePayload: data["newMessagePayload"] !== undefined ? serializeGoogleCloudDialogflowV2beta1Message(data["newMessagePayload"]) : undefined, newRecognitionResultPayload: data["newRecognitionResultPayload"] !== undefined ? serializeGoogleCloudDialogflowV2beta1StreamingRecognitionResult(data["newRecognitionResultPayload"]) : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1ConversationEvent(data: any): GoogleCloudDialogflowV2beta1ConversationEvent { return { ...data, newMessagePayload: data["newMessagePayload"] !== undefined ? deserializeGoogleCloudDialogflowV2beta1Message(data["newMessagePayload"]) : undefined, newRecognitionResultPayload: data["newRecognitionResultPayload"] !== undefined ? deserializeGoogleCloudDialogflowV2beta1StreamingRecognitionResult(data["newRecognitionResultPayload"]) : undefined, }; } export interface GoogleCloudDialogflowV2beta1DialogflowAssistAnswer { answerRecord?: string; intentSuggestion?: GoogleCloudDialogflowV2beta1IntentSuggestion; queryResult?: GoogleCloudDialogflowV2beta1QueryResult; } export interface GoogleCloudDialogflowV2beta1EncryptionSpec { kmsKey?: string; name?: string; } export interface GoogleCloudDialogflowV2beta1EntityType { autoExpansionMode?: | "AUTO_EXPANSION_MODE_UNSPECIFIED" | "AUTO_EXPANSION_MODE_DEFAULT"; displayName?: string; enableFuzzyExtraction?: boolean; entities?: GoogleCloudDialogflowV2beta1EntityTypeEntity[]; kind?: | "KIND_UNSPECIFIED" | "KIND_MAP" | "KIND_LIST" | "KIND_REGEXP"; name?: string; } export interface GoogleCloudDialogflowV2beta1EntityTypeEntity { synonyms?: string[]; value?: string; } export interface GoogleCloudDialogflowV2beta1EventInput { languageCode?: string; name?: string; parameters?: { [key: string]: any }; } export interface GoogleCloudDialogflowV2beta1ExportAgentResponse { agentContent?: Uint8Array; agentUri?: string; } function serializeGoogleCloudDialogflowV2beta1ExportAgentResponse(data: any): GoogleCloudDialogflowV2beta1ExportAgentResponse { return { ...data, agentContent: data["agentContent"] !== undefined ? encodeBase64(data["agentContent"]) : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1ExportAgentResponse(data: any): GoogleCloudDialogflowV2beta1ExportAgentResponse { return { ...data, agentContent: data["agentContent"] !== undefined ? decodeBase64(data["agentContent"] as string) : undefined, }; } export interface GoogleCloudDialogflowV2beta1ExportOperationMetadata { exportedGcsDestination?: GoogleCloudDialogflowV2beta1GcsDestination; } export interface GoogleCloudDialogflowV2beta1FaqAnswer { answer?: string; answerRecord?: string; confidence?: number; metadata?: { [key: string]: string }; question?: string; source?: string; } export interface GoogleCloudDialogflowV2beta1FreeFormSuggestion { response?: string; } export interface GoogleCloudDialogflowV2beta1GcsDestination { uri?: string; } export interface GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse { generatorSuggestionAnswers?: GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer[]; latestMessage?: string; } function serializeGoogleCloudDialogflowV2beta1GenerateSuggestionsResponse(data: any): GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse { return { ...data, generatorSuggestionAnswers: data["generatorSuggestionAnswers"] !== undefined ? data["generatorSuggestionAnswers"].map((item: any) => (serializeGoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer(item))) : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1GenerateSuggestionsResponse(data: any): GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse { return { ...data, generatorSuggestionAnswers: data["generatorSuggestionAnswers"] !== undefined ? data["generatorSuggestionAnswers"].map((item: any) => (deserializeGoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer(item))) : undefined, }; } export interface GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer { answerRecord?: string; generatorSuggestion?: GoogleCloudDialogflowV2beta1GeneratorSuggestion; sourceGenerator?: string; } function serializeGoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer(data: any): GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer { return { ...data, generatorSuggestion: data["generatorSuggestion"] !== undefined ? serializeGoogleCloudDialogflowV2beta1GeneratorSuggestion(data["generatorSuggestion"]) : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer(data: any): GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer { return { ...data, generatorSuggestion: data["generatorSuggestion"] !== undefined ? deserializeGoogleCloudDialogflowV2beta1GeneratorSuggestion(data["generatorSuggestion"]) : undefined, }; } export interface GoogleCloudDialogflowV2beta1GeneratorSuggestion { agentCoachingSuggestion?: GoogleCloudDialogflowV2beta1AgentCoachingSuggestion; freeFormSuggestion?: GoogleCloudDialogflowV2beta1FreeFormSuggestion; summarySuggestion?: GoogleCloudDialogflowV2beta1SummarySuggestion; toolCallInfo?: GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo[]; } function serializeGoogleCloudDialogflowV2beta1GeneratorSuggestion(data: any): GoogleCloudDialogflowV2beta1GeneratorSuggestion { return { ...data, toolCallInfo: data["toolCallInfo"] !== undefined ? data["toolCallInfo"].map((item: any) => (serializeGoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo(item))) : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1GeneratorSuggestion(data: any): GoogleCloudDialogflowV2beta1GeneratorSuggestion { return { ...data, toolCallInfo: data["toolCallInfo"] !== undefined ? data["toolCallInfo"].map((item: any) => (deserializeGoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo(item))) : undefined, }; } export interface GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo { toolCall?: GoogleCloudDialogflowV2beta1ToolCall; toolCallResult?: GoogleCloudDialogflowV2beta1ToolCallResult; } function serializeGoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo(data: any): GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo { return { ...data, toolCallResult: data["toolCallResult"] !== undefined ? serializeGoogleCloudDialogflowV2beta1ToolCallResult(data["toolCallResult"]) : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo(data: any): GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo { return { ...data, toolCallResult: data["toolCallResult"] !== undefined ? deserializeGoogleCloudDialogflowV2beta1ToolCallResult(data["toolCallResult"]) : undefined, }; } export interface GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent { conversation?: string; participant?: string; suggestionResults?: GoogleCloudDialogflowV2beta1SuggestionResult[]; } function serializeGoogleCloudDialogflowV2beta1HumanAgentAssistantEvent(data: any): GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent { return { ...data, suggestionResults: data["suggestionResults"] !== undefined ? data["suggestionResults"].map((item: any) => (serializeGoogleCloudDialogflowV2beta1SuggestionResult(item))) : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1HumanAgentAssistantEvent(data: any): GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent { return { ...data, suggestionResults: data["suggestionResults"] !== undefined ? data["suggestionResults"].map((item: any) => (deserializeGoogleCloudDialogflowV2beta1SuggestionResult(item))) : undefined, }; } export interface GoogleCloudDialogflowV2beta1ImportDocumentsResponse { warnings?: GoogleRpcStatus[]; } export interface GoogleCloudDialogflowV2beta1IngestedContextReferenceDebugInfo { contextReferenceRetrieved?: boolean; ingestedParametersDebugInfo?: GoogleCloudDialogflowV2beta1IngestedContextReferenceDebugInfoIngestedParameterDebugInfo[]; projectNotAllowlisted?: boolean; } export interface GoogleCloudDialogflowV2beta1IngestedContextReferenceDebugInfoIngestedParameterDebugInfo { ingestionStatus?: | "INGESTION_STATUS_UNSPECIFIED" | "INGESTION_STATUS_SUCCEEDED" | "INGESTION_STATUS_CONTEXT_NOT_AVAILABLE" | "INGESTION_STATUS_PARSE_FAILED" | "INGESTION_STATUS_INVALID_ENTRY" | "INGESTION_STATUS_INVALID_FORMAT" | "INGESTION_STATUS_LANGUAGE_MISMATCH"; parameter?: string; } export interface GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata { readonly request?: GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest; } export interface GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest { encryptionSpec?: GoogleCloudDialogflowV2beta1EncryptionSpec; } export interface GoogleCloudDialogflowV2beta1Intent { action?: string; defaultResponsePlatforms?: | "PLATFORM_UNSPECIFIED" | "FACEBOOK" | "SLACK" | "TELEGRAM" | "KIK" | "SKYPE" | "LINE" | "VIBER" | "ACTIONS_ON_GOOGLE" | "TELEPHONY" | "GOOGLE_HANGOUTS"[]; displayName?: string; endInteraction?: boolean; events?: string[]; readonly followupIntentInfo?: GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo[]; inputContextNames?: string[]; isFallback?: boolean; liveAgentHandoff?: boolean; messages?: GoogleCloudDialogflowV2beta1IntentMessage[]; mlDisabled?: boolean; mlEnabled?: boolean; name?: string; outputContexts?: GoogleCloudDialogflowV2beta1Context[]; parameters?: GoogleCloudDialogflowV2beta1IntentParameter[]; parentFollowupIntentName?: string; priority?: number; resetContexts?: boolean; readonly rootFollowupIntentName?: string; trainingPhrases?: GoogleCloudDialogflowV2beta1IntentTrainingPhrase[]; webhookState?: | "WEBHOOK_STATE_UNSPECIFIED" | "WEBHOOK_STATE_ENABLED" | "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING"; } export interface GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo { followupIntentName?: string; parentFollowupIntentName?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessage { basicCard?: GoogleCloudDialogflowV2beta1IntentMessageBasicCard; browseCarouselCard?: GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard; card?: GoogleCloudDialogflowV2beta1IntentMessageCard; carouselSelect?: GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect; image?: GoogleCloudDialogflowV2beta1IntentMessageImage; linkOutSuggestion?: GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion; listSelect?: GoogleCloudDialogflowV2beta1IntentMessageListSelect; mediaContent?: GoogleCloudDialogflowV2beta1IntentMessageMediaContent; payload?: { [key: string]: any }; platform?: | "PLATFORM_UNSPECIFIED" | "FACEBOOK" | "SLACK" | "TELEGRAM" | "KIK" | "SKYPE" | "LINE" | "VIBER" | "ACTIONS_ON_GOOGLE" | "TELEPHONY" | "GOOGLE_HANGOUTS"; quickReplies?: GoogleCloudDialogflowV2beta1IntentMessageQuickReplies; rbmCarouselRichCard?: GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard; rbmStandaloneRichCard?: GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard; rbmText?: GoogleCloudDialogflowV2beta1IntentMessageRbmText; simpleResponses?: GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses; suggestions?: GoogleCloudDialogflowV2beta1IntentMessageSuggestions; tableCard?: GoogleCloudDialogflowV2beta1IntentMessageTableCard; telephonyPlayAudio?: GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio; telephonySynthesizeSpeech?: GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech; telephonyTransferCall?: GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall; text?: GoogleCloudDialogflowV2beta1IntentMessageText; } export interface GoogleCloudDialogflowV2beta1IntentMessageBasicCard { buttons?: GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton[]; formattedText?: string; image?: GoogleCloudDialogflowV2beta1IntentMessageImage; subtitle?: string; title?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton { openUriAction?: GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction; title?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction { uri?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard { imageDisplayOptions?: | "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" | "GRAY" | "WHITE" | "CROPPED" | "BLURRED_BACKGROUND"; items?: GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem[]; } export interface GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem { description?: string; footer?: string; image?: GoogleCloudDialogflowV2beta1IntentMessageImage; openUriAction?: GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction; title?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction { url?: string; urlTypeHint?: | "URL_TYPE_HINT_UNSPECIFIED" | "AMP_ACTION" | "AMP_CONTENT"; } export interface GoogleCloudDialogflowV2beta1IntentMessageCard { buttons?: GoogleCloudDialogflowV2beta1IntentMessageCardButton[]; imageUri?: string; subtitle?: string; title?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageCardButton { postback?: string; text?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect { items?: GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem[]; } export interface GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem { description?: string; image?: GoogleCloudDialogflowV2beta1IntentMessageImage; info?: GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo; title?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageColumnProperties { header?: string; horizontalAlignment?: | "HORIZONTAL_ALIGNMENT_UNSPECIFIED" | "LEADING" | "CENTER" | "TRAILING"; } export interface GoogleCloudDialogflowV2beta1IntentMessageImage { accessibilityText?: string; imageUri?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion { destinationName?: string; uri?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageListSelect { items?: GoogleCloudDialogflowV2beta1IntentMessageListSelectItem[]; subtitle?: string; title?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageListSelectItem { description?: string; image?: GoogleCloudDialogflowV2beta1IntentMessageImage; info?: GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo; title?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageMediaContent { mediaObjects?: GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject[]; mediaType?: | "RESPONSE_MEDIA_TYPE_UNSPECIFIED" | "AUDIO"; } export interface GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject { contentUrl?: string; description?: string; icon?: GoogleCloudDialogflowV2beta1IntentMessageImage; largeImage?: GoogleCloudDialogflowV2beta1IntentMessageImage; name?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageQuickReplies { quickReplies?: string[]; title?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent { description?: string; media?: GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia; suggestions?: GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion[]; title?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia { fileUri?: string; height?: | "HEIGHT_UNSPECIFIED" | "SHORT" | "MEDIUM" | "TALL"; thumbnailUri?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard { cardContents?: GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent[]; cardWidth?: | "CARD_WIDTH_UNSPECIFIED" | "SMALL" | "MEDIUM"; } export interface GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard { cardContent?: GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent; cardOrientation?: | "CARD_ORIENTATION_UNSPECIFIED" | "HORIZONTAL" | "VERTICAL"; thumbnailImageAlignment?: | "THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED" | "LEFT" | "RIGHT"; } export interface GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction { dial?: GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial; openUrl?: GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri; postbackData?: string; shareLocation?: GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation; text?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial { phoneNumber?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri { uri?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation { } export interface GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply { postbackData?: string; text?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion { action?: GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction; reply?: GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply; } export interface GoogleCloudDialogflowV2beta1IntentMessageRbmText { rbmSuggestion?: GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion[]; text?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo { key?: string; synonyms?: string[]; } export interface GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse { displayText?: string; ssml?: string; textToSpeech?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses { simpleResponses?: GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse[]; } export interface GoogleCloudDialogflowV2beta1IntentMessageSuggestion { title?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageSuggestions { suggestions?: GoogleCloudDialogflowV2beta1IntentMessageSuggestion[]; } export interface GoogleCloudDialogflowV2beta1IntentMessageTableCard { buttons?: GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton[]; columnProperties?: GoogleCloudDialogflowV2beta1IntentMessageColumnProperties[]; image?: GoogleCloudDialogflowV2beta1IntentMessageImage; rows?: GoogleCloudDialogflowV2beta1IntentMessageTableCardRow[]; subtitle?: string; title?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageTableCardCell { text?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageTableCardRow { cells?: GoogleCloudDialogflowV2beta1IntentMessageTableCardCell[]; dividerAfter?: boolean; } export interface GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio { audioUri?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech { ssml?: string; text?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall { phoneNumber?: string; } export interface GoogleCloudDialogflowV2beta1IntentMessageText { text?: string[]; } export interface GoogleCloudDialogflowV2beta1IntentParameter { defaultValue?: string; displayName?: string; entityTypeDisplayName?: string; isList?: boolean; mandatory?: boolean; name?: string; prompts?: string[]; value?: string; } export interface GoogleCloudDialogflowV2beta1IntentSuggestion { description?: string; displayName?: string; intentV2?: string; } export interface GoogleCloudDialogflowV2beta1IntentTrainingPhrase { readonly name?: string; parts?: GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart[]; timesAddedCount?: number; type?: | "TYPE_UNSPECIFIED" | "EXAMPLE" | "TEMPLATE"; } export interface GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart { alias?: string; entityType?: string; text?: string; userDefined?: boolean; } export interface GoogleCloudDialogflowV2beta1KnowledgeAnswers { answers?: GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer[]; } export interface GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer { answer?: string; faqQuestion?: string; matchConfidence?: number; matchConfidenceLevel?: | "MATCH_CONFIDENCE_LEVEL_UNSPECIFIED" | "LOW" | "MEDIUM" | "HIGH"; source?: string; } export interface GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer { answerRecord?: string; knowledgeAssistDebugInfo?: GoogleCloudDialogflowV2beta1KnowledgeAssistDebugInfo; suggestedQuery?: GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery; suggestedQueryAnswer?: GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer; } function serializeGoogleCloudDialogflowV2beta1KnowledgeAssistAnswer(data: any): GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer { return { ...data, knowledgeAssistDebugInfo: data["knowledgeAssistDebugInfo"] !== undefined ? serializeGoogleCloudDialogflowV2beta1KnowledgeAssistDebugInfo(data["knowledgeAssistDebugInfo"]) : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1KnowledgeAssistAnswer(data: any): GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer { return { ...data, knowledgeAssistDebugInfo: data["knowledgeAssistDebugInfo"] !== undefined ? deserializeGoogleCloudDialogflowV2beta1KnowledgeAssistDebugInfo(data["knowledgeAssistDebugInfo"]) : undefined, }; } export interface GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer { answerText?: string; faqSource?: GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource; generativeSource?: GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource; } export interface GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource { question?: string; } export interface GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource { snippets?: GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet[]; } export interface GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet { metadata?: { [key: string]: any }; text?: string; title?: string; uri?: string; } export interface GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery { queryText?: string; } export interface GoogleCloudDialogflowV2beta1KnowledgeAssistDebugInfo { datastoreResponseReason?: | "DATASTORE_RESPONSE_REASON_UNSPECIFIED" | "NONE" | "SEARCH_OUT_OF_QUOTA" | "SEARCH_EMPTY_RESULTS" | "ANSWER_GENERATION_GEN_AI_DISABLED" | "ANSWER_GENERATION_OUT_OF_QUOTA" | "ANSWER_GENERATION_ERROR" | "ANSWER_GENERATION_NOT_ENOUGH_INFO" | "ANSWER_GENERATION_RAI_FAILED" | "ANSWER_GENERATION_NOT_GROUNDED"; ingestedContextReferenceDebugInfo?: GoogleCloudDialogflowV2beta1IngestedContextReferenceDebugInfo; knowledgeAssistBehavior?: GoogleCloudDialogflowV2beta1KnowledgeAssistDebugInfoKnowledgeAssistBehavior; queryCategorizationFailureReason?: | "QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED" | "QUERY_CATEGORIZATION_INVALID_CONFIG" | "QUERY_CATEGORIZATION_RESULT_NOT_FOUND" | "QUERY_CATEGORIZATION_FAILED"; queryGenerationFailureReason?: | "QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED" | "QUERY_GENERATION_OUT_OF_QUOTA" | "QUERY_GENERATION_FAILED" | "QUERY_GENERATION_NO_QUERY_GENERATED" | "QUERY_GENERATION_RAI_FAILED" | "NOT_IN_ALLOWLIST" | "QUERY_GENERATION_QUERY_REDACTED" | "QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED" | "QUERY_GENERATION_EMPTY_CONVERSATION" | "QUERY_GENERATION_EMPTY_LAST_MESSAGE" | "QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET"; serviceLatency?: GoogleCloudDialogflowV2beta1ServiceLatency; } function serializeGoogleCloudDialogflowV2beta1KnowledgeAssistDebugInfo(data: any): GoogleCloudDialogflowV2beta1KnowledgeAssistDebugInfo { return { ...data, serviceLatency: data["serviceLatency"] !== undefined ? serializeGoogleCloudDialogflowV2beta1ServiceLatency(data["serviceLatency"]) : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1KnowledgeAssistDebugInfo(data: any): GoogleCloudDialogflowV2beta1KnowledgeAssistDebugInfo { return { ...data, serviceLatency: data["serviceLatency"] !== undefined ? deserializeGoogleCloudDialogflowV2beta1ServiceLatency(data["serviceLatency"]) : undefined, }; } export interface GoogleCloudDialogflowV2beta1KnowledgeAssistDebugInfoKnowledgeAssistBehavior { answerGenerationRewriterOn?: boolean; appendedSearchContextCount?: number; conversationTranscriptHasMixedLanguages?: boolean; disableSyncDelivery?: boolean; endUserMetadataIncluded?: boolean; invalidItemsQuerySuggestionSkipped?: boolean; multipleQueriesGenerated?: boolean; previousQueriesIncluded?: boolean; primaryQueryRedactedAndReplaced?: boolean; queryContainedSearchContext?: boolean; queryGenerationAgentLanguageMismatch?: boolean; queryGenerationEndUserLanguageMismatch?: boolean; returnQueryOnly?: boolean; thirdPartyConnectorAllowed?: boolean; useCustomSafetyFilterLevel?: boolean; usePubsubDelivery?: boolean; useTranslatedMessage?: boolean; } export interface GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata { doneTime?: Date; exportOperationMetadata?: GoogleCloudDialogflowV2beta1ExportOperationMetadata; knowledgeBase?: string; readonly state?: | "STATE_UNSPECIFIED" | "PENDING" | "RUNNING" | "DONE"; } function serializeGoogleCloudDialogflowV2beta1KnowledgeOperationMetadata(data: any): GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata { return { ...data, doneTime: data["doneTime"] !== undefined ? data["doneTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1KnowledgeOperationMetadata(data: any): GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata { return { ...data, doneTime: data["doneTime"] !== undefined ? new Date(data["doneTime"]) : undefined, }; } export interface GoogleCloudDialogflowV2beta1Message { content?: string; readonly createTime?: Date; languageCode?: string; readonly messageAnnotation?: GoogleCloudDialogflowV2beta1MessageAnnotation; name?: string; readonly participant?: string; readonly participantRole?: | "ROLE_UNSPECIFIED" | "HUMAN_AGENT" | "AUTOMATED_AGENT" | "END_USER"; responseMessages?: GoogleCloudDialogflowV2beta1ResponseMessage[]; sendTime?: Date; readonly sentimentAnalysis?: GoogleCloudDialogflowV2beta1SentimentAnalysisResult; } function serializeGoogleCloudDialogflowV2beta1Message(data: any): GoogleCloudDialogflowV2beta1Message { return { ...data, responseMessages: data["responseMessages"] !== undefined ? data["responseMessages"].map((item: any) => (serializeGoogleCloudDialogflowV2beta1ResponseMessage(item))) : undefined, sendTime: data["sendTime"] !== undefined ? data["sendTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1Message(data: any): GoogleCloudDialogflowV2beta1Message { return { ...data, createTime: data["createTime"] !== undefined ? new Date(data["createTime"]) : undefined, responseMessages: data["responseMessages"] !== undefined ? data["responseMessages"].map((item: any) => (deserializeGoogleCloudDialogflowV2beta1ResponseMessage(item))) : undefined, sendTime: data["sendTime"] !== undefined ? new Date(data["sendTime"]) : undefined, }; } export interface GoogleCloudDialogflowV2beta1MessageAnnotation { containEntities?: boolean; parts?: GoogleCloudDialogflowV2beta1AnnotatedMessagePart[]; } export interface GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest { payload?: { [key: string]: any }; source?: string; version?: string; } export interface GoogleCloudDialogflowV2beta1QueryResult { action?: string; allRequiredParamsPresent?: boolean; cancelsSlotFilling?: boolean; diagnosticInfo?: { [key: string]: any }; fulfillmentMessages?: GoogleCloudDialogflowV2beta1IntentMessage[]; fulfillmentText?: string; intent?: GoogleCloudDialogflowV2beta1Intent; intentDetectionConfidence?: number; knowledgeAnswers?: GoogleCloudDialogflowV2beta1KnowledgeAnswers; languageCode?: string; outputContexts?: GoogleCloudDialogflowV2beta1Context[]; parameters?: { [key: string]: any }; queryText?: string; sentimentAnalysisResult?: GoogleCloudDialogflowV2beta1SentimentAnalysisResult; speechRecognitionConfidence?: number; webhookPayload?: { [key: string]: any }; webhookSource?: string; } export interface GoogleCloudDialogflowV2beta1ResponseMessage { endInteraction?: GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction; liveAgentHandoff?: GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff; mixedAudio?: GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio; payload?: { [key: string]: any }; telephonyTransferCall?: GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall; text?: GoogleCloudDialogflowV2beta1ResponseMessageText; } function serializeGoogleCloudDialogflowV2beta1ResponseMessage(data: any): GoogleCloudDialogflowV2beta1ResponseMessage { return { ...data, mixedAudio: data["mixedAudio"] !== undefined ? serializeGoogleCloudDialogflowV2beta1ResponseMessageMixedAudio(data["mixedAudio"]) : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1ResponseMessage(data: any): GoogleCloudDialogflowV2beta1ResponseMessage { return { ...data, mixedAudio: data["mixedAudio"] !== undefined ? deserializeGoogleCloudDialogflowV2beta1ResponseMessageMixedAudio(data["mixedAudio"]) : undefined, }; } export interface GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction { } export interface GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff { metadata?: { [key: string]: any }; } export interface GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio { segments?: GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment[]; } function serializeGoogleCloudDialogflowV2beta1ResponseMessageMixedAudio(data: any): GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio { return { ...data, segments: data["segments"] !== undefined ? data["segments"].map((item: any) => (serializeGoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment(item))) : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1ResponseMessageMixedAudio(data: any): GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio { return { ...data, segments: data["segments"] !== undefined ? data["segments"].map((item: any) => (deserializeGoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment(item))) : undefined, }; } export interface GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment { allowPlaybackInterruption?: boolean; audio?: Uint8Array; uri?: string; } function serializeGoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment(data: any): GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment { return { ...data, audio: data["audio"] !== undefined ? encodeBase64(data["audio"]) : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment(data: any): GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment { return { ...data, audio: data["audio"] !== undefined ? decodeBase64(data["audio"] as string) : undefined, }; } export interface GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall { phoneNumber?: string; sipUri?: string; } export interface GoogleCloudDialogflowV2beta1ResponseMessageText { text?: string[]; } export interface GoogleCloudDialogflowV2beta1Sentiment { magnitude?: number; score?: number; } export interface GoogleCloudDialogflowV2beta1SentimentAnalysisResult { queryTextSentiment?: GoogleCloudDialogflowV2beta1Sentiment; } export interface GoogleCloudDialogflowV2beta1ServiceLatency { internalServiceLatencies?: GoogleCloudDialogflowV2beta1ServiceLatencyInternalServiceLatency[]; } function serializeGoogleCloudDialogflowV2beta1ServiceLatency(data: any): GoogleCloudDialogflowV2beta1ServiceLatency { return { ...data, internalServiceLatencies: data["internalServiceLatencies"] !== undefined ? data["internalServiceLatencies"].map((item: any) => (serializeGoogleCloudDialogflowV2beta1ServiceLatencyInternalServiceLatency(item))) : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1ServiceLatency(data: any): GoogleCloudDialogflowV2beta1ServiceLatency { return { ...data, internalServiceLatencies: data["internalServiceLatencies"] !== undefined ? data["internalServiceLatencies"].map((item: any) => (deserializeGoogleCloudDialogflowV2beta1ServiceLatencyInternalServiceLatency(item))) : undefined, }; } export interface GoogleCloudDialogflowV2beta1ServiceLatencyInternalServiceLatency { completeTime?: Date; latencyMs?: number; startTime?: Date; step?: string; } function serializeGoogleCloudDialogflowV2beta1ServiceLatencyInternalServiceLatency(data: any): GoogleCloudDialogflowV2beta1ServiceLatencyInternalServiceLatency { return { ...data, completeTime: data["completeTime"] !== undefined ? data["completeTime"].toISOString() : undefined, startTime: data["startTime"] !== undefined ? data["startTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1ServiceLatencyInternalServiceLatency(data: any): GoogleCloudDialogflowV2beta1ServiceLatencyInternalServiceLatency { return { ...data, completeTime: data["completeTime"] !== undefined ? new Date(data["completeTime"]) : undefined, startTime: data["startTime"] !== undefined ? new Date(data["startTime"]) : undefined, }; } export interface GoogleCloudDialogflowV2beta1SessionEntityType { entities?: GoogleCloudDialogflowV2beta1EntityTypeEntity[]; entityOverrideMode?: | "ENTITY_OVERRIDE_MODE_UNSPECIFIED" | "ENTITY_OVERRIDE_MODE_OVERRIDE" | "ENTITY_OVERRIDE_MODE_SUPPLEMENT"; name?: string; } export interface GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata { conversationProfile?: string; createTime?: Date; participantRole?: | "ROLE_UNSPECIFIED" | "HUMAN_AGENT" | "AUTOMATED_AGENT" | "END_USER"; suggestionFeatureType?: | "TYPE_UNSPECIFIED" | "ARTICLE_SUGGESTION" | "FAQ" | "SMART_REPLY" | "DIALOGFLOW_ASSIST" | "CONVERSATION_SUMMARIZATION" | "KNOWLEDGE_SEARCH" | "KNOWLEDGE_ASSIST"; } function serializeGoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata(data: any): GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? data["createTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata(data: any): GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? new Date(data["createTime"]) : undefined, }; } export interface GoogleCloudDialogflowV2beta1SmartReplyAnswer { answerRecord?: string; confidence?: number; reply?: string; } export interface GoogleCloudDialogflowV2beta1SpeechWordInfo { confidence?: number; endOffset?: number /* Duration */; startOffset?: number /* Duration */; word?: string; } function serializeGoogleCloudDialogflowV2beta1SpeechWordInfo(data: any): GoogleCloudDialogflowV2beta1SpeechWordInfo { return { ...data, endOffset: data["endOffset"] !== undefined ? data["endOffset"] : undefined, startOffset: data["startOffset"] !== undefined ? data["startOffset"] : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1SpeechWordInfo(data: any): GoogleCloudDialogflowV2beta1SpeechWordInfo { return { ...data, endOffset: data["endOffset"] !== undefined ? data["endOffset"] : undefined, startOffset: data["startOffset"] !== undefined ? data["startOffset"] : undefined, }; } export interface GoogleCloudDialogflowV2beta1StreamingRecognitionResult { confidence?: number; dtmfDigits?: GoogleCloudDialogflowV2beta1TelephonyDtmfEvents; isFinal?: boolean; languageCode?: string; messageType?: | "MESSAGE_TYPE_UNSPECIFIED" | "TRANSCRIPT" | "END_OF_SINGLE_UTTERANCE" | "DTMF_DIGITS" | "PARTIAL_DTMF_DIGITS"; speechEndOffset?: number /* Duration */; speechWordInfo?: GoogleCloudDialogflowV2beta1SpeechWordInfo[]; stability?: number; transcript?: string; } function serializeGoogleCloudDialogflowV2beta1StreamingRecognitionResult(data: any): GoogleCloudDialogflowV2beta1StreamingRecognitionResult { return { ...data, speechEndOffset: data["speechEndOffset"] !== undefined ? data["speechEndOffset"] : undefined, speechWordInfo: data["speechWordInfo"] !== undefined ? data["speechWordInfo"].map((item: any) => (serializeGoogleCloudDialogflowV2beta1SpeechWordInfo(item))) : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1StreamingRecognitionResult(data: any): GoogleCloudDialogflowV2beta1StreamingRecognitionResult { return { ...data, speechEndOffset: data["speechEndOffset"] !== undefined ? data["speechEndOffset"] : undefined, speechWordInfo: data["speechWordInfo"] !== undefined ? data["speechWordInfo"].map((item: any) => (deserializeGoogleCloudDialogflowV2beta1SpeechWordInfo(item))) : undefined, }; } export interface GoogleCloudDialogflowV2beta1SuggestArticlesResponse { articleAnswers?: GoogleCloudDialogflowV2beta1ArticleAnswer[]; contextSize?: number; latestMessage?: string; } export interface GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse { contextSize?: number; dialogflowAssistAnswers?: GoogleCloudDialogflowV2beta1DialogflowAssistAnswer[]; latestMessage?: string; } export interface GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse { contextSize?: number; faqAnswers?: GoogleCloudDialogflowV2beta1FaqAnswer[]; latestMessage?: string; } export interface GoogleCloudDialogflowV2beta1SuggestionResult { error?: GoogleRpcStatus; generateSuggestionsResponse?: GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse; suggestArticlesResponse?: GoogleCloudDialogflowV2beta1SuggestArticlesResponse; suggestDialogflowAssistsResponse?: GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse; suggestEntityExtractionResponse?: GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse; suggestFaqAnswersResponse?: GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse; suggestKnowledgeAssistResponse?: GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse; suggestSmartRepliesResponse?: GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse; } function serializeGoogleCloudDialogflowV2beta1SuggestionResult(data: any): GoogleCloudDialogflowV2beta1SuggestionResult { return { ...data, generateSuggestionsResponse: data["generateSuggestionsResponse"] !== undefined ? serializeGoogleCloudDialogflowV2beta1GenerateSuggestionsResponse(data["generateSuggestionsResponse"]) : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1SuggestionResult(data: any): GoogleCloudDialogflowV2beta1SuggestionResult { return { ...data, generateSuggestionsResponse: data["generateSuggestionsResponse"] !== undefined ? deserializeGoogleCloudDialogflowV2beta1GenerateSuggestionsResponse(data["generateSuggestionsResponse"]) : undefined, }; } export interface GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse { contextSize?: number; readonly knowledgeAssistAnswer?: GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer; latestMessage?: string; } export interface GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse { contextSize?: number; latestMessage?: string; smartReplyAnswers?: GoogleCloudDialogflowV2beta1SmartReplyAnswer[]; } export interface GoogleCloudDialogflowV2beta1SummarySuggestion { summarySections?: GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection[]; } export interface GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection { section?: string; summary?: string; } export interface GoogleCloudDialogflowV2beta1TelephonyDtmfEvents { dtmfEvents?: | "TELEPHONY_DTMF_UNSPECIFIED" | "DTMF_ONE" | "DTMF_TWO" | "DTMF_THREE" | "DTMF_FOUR" | "DTMF_FIVE" | "DTMF_SIX" | "DTMF_SEVEN" | "DTMF_EIGHT" | "DTMF_NINE" | "DTMF_ZERO" | "DTMF_A" | "DTMF_B" | "DTMF_C" | "DTMF_D" | "DTMF_STAR" | "DTMF_POUND"[]; } export interface GoogleCloudDialogflowV2beta1ToolCall { action?: string; answerRecord?: string; readonly createTime?: Date; inputParameters?: { [key: string]: any }; readonly state?: | "STATE_UNSPECIFIED" | "TRIGGERED" | "NEEDS_CONFIRMATION"; tool?: string; toolDisplayDetails?: string; toolDisplayName?: string; } export interface GoogleCloudDialogflowV2beta1ToolCallResult { action?: string; answerRecord?: string; content?: string; readonly createTime?: Date; error?: GoogleCloudDialogflowV2beta1ToolCallResultError; rawContent?: Uint8Array; tool?: string; } function serializeGoogleCloudDialogflowV2beta1ToolCallResult(data: any): GoogleCloudDialogflowV2beta1ToolCallResult { return { ...data, rawContent: data["rawContent"] !== undefined ? encodeBase64(data["rawContent"]) : undefined, }; } function deserializeGoogleCloudDialogflowV2beta1ToolCallResult(data: any): GoogleCloudDialogflowV2beta1ToolCallResult { return { ...data, createTime: data["createTime"] !== undefined ? new Date(data["createTime"]) : undefined, rawContent: data["rawContent"] !== undefined ? decodeBase64(data["rawContent"] as string) : undefined, }; } export interface GoogleCloudDialogflowV2beta1ToolCallResultError { message?: string; } export interface GoogleCloudDialogflowV2beta1WebhookRequest { alternativeQueryResults?: GoogleCloudDialogflowV2beta1QueryResult[]; originalDetectIntentRequest?: GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest; queryResult?: GoogleCloudDialogflowV2beta1QueryResult; responseId?: string; session?: string; } export interface GoogleCloudDialogflowV2beta1WebhookResponse { endInteraction?: boolean; followupEventInput?: GoogleCloudDialogflowV2beta1EventInput; fulfillmentMessages?: GoogleCloudDialogflowV2beta1IntentMessage[]; fulfillmentText?: string; liveAgentHandoff?: boolean; outputContexts?: GoogleCloudDialogflowV2beta1Context[]; payload?: { [key: string]: any }; sessionEntityTypes?: GoogleCloudDialogflowV2beta1SessionEntityType[]; source?: string; } export interface GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata { conversationProfile?: string; createTime?: Date; participantRole?: | "ROLE_UNSPECIFIED" | "HUMAN_AGENT" | "AUTOMATED_AGENT" | "END_USER"; suggestionFeatureType?: | "TYPE_UNSPECIFIED" | "ARTICLE_SUGGESTION" | "FAQ" | "SMART_REPLY" | "CONVERSATION_SUMMARIZATION" | "KNOWLEDGE_SEARCH" | "KNOWLEDGE_ASSIST"; } function serializeGoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata(data: any): GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? data["createTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata(data: any): GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? new Date(data["createTime"]) : undefined, }; } export interface GoogleCloudDialogflowV2Context { lifespanCount?: number; name?: string; parameters?: { [key: string]: any }; } export interface GoogleCloudDialogflowV2ConversationEvent { conversation?: string; errorStatus?: GoogleRpcStatus; newMessagePayload?: GoogleCloudDialogflowV2Message; newRecognitionResultPayload?: GoogleCloudDialogflowV2StreamingRecognitionResult; type?: | "TYPE_UNSPECIFIED" | "CONVERSATION_STARTED" | "CONVERSATION_FINISHED" | "HUMAN_INTERVENTION_NEEDED" | "NEW_MESSAGE" | "NEW_RECOGNITION_RESULT" | "UNRECOVERABLE_ERROR"; } function serializeGoogleCloudDialogflowV2ConversationEvent(data: any): GoogleCloudDialogflowV2ConversationEvent { return { ...data, newMessagePayload: data["newMessagePayload"] !== undefined ? serializeGoogleCloudDialogflowV2Message(data["newMessagePayload"]) : undefined, newRecognitionResultPayload: data["newRecognitionResultPayload"] !== undefined ? serializeGoogleCloudDialogflowV2StreamingRecognitionResult(data["newRecognitionResultPayload"]) : undefined, }; } function deserializeGoogleCloudDialogflowV2ConversationEvent(data: any): GoogleCloudDialogflowV2ConversationEvent { return { ...data, newMessagePayload: data["newMessagePayload"] !== undefined ? deserializeGoogleCloudDialogflowV2Message(data["newMessagePayload"]) : undefined, newRecognitionResultPayload: data["newRecognitionResultPayload"] !== undefined ? deserializeGoogleCloudDialogflowV2StreamingRecognitionResult(data["newRecognitionResultPayload"]) : undefined, }; } export interface GoogleCloudDialogflowV2ConversationModel { articleSuggestionModelMetadata?: GoogleCloudDialogflowV2ArticleSuggestionModelMetadata; readonly createTime?: Date; datasets?: GoogleCloudDialogflowV2InputDataset[]; displayName?: string; languageCode?: string; name?: string; readonly satisfiesPzi?: boolean; readonly satisfiesPzs?: boolean; smartReplyModelMetadata?: GoogleCloudDialogflowV2SmartReplyModelMetadata; readonly state?: | "STATE_UNSPECIFIED" | "CREATING" | "UNDEPLOYED" | "DEPLOYING" | "DEPLOYED" | "UNDEPLOYING" | "DELETING" | "FAILED" | "PENDING"; } export interface GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata { conversationDataset?: string; } export interface GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata { conversationModel?: string; conversationModelEvaluation?: string; createTime?: Date; state?: | "STATE_UNSPECIFIED" | "INITIALIZING" | "RUNNING" | "CANCELLED" | "SUCCEEDED" | "FAILED"; } function serializeGoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata(data: any): GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? data["createTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata(data: any): GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? new Date(data["createTime"]) : undefined, }; } export interface GoogleCloudDialogflowV2CreateConversationModelOperationMetadata { conversationModel?: string; createTime?: Date; doneTime?: Date; state?: | "STATE_UNSPECIFIED" | "PENDING" | "SUCCEEDED" | "FAILED" | "CANCELLED" | "CANCELLING" | "TRAINING"; } function serializeGoogleCloudDialogflowV2CreateConversationModelOperationMetadata(data: any): GoogleCloudDialogflowV2CreateConversationModelOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? data["createTime"].toISOString() : undefined, doneTime: data["doneTime"] !== undefined ? data["doneTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowV2CreateConversationModelOperationMetadata(data: any): GoogleCloudDialogflowV2CreateConversationModelOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? new Date(data["createTime"]) : undefined, doneTime: data["doneTime"] !== undefined ? new Date(data["doneTime"]) : undefined, }; } export interface GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata { } export interface GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata { conversationModel?: string; createTime?: Date; doneTime?: Date; } function serializeGoogleCloudDialogflowV2DeleteConversationModelOperationMetadata(data: any): GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? data["createTime"].toISOString() : undefined, doneTime: data["doneTime"] !== undefined ? data["doneTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowV2DeleteConversationModelOperationMetadata(data: any): GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? new Date(data["createTime"]) : undefined, doneTime: data["doneTime"] !== undefined ? new Date(data["doneTime"]) : undefined, }; } export interface GoogleCloudDialogflowV2DeployConversationModelOperationMetadata { conversationModel?: string; createTime?: Date; doneTime?: Date; } function serializeGoogleCloudDialogflowV2DeployConversationModelOperationMetadata(data: any): GoogleCloudDialogflowV2DeployConversationModelOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? data["createTime"].toISOString() : undefined, doneTime: data["doneTime"] !== undefined ? data["doneTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowV2DeployConversationModelOperationMetadata(data: any): GoogleCloudDialogflowV2DeployConversationModelOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? new Date(data["createTime"]) : undefined, doneTime: data["doneTime"] !== undefined ? new Date(data["doneTime"]) : undefined, }; } export interface GoogleCloudDialogflowV2EncryptionSpec { kmsKey?: string; name?: string; } export interface GoogleCloudDialogflowV2EntityType { autoExpansionMode?: | "AUTO_EXPANSION_MODE_UNSPECIFIED" | "AUTO_EXPANSION_MODE_DEFAULT"; displayName?: string; enableFuzzyExtraction?: boolean; entities?: GoogleCloudDialogflowV2EntityTypeEntity[]; kind?: | "KIND_UNSPECIFIED" | "KIND_MAP" | "KIND_LIST" | "KIND_REGEXP"; name?: string; } export interface GoogleCloudDialogflowV2EntityTypeEntity { synonyms?: string[]; value?: string; } export interface GoogleCloudDialogflowV2EventInput { languageCode?: string; name?: string; parameters?: { [key: string]: any }; } export interface GoogleCloudDialogflowV2ExportAgentResponse { agentContent?: Uint8Array; agentUri?: string; } function serializeGoogleCloudDialogflowV2ExportAgentResponse(data: any): GoogleCloudDialogflowV2ExportAgentResponse { return { ...data, agentContent: data["agentContent"] !== undefined ? encodeBase64(data["agentContent"]) : undefined, }; } function deserializeGoogleCloudDialogflowV2ExportAgentResponse(data: any): GoogleCloudDialogflowV2ExportAgentResponse { return { ...data, agentContent: data["agentContent"] !== undefined ? decodeBase64(data["agentContent"] as string) : undefined, }; } export interface GoogleCloudDialogflowV2ExportOperationMetadata { exportedGcsDestination?: GoogleCloudDialogflowV2GcsDestination; } export interface GoogleCloudDialogflowV2FaqAnswer { answer?: string; answerRecord?: string; confidence?: number; metadata?: { [key: string]: string }; question?: string; source?: string; } export interface GoogleCloudDialogflowV2FreeFormSuggestion { response?: string; } export interface GoogleCloudDialogflowV2GcsDestination { uri?: string; } export interface GoogleCloudDialogflowV2GenerateSuggestionsResponse { generatorSuggestionAnswers?: GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer[]; latestMessage?: string; } function serializeGoogleCloudDialogflowV2GenerateSuggestionsResponse(data: any): GoogleCloudDialogflowV2GenerateSuggestionsResponse { return { ...data, generatorSuggestionAnswers: data["generatorSuggestionAnswers"] !== undefined ? data["generatorSuggestionAnswers"].map((item: any) => (serializeGoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer(item))) : undefined, }; } function deserializeGoogleCloudDialogflowV2GenerateSuggestionsResponse(data: any): GoogleCloudDialogflowV2GenerateSuggestionsResponse { return { ...data, generatorSuggestionAnswers: data["generatorSuggestionAnswers"] !== undefined ? data["generatorSuggestionAnswers"].map((item: any) => (deserializeGoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer(item))) : undefined, }; } export interface GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer { answerRecord?: string; generatorSuggestion?: GoogleCloudDialogflowV2GeneratorSuggestion; sourceGenerator?: string; } function serializeGoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer(data: any): GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer { return { ...data, generatorSuggestion: data["generatorSuggestion"] !== undefined ? serializeGoogleCloudDialogflowV2GeneratorSuggestion(data["generatorSuggestion"]) : undefined, }; } function deserializeGoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer(data: any): GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer { return { ...data, generatorSuggestion: data["generatorSuggestion"] !== undefined ? deserializeGoogleCloudDialogflowV2GeneratorSuggestion(data["generatorSuggestion"]) : undefined, }; } export interface GoogleCloudDialogflowV2GeneratorSuggestion { agentCoachingSuggestion?: GoogleCloudDialogflowV2AgentCoachingSuggestion; freeFormSuggestion?: GoogleCloudDialogflowV2FreeFormSuggestion; summarySuggestion?: GoogleCloudDialogflowV2SummarySuggestion; toolCallInfo?: GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo[]; } function serializeGoogleCloudDialogflowV2GeneratorSuggestion(data: any): GoogleCloudDialogflowV2GeneratorSuggestion { return { ...data, toolCallInfo: data["toolCallInfo"] !== undefined ? data["toolCallInfo"].map((item: any) => (serializeGoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo(item))) : undefined, }; } function deserializeGoogleCloudDialogflowV2GeneratorSuggestion(data: any): GoogleCloudDialogflowV2GeneratorSuggestion { return { ...data, toolCallInfo: data["toolCallInfo"] !== undefined ? data["toolCallInfo"].map((item: any) => (deserializeGoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo(item))) : undefined, }; } export interface GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo { toolCall?: GoogleCloudDialogflowV2ToolCall; toolCallResult?: GoogleCloudDialogflowV2ToolCallResult; } function serializeGoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo(data: any): GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo { return { ...data, toolCallResult: data["toolCallResult"] !== undefined ? serializeGoogleCloudDialogflowV2ToolCallResult(data["toolCallResult"]) : undefined, }; } function deserializeGoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo(data: any): GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo { return { ...data, toolCallResult: data["toolCallResult"] !== undefined ? deserializeGoogleCloudDialogflowV2ToolCallResult(data["toolCallResult"]) : undefined, }; } export interface GoogleCloudDialogflowV2HumanAgentAssistantEvent { conversation?: string; participant?: string; suggestionResults?: GoogleCloudDialogflowV2SuggestionResult[]; } function serializeGoogleCloudDialogflowV2HumanAgentAssistantEvent(data: any): GoogleCloudDialogflowV2HumanAgentAssistantEvent { return { ...data, suggestionResults: data["suggestionResults"] !== undefined ? data["suggestionResults"].map((item: any) => (serializeGoogleCloudDialogflowV2SuggestionResult(item))) : undefined, }; } function deserializeGoogleCloudDialogflowV2HumanAgentAssistantEvent(data: any): GoogleCloudDialogflowV2HumanAgentAssistantEvent { return { ...data, suggestionResults: data["suggestionResults"] !== undefined ? data["suggestionResults"].map((item: any) => (deserializeGoogleCloudDialogflowV2SuggestionResult(item))) : undefined, }; } export interface GoogleCloudDialogflowV2ImportConversationDataOperationMetadata { conversationDataset?: string; createTime?: Date; partialFailures?: GoogleRpcStatus[]; } function serializeGoogleCloudDialogflowV2ImportConversationDataOperationMetadata(data: any): GoogleCloudDialogflowV2ImportConversationDataOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? data["createTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowV2ImportConversationDataOperationMetadata(data: any): GoogleCloudDialogflowV2ImportConversationDataOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? new Date(data["createTime"]) : undefined, }; } export interface GoogleCloudDialogflowV2ImportConversationDataOperationResponse { conversationDataset?: string; importCount?: number; } export interface GoogleCloudDialogflowV2ImportDocumentsResponse { warnings?: GoogleRpcStatus[]; } export interface GoogleCloudDialogflowV2IngestedContextReferenceDebugInfo { contextReferenceRetrieved?: boolean; ingestedParametersDebugInfo?: GoogleCloudDialogflowV2IngestedContextReferenceDebugInfoIngestedParameterDebugInfo[]; projectNotAllowlisted?: boolean; } export interface GoogleCloudDialogflowV2IngestedContextReferenceDebugInfoIngestedParameterDebugInfo { ingestionStatus?: | "INGESTION_STATUS_UNSPECIFIED" | "INGESTION_STATUS_SUCCEEDED" | "INGESTION_STATUS_CONTEXT_NOT_AVAILABLE" | "INGESTION_STATUS_PARSE_FAILED" | "INGESTION_STATUS_INVALID_ENTRY" | "INGESTION_STATUS_INVALID_FORMAT" | "INGESTION_STATUS_LANGUAGE_MISMATCH"; parameter?: string; } export interface GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata { readonly request?: GoogleCloudDialogflowV2InitializeEncryptionSpecRequest; } export interface GoogleCloudDialogflowV2InitializeEncryptionSpecRequest { encryptionSpec?: GoogleCloudDialogflowV2EncryptionSpec; } export interface GoogleCloudDialogflowV2InputDataset { dataset?: string; } export interface GoogleCloudDialogflowV2Intent { action?: string; defaultResponsePlatforms?: | "PLATFORM_UNSPECIFIED" | "FACEBOOK" | "SLACK" | "TELEGRAM" | "KIK" | "SKYPE" | "LINE" | "VIBER" | "ACTIONS_ON_GOOGLE" | "GOOGLE_HANGOUTS"[]; displayName?: string; endInteraction?: boolean; events?: string[]; readonly followupIntentInfo?: GoogleCloudDialogflowV2IntentFollowupIntentInfo[]; inputContextNames?: string[]; isFallback?: boolean; liveAgentHandoff?: boolean; messages?: GoogleCloudDialogflowV2IntentMessage[]; mlDisabled?: boolean; name?: string; outputContexts?: GoogleCloudDialogflowV2Context[]; parameters?: GoogleCloudDialogflowV2IntentParameter[]; parentFollowupIntentName?: string; priority?: number; resetContexts?: boolean; readonly rootFollowupIntentName?: string; trainingPhrases?: GoogleCloudDialogflowV2IntentTrainingPhrase[]; webhookState?: | "WEBHOOK_STATE_UNSPECIFIED" | "WEBHOOK_STATE_ENABLED" | "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING"; } export interface GoogleCloudDialogflowV2IntentFollowupIntentInfo { followupIntentName?: string; parentFollowupIntentName?: string; } export interface GoogleCloudDialogflowV2IntentMessage { basicCard?: GoogleCloudDialogflowV2IntentMessageBasicCard; browseCarouselCard?: GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard; card?: GoogleCloudDialogflowV2IntentMessageCard; carouselSelect?: GoogleCloudDialogflowV2IntentMessageCarouselSelect; image?: GoogleCloudDialogflowV2IntentMessageImage; linkOutSuggestion?: GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion; listSelect?: GoogleCloudDialogflowV2IntentMessageListSelect; mediaContent?: GoogleCloudDialogflowV2IntentMessageMediaContent; payload?: { [key: string]: any }; platform?: | "PLATFORM_UNSPECIFIED" | "FACEBOOK" | "SLACK" | "TELEGRAM" | "KIK" | "SKYPE" | "LINE" | "VIBER" | "ACTIONS_ON_GOOGLE" | "GOOGLE_HANGOUTS"; quickReplies?: GoogleCloudDialogflowV2IntentMessageQuickReplies; simpleResponses?: GoogleCloudDialogflowV2IntentMessageSimpleResponses; suggestions?: GoogleCloudDialogflowV2IntentMessageSuggestions; tableCard?: GoogleCloudDialogflowV2IntentMessageTableCard; text?: GoogleCloudDialogflowV2IntentMessageText; } export interface GoogleCloudDialogflowV2IntentMessageBasicCard { buttons?: GoogleCloudDialogflowV2IntentMessageBasicCardButton[]; formattedText?: string; image?: GoogleCloudDialogflowV2IntentMessageImage; subtitle?: string; title?: string; } export interface GoogleCloudDialogflowV2IntentMessageBasicCardButton { openUriAction?: GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction; title?: string; } export interface GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction { uri?: string; } export interface GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard { imageDisplayOptions?: | "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED" | "GRAY" | "WHITE" | "CROPPED" | "BLURRED_BACKGROUND"; items?: GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem[]; } export interface GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem { description?: string; footer?: string; image?: GoogleCloudDialogflowV2IntentMessageImage; openUriAction?: GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction; title?: string; } export interface GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction { url?: string; urlTypeHint?: | "URL_TYPE_HINT_UNSPECIFIED" | "AMP_ACTION" | "AMP_CONTENT"; } export interface GoogleCloudDialogflowV2IntentMessageCard { buttons?: GoogleCloudDialogflowV2IntentMessageCardButton[]; imageUri?: string; subtitle?: string; title?: string; } export interface GoogleCloudDialogflowV2IntentMessageCardButton { postback?: string; text?: string; } export interface GoogleCloudDialogflowV2IntentMessageCarouselSelect { items?: GoogleCloudDialogflowV2IntentMessageCarouselSelectItem[]; } export interface GoogleCloudDialogflowV2IntentMessageCarouselSelectItem { description?: string; image?: GoogleCloudDialogflowV2IntentMessageImage; info?: GoogleCloudDialogflowV2IntentMessageSelectItemInfo; title?: string; } export interface GoogleCloudDialogflowV2IntentMessageColumnProperties { header?: string; horizontalAlignment?: | "HORIZONTAL_ALIGNMENT_UNSPECIFIED" | "LEADING" | "CENTER" | "TRAILING"; } export interface GoogleCloudDialogflowV2IntentMessageImage { accessibilityText?: string; imageUri?: string; } export interface GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion { destinationName?: string; uri?: string; } export interface GoogleCloudDialogflowV2IntentMessageListSelect { items?: GoogleCloudDialogflowV2IntentMessageListSelectItem[]; subtitle?: string; title?: string; } export interface GoogleCloudDialogflowV2IntentMessageListSelectItem { description?: string; image?: GoogleCloudDialogflowV2IntentMessageImage; info?: GoogleCloudDialogflowV2IntentMessageSelectItemInfo; title?: string; } export interface GoogleCloudDialogflowV2IntentMessageMediaContent { mediaObjects?: GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject[]; mediaType?: | "RESPONSE_MEDIA_TYPE_UNSPECIFIED" | "AUDIO"; } export interface GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject { contentUrl?: string; description?: string; icon?: GoogleCloudDialogflowV2IntentMessageImage; largeImage?: GoogleCloudDialogflowV2IntentMessageImage; name?: string; } export interface GoogleCloudDialogflowV2IntentMessageQuickReplies { quickReplies?: string[]; title?: string; } export interface GoogleCloudDialogflowV2IntentMessageSelectItemInfo { key?: string; synonyms?: string[]; } export interface GoogleCloudDialogflowV2IntentMessageSimpleResponse { displayText?: string; ssml?: string; textToSpeech?: string; } export interface GoogleCloudDialogflowV2IntentMessageSimpleResponses { simpleResponses?: GoogleCloudDialogflowV2IntentMessageSimpleResponse[]; } export interface GoogleCloudDialogflowV2IntentMessageSuggestion { title?: string; } export interface GoogleCloudDialogflowV2IntentMessageSuggestions { suggestions?: GoogleCloudDialogflowV2IntentMessageSuggestion[]; } export interface GoogleCloudDialogflowV2IntentMessageTableCard { buttons?: GoogleCloudDialogflowV2IntentMessageBasicCardButton[]; columnProperties?: GoogleCloudDialogflowV2IntentMessageColumnProperties[]; image?: GoogleCloudDialogflowV2IntentMessageImage; rows?: GoogleCloudDialogflowV2IntentMessageTableCardRow[]; subtitle?: string; title?: string; } export interface GoogleCloudDialogflowV2IntentMessageTableCardCell { text?: string; } export interface GoogleCloudDialogflowV2IntentMessageTableCardRow { cells?: GoogleCloudDialogflowV2IntentMessageTableCardCell[]; dividerAfter?: boolean; } export interface GoogleCloudDialogflowV2IntentMessageText { text?: string[]; } export interface GoogleCloudDialogflowV2IntentParameter { defaultValue?: string; displayName?: string; entityTypeDisplayName?: string; isList?: boolean; mandatory?: boolean; name?: string; prompts?: string[]; value?: string; } export interface GoogleCloudDialogflowV2IntentTrainingPhrase { readonly name?: string; parts?: GoogleCloudDialogflowV2IntentTrainingPhrasePart[]; timesAddedCount?: number; type?: | "TYPE_UNSPECIFIED" | "EXAMPLE" | "TEMPLATE"; } export interface GoogleCloudDialogflowV2IntentTrainingPhrasePart { alias?: string; entityType?: string; text?: string; userDefined?: boolean; } export interface GoogleCloudDialogflowV2KnowledgeAssistAnswer { answerRecord?: string; knowledgeAssistDebugInfo?: GoogleCloudDialogflowV2KnowledgeAssistDebugInfo; suggestedQuery?: GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery; suggestedQueryAnswer?: GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer; } function serializeGoogleCloudDialogflowV2KnowledgeAssistAnswer(data: any): GoogleCloudDialogflowV2KnowledgeAssistAnswer { return { ...data, knowledgeAssistDebugInfo: data["knowledgeAssistDebugInfo"] !== undefined ? serializeGoogleCloudDialogflowV2KnowledgeAssistDebugInfo(data["knowledgeAssistDebugInfo"]) : undefined, }; } function deserializeGoogleCloudDialogflowV2KnowledgeAssistAnswer(data: any): GoogleCloudDialogflowV2KnowledgeAssistAnswer { return { ...data, knowledgeAssistDebugInfo: data["knowledgeAssistDebugInfo"] !== undefined ? deserializeGoogleCloudDialogflowV2KnowledgeAssistDebugInfo(data["knowledgeAssistDebugInfo"]) : undefined, }; } export interface GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer { answerText?: string; faqSource?: GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource; generativeSource?: GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource; } export interface GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource { question?: string; } export interface GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource { snippets?: GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet[]; } export interface GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet { metadata?: { [key: string]: any }; text?: string; title?: string; uri?: string; } export interface GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery { queryText?: string; } export interface GoogleCloudDialogflowV2KnowledgeAssistDebugInfo { datastoreResponseReason?: | "DATASTORE_RESPONSE_REASON_UNSPECIFIED" | "NONE" | "SEARCH_OUT_OF_QUOTA" | "SEARCH_EMPTY_RESULTS" | "ANSWER_GENERATION_GEN_AI_DISABLED" | "ANSWER_GENERATION_OUT_OF_QUOTA" | "ANSWER_GENERATION_ERROR" | "ANSWER_GENERATION_NOT_ENOUGH_INFO" | "ANSWER_GENERATION_RAI_FAILED" | "ANSWER_GENERATION_NOT_GROUNDED"; ingestedContextReferenceDebugInfo?: GoogleCloudDialogflowV2IngestedContextReferenceDebugInfo; knowledgeAssistBehavior?: GoogleCloudDialogflowV2KnowledgeAssistDebugInfoKnowledgeAssistBehavior; queryCategorizationFailureReason?: | "QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED" | "QUERY_CATEGORIZATION_INVALID_CONFIG" | "QUERY_CATEGORIZATION_RESULT_NOT_FOUND" | "QUERY_CATEGORIZATION_FAILED"; queryGenerationFailureReason?: | "QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED" | "QUERY_GENERATION_OUT_OF_QUOTA" | "QUERY_GENERATION_FAILED" | "QUERY_GENERATION_NO_QUERY_GENERATED" | "QUERY_GENERATION_RAI_FAILED" | "NOT_IN_ALLOWLIST" | "QUERY_GENERATION_QUERY_REDACTED" | "QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED" | "QUERY_GENERATION_EMPTY_CONVERSATION" | "QUERY_GENERATION_EMPTY_LAST_MESSAGE" | "QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET"; serviceLatency?: GoogleCloudDialogflowV2ServiceLatency; } function serializeGoogleCloudDialogflowV2KnowledgeAssistDebugInfo(data: any): GoogleCloudDialogflowV2KnowledgeAssistDebugInfo { return { ...data, serviceLatency: data["serviceLatency"] !== undefined ? serializeGoogleCloudDialogflowV2ServiceLatency(data["serviceLatency"]) : undefined, }; } function deserializeGoogleCloudDialogflowV2KnowledgeAssistDebugInfo(data: any): GoogleCloudDialogflowV2KnowledgeAssistDebugInfo { return { ...data, serviceLatency: data["serviceLatency"] !== undefined ? deserializeGoogleCloudDialogflowV2ServiceLatency(data["serviceLatency"]) : undefined, }; } export interface GoogleCloudDialogflowV2KnowledgeAssistDebugInfoKnowledgeAssistBehavior { answerGenerationRewriterOn?: boolean; appendedSearchContextCount?: number; conversationTranscriptHasMixedLanguages?: boolean; disableSyncDelivery?: boolean; endUserMetadataIncluded?: boolean; invalidItemsQuerySuggestionSkipped?: boolean; multipleQueriesGenerated?: boolean; previousQueriesIncluded?: boolean; primaryQueryRedactedAndReplaced?: boolean; queryContainedSearchContext?: boolean; queryGenerationAgentLanguageMismatch?: boolean; queryGenerationEndUserLanguageMismatch?: boolean; returnQueryOnly?: boolean; thirdPartyConnectorAllowed?: boolean; useCustomSafetyFilterLevel?: boolean; usePubsubDelivery?: boolean; useTranslatedMessage?: boolean; } export interface GoogleCloudDialogflowV2KnowledgeOperationMetadata { doneTime?: Date; exportOperationMetadata?: GoogleCloudDialogflowV2ExportOperationMetadata; knowledgeBase?: string; readonly state?: | "STATE_UNSPECIFIED" | "PENDING" | "RUNNING" | "DONE"; } function serializeGoogleCloudDialogflowV2KnowledgeOperationMetadata(data: any): GoogleCloudDialogflowV2KnowledgeOperationMetadata { return { ...data, doneTime: data["doneTime"] !== undefined ? data["doneTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowV2KnowledgeOperationMetadata(data: any): GoogleCloudDialogflowV2KnowledgeOperationMetadata { return { ...data, doneTime: data["doneTime"] !== undefined ? new Date(data["doneTime"]) : undefined, }; } export interface GoogleCloudDialogflowV2Message { content?: string; readonly createTime?: Date; languageCode?: string; readonly messageAnnotation?: GoogleCloudDialogflowV2MessageAnnotation; name?: string; readonly participant?: string; readonly participantRole?: | "ROLE_UNSPECIFIED" | "HUMAN_AGENT" | "AUTOMATED_AGENT" | "END_USER"; sendTime?: Date; readonly sentimentAnalysis?: GoogleCloudDialogflowV2SentimentAnalysisResult; } function serializeGoogleCloudDialogflowV2Message(data: any): GoogleCloudDialogflowV2Message { return { ...data, sendTime: data["sendTime"] !== undefined ? data["sendTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowV2Message(data: any): GoogleCloudDialogflowV2Message { return { ...data, createTime: data["createTime"] !== undefined ? new Date(data["createTime"]) : undefined, sendTime: data["sendTime"] !== undefined ? new Date(data["sendTime"]) : undefined, }; } export interface GoogleCloudDialogflowV2MessageAnnotation { containEntities?: boolean; parts?: GoogleCloudDialogflowV2AnnotatedMessagePart[]; } export interface GoogleCloudDialogflowV2OriginalDetectIntentRequest { payload?: { [key: string]: any }; source?: string; version?: string; } export interface GoogleCloudDialogflowV2QueryResult { action?: string; allRequiredParamsPresent?: boolean; cancelsSlotFilling?: boolean; diagnosticInfo?: { [key: string]: any }; fulfillmentMessages?: GoogleCloudDialogflowV2IntentMessage[]; fulfillmentText?: string; intent?: GoogleCloudDialogflowV2Intent; intentDetectionConfidence?: number; languageCode?: string; outputContexts?: GoogleCloudDialogflowV2Context[]; parameters?: { [key: string]: any }; queryText?: string; sentimentAnalysisResult?: GoogleCloudDialogflowV2SentimentAnalysisResult; speechRecognitionConfidence?: number; webhookPayload?: { [key: string]: any }; webhookSource?: string; } export interface GoogleCloudDialogflowV2Sentiment { magnitude?: number; score?: number; } export interface GoogleCloudDialogflowV2SentimentAnalysisResult { queryTextSentiment?: GoogleCloudDialogflowV2Sentiment; } export interface GoogleCloudDialogflowV2ServiceLatency { internalServiceLatencies?: GoogleCloudDialogflowV2ServiceLatencyInternalServiceLatency[]; } function serializeGoogleCloudDialogflowV2ServiceLatency(data: any): GoogleCloudDialogflowV2ServiceLatency { return { ...data, internalServiceLatencies: data["internalServiceLatencies"] !== undefined ? data["internalServiceLatencies"].map((item: any) => (serializeGoogleCloudDialogflowV2ServiceLatencyInternalServiceLatency(item))) : undefined, }; } function deserializeGoogleCloudDialogflowV2ServiceLatency(data: any): GoogleCloudDialogflowV2ServiceLatency { return { ...data, internalServiceLatencies: data["internalServiceLatencies"] !== undefined ? data["internalServiceLatencies"].map((item: any) => (deserializeGoogleCloudDialogflowV2ServiceLatencyInternalServiceLatency(item))) : undefined, }; } export interface GoogleCloudDialogflowV2ServiceLatencyInternalServiceLatency { completeTime?: Date; latencyMs?: number; startTime?: Date; step?: string; } function serializeGoogleCloudDialogflowV2ServiceLatencyInternalServiceLatency(data: any): GoogleCloudDialogflowV2ServiceLatencyInternalServiceLatency { return { ...data, completeTime: data["completeTime"] !== undefined ? data["completeTime"].toISOString() : undefined, startTime: data["startTime"] !== undefined ? data["startTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowV2ServiceLatencyInternalServiceLatency(data: any): GoogleCloudDialogflowV2ServiceLatencyInternalServiceLatency { return { ...data, completeTime: data["completeTime"] !== undefined ? new Date(data["completeTime"]) : undefined, startTime: data["startTime"] !== undefined ? new Date(data["startTime"]) : undefined, }; } export interface GoogleCloudDialogflowV2SessionEntityType { entities?: GoogleCloudDialogflowV2EntityTypeEntity[]; entityOverrideMode?: | "ENTITY_OVERRIDE_MODE_UNSPECIFIED" | "ENTITY_OVERRIDE_MODE_OVERRIDE" | "ENTITY_OVERRIDE_MODE_SUPPLEMENT"; name?: string; } export interface GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata { conversationProfile?: string; createTime?: Date; participantRole?: | "ROLE_UNSPECIFIED" | "HUMAN_AGENT" | "AUTOMATED_AGENT" | "END_USER"; suggestionFeatureType?: | "TYPE_UNSPECIFIED" | "ARTICLE_SUGGESTION" | "FAQ" | "SMART_REPLY" | "CONVERSATION_SUMMARIZATION" | "KNOWLEDGE_SEARCH" | "KNOWLEDGE_ASSIST"; } function serializeGoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata(data: any): GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? data["createTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata(data: any): GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? new Date(data["createTime"]) : undefined, }; } export interface GoogleCloudDialogflowV2SmartReplyAnswer { answerRecord?: string; confidence?: number; reply?: string; } export interface GoogleCloudDialogflowV2SmartReplyModelMetadata { trainingModelType?: | "MODEL_TYPE_UNSPECIFIED" | "SMART_REPLY_DUAL_ENCODER_MODEL" | "SMART_REPLY_BERT_MODEL"; } export interface GoogleCloudDialogflowV2SpeechWordInfo { confidence?: number; endOffset?: number /* Duration */; startOffset?: number /* Duration */; word?: string; } function serializeGoogleCloudDialogflowV2SpeechWordInfo(data: any): GoogleCloudDialogflowV2SpeechWordInfo { return { ...data, endOffset: data["endOffset"] !== undefined ? data["endOffset"] : undefined, startOffset: data["startOffset"] !== undefined ? data["startOffset"] : undefined, }; } function deserializeGoogleCloudDialogflowV2SpeechWordInfo(data: any): GoogleCloudDialogflowV2SpeechWordInfo { return { ...data, endOffset: data["endOffset"] !== undefined ? data["endOffset"] : undefined, startOffset: data["startOffset"] !== undefined ? data["startOffset"] : undefined, }; } export interface GoogleCloudDialogflowV2StreamingRecognitionResult { confidence?: number; isFinal?: boolean; languageCode?: string; messageType?: | "MESSAGE_TYPE_UNSPECIFIED" | "TRANSCRIPT" | "END_OF_SINGLE_UTTERANCE"; speechEndOffset?: number /* Duration */; speechWordInfo?: GoogleCloudDialogflowV2SpeechWordInfo[]; transcript?: string; } function serializeGoogleCloudDialogflowV2StreamingRecognitionResult(data: any): GoogleCloudDialogflowV2StreamingRecognitionResult { return { ...data, speechEndOffset: data["speechEndOffset"] !== undefined ? data["speechEndOffset"] : undefined, speechWordInfo: data["speechWordInfo"] !== undefined ? data["speechWordInfo"].map((item: any) => (serializeGoogleCloudDialogflowV2SpeechWordInfo(item))) : undefined, }; } function deserializeGoogleCloudDialogflowV2StreamingRecognitionResult(data: any): GoogleCloudDialogflowV2StreamingRecognitionResult { return { ...data, speechEndOffset: data["speechEndOffset"] !== undefined ? data["speechEndOffset"] : undefined, speechWordInfo: data["speechWordInfo"] !== undefined ? data["speechWordInfo"].map((item: any) => (deserializeGoogleCloudDialogflowV2SpeechWordInfo(item))) : undefined, }; } export interface GoogleCloudDialogflowV2SuggestArticlesResponse { articleAnswers?: GoogleCloudDialogflowV2ArticleAnswer[]; contextSize?: number; latestMessage?: string; } export interface GoogleCloudDialogflowV2SuggestFaqAnswersResponse { contextSize?: number; faqAnswers?: GoogleCloudDialogflowV2FaqAnswer[]; latestMessage?: string; } export interface GoogleCloudDialogflowV2SuggestionResult { error?: GoogleRpcStatus; generateSuggestionsResponse?: GoogleCloudDialogflowV2GenerateSuggestionsResponse; suggestArticlesResponse?: GoogleCloudDialogflowV2SuggestArticlesResponse; suggestFaqAnswersResponse?: GoogleCloudDialogflowV2SuggestFaqAnswersResponse; suggestKnowledgeAssistResponse?: GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse; suggestSmartRepliesResponse?: GoogleCloudDialogflowV2SuggestSmartRepliesResponse; } function serializeGoogleCloudDialogflowV2SuggestionResult(data: any): GoogleCloudDialogflowV2SuggestionResult { return { ...data, generateSuggestionsResponse: data["generateSuggestionsResponse"] !== undefined ? serializeGoogleCloudDialogflowV2GenerateSuggestionsResponse(data["generateSuggestionsResponse"]) : undefined, }; } function deserializeGoogleCloudDialogflowV2SuggestionResult(data: any): GoogleCloudDialogflowV2SuggestionResult { return { ...data, generateSuggestionsResponse: data["generateSuggestionsResponse"] !== undefined ? deserializeGoogleCloudDialogflowV2GenerateSuggestionsResponse(data["generateSuggestionsResponse"]) : undefined, }; } export interface GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse { contextSize?: number; readonly knowledgeAssistAnswer?: GoogleCloudDialogflowV2KnowledgeAssistAnswer; latestMessage?: string; } export interface GoogleCloudDialogflowV2SuggestSmartRepliesResponse { contextSize?: number; latestMessage?: string; readonly smartReplyAnswers?: GoogleCloudDialogflowV2SmartReplyAnswer[]; } export interface GoogleCloudDialogflowV2SummarySuggestion { summarySections?: GoogleCloudDialogflowV2SummarySuggestionSummarySection[]; } export interface GoogleCloudDialogflowV2SummarySuggestionSummarySection { section?: string; summary?: string; } export interface GoogleCloudDialogflowV2ToolCall { action?: string; answerRecord?: string; readonly createTime?: Date; inputParameters?: { [key: string]: any }; readonly state?: | "STATE_UNSPECIFIED" | "TRIGGERED" | "NEEDS_CONFIRMATION"; tool?: string; toolDisplayDetails?: string; toolDisplayName?: string; } export interface GoogleCloudDialogflowV2ToolCallResult { action?: string; answerRecord?: string; content?: string; readonly createTime?: Date; error?: GoogleCloudDialogflowV2ToolCallResultError; rawContent?: Uint8Array; tool?: string; } function serializeGoogleCloudDialogflowV2ToolCallResult(data: any): GoogleCloudDialogflowV2ToolCallResult { return { ...data, rawContent: data["rawContent"] !== undefined ? encodeBase64(data["rawContent"]) : undefined, }; } function deserializeGoogleCloudDialogflowV2ToolCallResult(data: any): GoogleCloudDialogflowV2ToolCallResult { return { ...data, createTime: data["createTime"] !== undefined ? new Date(data["createTime"]) : undefined, rawContent: data["rawContent"] !== undefined ? decodeBase64(data["rawContent"] as string) : undefined, }; } export interface GoogleCloudDialogflowV2ToolCallResultError { message?: string; } export interface GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata { conversationModel?: string; createTime?: Date; doneTime?: Date; } function serializeGoogleCloudDialogflowV2UndeployConversationModelOperationMetadata(data: any): GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? data["createTime"].toISOString() : undefined, doneTime: data["doneTime"] !== undefined ? data["doneTime"].toISOString() : undefined, }; } function deserializeGoogleCloudDialogflowV2UndeployConversationModelOperationMetadata(data: any): GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata { return { ...data, createTime: data["createTime"] !== undefined ? new Date(data["createTime"]) : undefined, doneTime: data["doneTime"] !== undefined ? new Date(data["doneTime"]) : undefined, }; } export interface GoogleCloudDialogflowV2WebhookRequest { originalDetectIntentRequest?: GoogleCloudDialogflowV2OriginalDetectIntentRequest; queryResult?: GoogleCloudDialogflowV2QueryResult; responseId?: string; session?: string; } export interface GoogleCloudDialogflowV2WebhookResponse { followupEventInput?: GoogleCloudDialogflowV2EventInput; fulfillmentMessages?: GoogleCloudDialogflowV2IntentMessage[]; fulfillmentText?: string; outputContexts?: GoogleCloudDialogflowV2Context[]; payload?: { [key: string]: any }; sessionEntityTypes?: GoogleCloudDialogflowV2SessionEntityType[]; source?: string; } export interface GoogleCloudDialogflowV3alpha1ConversationSignals { turnSignals?: GoogleCloudDialogflowV3alpha1TurnSignals; } export interface GoogleCloudDialogflowV3alpha1TurnSignals { agentEscalated?: boolean; dtmfUsed?: boolean; failureReasons?: | "FAILURE_REASON_UNSPECIFIED" | "FAILED_INTENT" | "FAILED_WEBHOOK"[]; noMatch?: boolean; noUserInput?: boolean; reachedEndPage?: boolean; sentimentMagnitude?: number; sentimentScore?: number; triggeredAbandonmentEvent?: boolean; userEscalated?: boolean; webhookStatuses?: string[]; } export interface GoogleCloudLocationListLocationsResponse { locations?: GoogleCloudLocationLocation[]; nextPageToken?: string; } export interface GoogleCloudLocationLocation { displayName?: string; labels?: { [key: string]: string }; locationId?: string; metadata?: { [key: string]: any }; name?: string; } export interface GoogleLongrunningListOperationsResponse { nextPageToken?: string; operations?: GoogleLongrunningOperation[]; unreachable?: string[]; } export interface GoogleLongrunningOperation { done?: boolean; error?: GoogleRpcStatus; metadata?: { [key: string]: any }; name?: string; response?: { [key: string]: any }; } export interface GoogleProtobufEmpty { } export interface GoogleRpcStatus { code?: number; details?: { [key: string]: any }[]; message?: string; } export interface GoogleTypeLatLng { latitude?: number; longitude?: number; } /** * Additional options for Dialogflow#projectsLocationsAgentsChangelogsList. */ export interface ProjectsLocationsAgentsChangelogsListOptions { filter?: string; pageSize?: number; pageToken?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsEntityTypesCreate. */ export interface ProjectsLocationsAgentsEntityTypesCreateOptions { languageCode?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsEntityTypesDelete. */ export interface ProjectsLocationsAgentsEntityTypesDeleteOptions { force?: boolean; } /** * Additional options for Dialogflow#projectsLocationsAgentsEntityTypesGet. */ export interface ProjectsLocationsAgentsEntityTypesGetOptions { languageCode?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsEntityTypesList. */ export interface ProjectsLocationsAgentsEntityTypesListOptions { languageCode?: string; pageSize?: number; pageToken?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsEntityTypesPatch. */ export interface ProjectsLocationsAgentsEntityTypesPatchOptions { languageCode?: string; updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsEntityTypesPatchOptions(data: any): ProjectsLocationsAgentsEntityTypesPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsEntityTypesPatchOptions(data: any): ProjectsLocationsAgentsEntityTypesPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for * Dialogflow#projectsLocationsAgentsEnvironmentsContinuousTestResultsList. */ export interface ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListOptions { pageSize?: number; pageToken?: string; } /** * Additional options for * Dialogflow#projectsLocationsAgentsEnvironmentsDeploymentsList. */ export interface ProjectsLocationsAgentsEnvironmentsDeploymentsListOptions { pageSize?: number; pageToken?: string; } /** * Additional options for * Dialogflow#projectsLocationsAgentsEnvironmentsExperimentsList. */ export interface ProjectsLocationsAgentsEnvironmentsExperimentsListOptions { pageSize?: number; pageToken?: string; } /** * Additional options for * Dialogflow#projectsLocationsAgentsEnvironmentsExperimentsPatch. */ export interface ProjectsLocationsAgentsEnvironmentsExperimentsPatchOptions { updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsEnvironmentsExperimentsPatchOptions(data: any): ProjectsLocationsAgentsEnvironmentsExperimentsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsEnvironmentsExperimentsPatchOptions(data: any): ProjectsLocationsAgentsEnvironmentsExperimentsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for Dialogflow#projectsLocationsAgentsEnvironmentsList. */ export interface ProjectsLocationsAgentsEnvironmentsListOptions { pageSize?: number; pageToken?: string; } /** * Additional options for * Dialogflow#projectsLocationsAgentsEnvironmentsLookupEnvironmentHistory. */ export interface ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryOptions { pageSize?: number; pageToken?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsEnvironmentsPatch. */ export interface ProjectsLocationsAgentsEnvironmentsPatchOptions { updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsEnvironmentsPatchOptions(data: any): ProjectsLocationsAgentsEnvironmentsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsEnvironmentsPatchOptions(data: any): ProjectsLocationsAgentsEnvironmentsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for * Dialogflow#projectsLocationsAgentsEnvironmentsSessionsEntityTypesList. */ export interface ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListOptions { pageSize?: number; pageToken?: string; } /** * Additional options for * Dialogflow#projectsLocationsAgentsEnvironmentsSessionsEntityTypesPatch. */ export interface ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchOptions { updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchOptions(data: any): ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchOptions(data: any): ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for Dialogflow#projectsLocationsAgentsFlowsCreate. */ export interface ProjectsLocationsAgentsFlowsCreateOptions { languageCode?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsFlowsDelete. */ export interface ProjectsLocationsAgentsFlowsDeleteOptions { force?: boolean; } /** * Additional options for Dialogflow#projectsLocationsAgentsFlowsGet. */ export interface ProjectsLocationsAgentsFlowsGetOptions { languageCode?: string; } /** * Additional options for * Dialogflow#projectsLocationsAgentsFlowsGetValidationResult. */ export interface ProjectsLocationsAgentsFlowsGetValidationResultOptions { languageCode?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsFlowsList. */ export interface ProjectsLocationsAgentsFlowsListOptions { languageCode?: string; pageSize?: number; pageToken?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsFlowsPagesCreate. */ export interface ProjectsLocationsAgentsFlowsPagesCreateOptions { languageCode?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsFlowsPagesDelete. */ export interface ProjectsLocationsAgentsFlowsPagesDeleteOptions { force?: boolean; } /** * Additional options for Dialogflow#projectsLocationsAgentsFlowsPagesGet. */ export interface ProjectsLocationsAgentsFlowsPagesGetOptions { languageCode?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsFlowsPagesList. */ export interface ProjectsLocationsAgentsFlowsPagesListOptions { languageCode?: string; pageSize?: number; pageToken?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsFlowsPagesPatch. */ export interface ProjectsLocationsAgentsFlowsPagesPatchOptions { languageCode?: string; updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsFlowsPagesPatchOptions(data: any): ProjectsLocationsAgentsFlowsPagesPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsFlowsPagesPatchOptions(data: any): ProjectsLocationsAgentsFlowsPagesPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for Dialogflow#projectsLocationsAgentsFlowsPatch. */ export interface ProjectsLocationsAgentsFlowsPatchOptions { languageCode?: string; updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsFlowsPatchOptions(data: any): ProjectsLocationsAgentsFlowsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsFlowsPatchOptions(data: any): ProjectsLocationsAgentsFlowsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for * Dialogflow#projectsLocationsAgentsFlowsTransitionRouteGroupsCreate. */ export interface ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateOptions { languageCode?: string; } /** * Additional options for * Dialogflow#projectsLocationsAgentsFlowsTransitionRouteGroupsDelete. */ export interface ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteOptions { force?: boolean; } /** * Additional options for * Dialogflow#projectsLocationsAgentsFlowsTransitionRouteGroupsGet. */ export interface ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetOptions { languageCode?: string; } /** * Additional options for * Dialogflow#projectsLocationsAgentsFlowsTransitionRouteGroupsList. */ export interface ProjectsLocationsAgentsFlowsTransitionRouteGroupsListOptions { languageCode?: string; pageSize?: number; pageToken?: string; } /** * Additional options for * Dialogflow#projectsLocationsAgentsFlowsTransitionRouteGroupsPatch. */ export interface ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchOptions { languageCode?: string; updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchOptions(data: any): ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchOptions(data: any): ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for Dialogflow#projectsLocationsAgentsFlowsVersionsList. */ export interface ProjectsLocationsAgentsFlowsVersionsListOptions { pageSize?: number; pageToken?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsFlowsVersionsPatch. */ export interface ProjectsLocationsAgentsFlowsVersionsPatchOptions { updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsFlowsVersionsPatchOptions(data: any): ProjectsLocationsAgentsFlowsVersionsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsFlowsVersionsPatchOptions(data: any): ProjectsLocationsAgentsFlowsVersionsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for Dialogflow#projectsLocationsAgentsGeneratorsCreate. */ export interface ProjectsLocationsAgentsGeneratorsCreateOptions { languageCode?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsGeneratorsDelete. */ export interface ProjectsLocationsAgentsGeneratorsDeleteOptions { force?: boolean; } /** * Additional options for Dialogflow#projectsLocationsAgentsGeneratorsGet. */ export interface ProjectsLocationsAgentsGeneratorsGetOptions { languageCode?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsGeneratorsList. */ export interface ProjectsLocationsAgentsGeneratorsListOptions { languageCode?: string; pageSize?: number; pageToken?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsGeneratorsPatch. */ export interface ProjectsLocationsAgentsGeneratorsPatchOptions { languageCode?: string; updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsGeneratorsPatchOptions(data: any): ProjectsLocationsAgentsGeneratorsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsGeneratorsPatchOptions(data: any): ProjectsLocationsAgentsGeneratorsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for * Dialogflow#projectsLocationsAgentsGetGenerativeSettings. */ export interface ProjectsLocationsAgentsGetGenerativeSettingsOptions { languageCode?: string; } /** * Additional options for * Dialogflow#projectsLocationsAgentsGetValidationResult. */ export interface ProjectsLocationsAgentsGetValidationResultOptions { languageCode?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsIntentsCreate. */ export interface ProjectsLocationsAgentsIntentsCreateOptions { languageCode?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsIntentsGet. */ export interface ProjectsLocationsAgentsIntentsGetOptions { languageCode?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsIntentsList. */ export interface ProjectsLocationsAgentsIntentsListOptions { intentView?: | "INTENT_VIEW_UNSPECIFIED" | "INTENT_VIEW_PARTIAL" | "INTENT_VIEW_FULL"; languageCode?: string; pageSize?: number; pageToken?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsIntentsPatch. */ export interface ProjectsLocationsAgentsIntentsPatchOptions { languageCode?: string; updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsIntentsPatchOptions(data: any): ProjectsLocationsAgentsIntentsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsIntentsPatchOptions(data: any): ProjectsLocationsAgentsIntentsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for Dialogflow#projectsLocationsAgentsList. */ export interface ProjectsLocationsAgentsListOptions { pageSize?: number; pageToken?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsPatch. */ export interface ProjectsLocationsAgentsPatchOptions { updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsPatchOptions(data: any): ProjectsLocationsAgentsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsPatchOptions(data: any): ProjectsLocationsAgentsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for * Dialogflow#projectsLocationsAgentsPlaybooksExamplesList. */ export interface ProjectsLocationsAgentsPlaybooksExamplesListOptions { languageCode?: string; pageSize?: number; pageToken?: string; } /** * Additional options for * Dialogflow#projectsLocationsAgentsPlaybooksExamplesPatch. */ export interface ProjectsLocationsAgentsPlaybooksExamplesPatchOptions { updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsPlaybooksExamplesPatchOptions(data: any): ProjectsLocationsAgentsPlaybooksExamplesPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsPlaybooksExamplesPatchOptions(data: any): ProjectsLocationsAgentsPlaybooksExamplesPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for Dialogflow#projectsLocationsAgentsPlaybooksList. */ export interface ProjectsLocationsAgentsPlaybooksListOptions { pageSize?: number; pageToken?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsPlaybooksPatch. */ export interface ProjectsLocationsAgentsPlaybooksPatchOptions { updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsPlaybooksPatchOptions(data: any): ProjectsLocationsAgentsPlaybooksPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsPlaybooksPatchOptions(data: any): ProjectsLocationsAgentsPlaybooksPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for * Dialogflow#projectsLocationsAgentsPlaybooksVersionsList. */ export interface ProjectsLocationsAgentsPlaybooksVersionsListOptions { pageSize?: number; pageToken?: string; } /** * Additional options for * Dialogflow#projectsLocationsAgentsSessionsEntityTypesList. */ export interface ProjectsLocationsAgentsSessionsEntityTypesListOptions { pageSize?: number; pageToken?: string; } /** * Additional options for * Dialogflow#projectsLocationsAgentsSessionsEntityTypesPatch. */ export interface ProjectsLocationsAgentsSessionsEntityTypesPatchOptions { updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsSessionsEntityTypesPatchOptions(data: any): ProjectsLocationsAgentsSessionsEntityTypesPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsSessionsEntityTypesPatchOptions(data: any): ProjectsLocationsAgentsSessionsEntityTypesPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for * Dialogflow#projectsLocationsAgentsTestCasesCalculateCoverage. */ export interface ProjectsLocationsAgentsTestCasesCalculateCoverageOptions { type?: | "COVERAGE_TYPE_UNSPECIFIED" | "INTENT" | "PAGE_TRANSITION" | "TRANSITION_ROUTE_GROUP"; } /** * Additional options for Dialogflow#projectsLocationsAgentsTestCasesList. */ export interface ProjectsLocationsAgentsTestCasesListOptions { pageSize?: number; pageToken?: string; view?: | "TEST_CASE_VIEW_UNSPECIFIED" | "BASIC" | "FULL"; } /** * Additional options for Dialogflow#projectsLocationsAgentsTestCasesPatch. */ export interface ProjectsLocationsAgentsTestCasesPatchOptions { updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsTestCasesPatchOptions(data: any): ProjectsLocationsAgentsTestCasesPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsTestCasesPatchOptions(data: any): ProjectsLocationsAgentsTestCasesPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for * Dialogflow#projectsLocationsAgentsTestCasesResultsList. */ export interface ProjectsLocationsAgentsTestCasesResultsListOptions { filter?: string; pageSize?: number; pageToken?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsToolsDelete. */ export interface ProjectsLocationsAgentsToolsDeleteOptions { force?: boolean; } /** * Additional options for Dialogflow#projectsLocationsAgentsToolsList. */ export interface ProjectsLocationsAgentsToolsListOptions { pageSize?: number; pageToken?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsToolsPatch. */ export interface ProjectsLocationsAgentsToolsPatchOptions { updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsToolsPatchOptions(data: any): ProjectsLocationsAgentsToolsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsToolsPatchOptions(data: any): ProjectsLocationsAgentsToolsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for * Dialogflow#projectsLocationsAgentsToolsVersionsDelete. */ export interface ProjectsLocationsAgentsToolsVersionsDeleteOptions { force?: boolean; } /** * Additional options for Dialogflow#projectsLocationsAgentsToolsVersionsList. */ export interface ProjectsLocationsAgentsToolsVersionsListOptions { pageSize?: number; pageToken?: string; } /** * Additional options for * Dialogflow#projectsLocationsAgentsTransitionRouteGroupsCreate. */ export interface ProjectsLocationsAgentsTransitionRouteGroupsCreateOptions { languageCode?: string; } /** * Additional options for * Dialogflow#projectsLocationsAgentsTransitionRouteGroupsDelete. */ export interface ProjectsLocationsAgentsTransitionRouteGroupsDeleteOptions { force?: boolean; } /** * Additional options for * Dialogflow#projectsLocationsAgentsTransitionRouteGroupsGet. */ export interface ProjectsLocationsAgentsTransitionRouteGroupsGetOptions { languageCode?: string; } /** * Additional options for * Dialogflow#projectsLocationsAgentsTransitionRouteGroupsList. */ export interface ProjectsLocationsAgentsTransitionRouteGroupsListOptions { languageCode?: string; pageSize?: number; pageToken?: string; } /** * Additional options for * Dialogflow#projectsLocationsAgentsTransitionRouteGroupsPatch. */ export interface ProjectsLocationsAgentsTransitionRouteGroupsPatchOptions { languageCode?: string; updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsTransitionRouteGroupsPatchOptions(data: any): ProjectsLocationsAgentsTransitionRouteGroupsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsTransitionRouteGroupsPatchOptions(data: any): ProjectsLocationsAgentsTransitionRouteGroupsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for * Dialogflow#projectsLocationsAgentsUpdateGenerativeSettings. */ export interface ProjectsLocationsAgentsUpdateGenerativeSettingsOptions { updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsUpdateGenerativeSettingsOptions(data: any): ProjectsLocationsAgentsUpdateGenerativeSettingsOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsUpdateGenerativeSettingsOptions(data: any): ProjectsLocationsAgentsUpdateGenerativeSettingsOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for Dialogflow#projectsLocationsAgentsWebhooksDelete. */ export interface ProjectsLocationsAgentsWebhooksDeleteOptions { force?: boolean; } /** * Additional options for Dialogflow#projectsLocationsAgentsWebhooksList. */ export interface ProjectsLocationsAgentsWebhooksListOptions { pageSize?: number; pageToken?: string; } /** * Additional options for Dialogflow#projectsLocationsAgentsWebhooksPatch. */ export interface ProjectsLocationsAgentsWebhooksPatchOptions { updateMask?: string /* FieldMask */; } function serializeProjectsLocationsAgentsWebhooksPatchOptions(data: any): ProjectsLocationsAgentsWebhooksPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsAgentsWebhooksPatchOptions(data: any): ProjectsLocationsAgentsWebhooksPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for Dialogflow#projectsLocationsList. */ export interface ProjectsLocationsListOptions { extraLocationTypes?: string; filter?: string; pageSize?: number; pageToken?: string; } /** * Additional options for Dialogflow#projectsLocationsOperationsList. */ export interface ProjectsLocationsOperationsListOptions { filter?: string; pageSize?: number; pageToken?: string; returnPartialSuccess?: boolean; } /** * Additional options for Dialogflow#projectsLocationsSecuritySettingsList. */ export interface ProjectsLocationsSecuritySettingsListOptions { pageSize?: number; pageToken?: string; } /** * Additional options for Dialogflow#projectsLocationsSecuritySettingsPatch. */ export interface ProjectsLocationsSecuritySettingsPatchOptions { updateMask?: string /* FieldMask */; } function serializeProjectsLocationsSecuritySettingsPatchOptions(data: any): ProjectsLocationsSecuritySettingsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } function deserializeProjectsLocationsSecuritySettingsPatchOptions(data: any): ProjectsLocationsSecuritySettingsPatchOptions { return { ...data, updateMask: data["updateMask"] !== undefined ? data["updateMask"] : undefined, }; } /** * Additional options for Dialogflow#projectsOperationsList. */ export interface ProjectsOperationsListOptions { filter?: string; pageSize?: number; pageToken?: string; returnPartialSuccess?: boolean; } function decodeBase64(b64: string): Uint8Array { const binString = atob(b64); const size = binString.length; const bytes = new Uint8Array(size); for (let i = 0; i < size; i++) { bytes[i] = binString.charCodeAt(i); } return bytes; } const base64abc = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"]; /** * CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727 * Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation * @param data */ function encodeBase64(uint8: Uint8Array): string { let result = "", i; const l = uint8.length; for (i = 2; i < l; i += 3) { result += base64abc[uint8[i - 2] >> 2]; result += base64abc[((uint8[i - 2] & 0x03) << 4) | (uint8[i - 1] >> 4)]; result += base64abc[((uint8[i - 1] & 0x0f) << 2) | (uint8[i] >> 6)]; result += base64abc[uint8[i] & 0x3f]; } if (i === l + 1) { // 1 octet yet to write result += base64abc[uint8[i - 2] >> 2]; result += base64abc[(uint8[i - 2] & 0x03) << 4]; result += "=="; } if (i === l) { // 2 octets yet to write result += base64abc[uint8[i - 2] >> 2]; result += base64abc[((uint8[i - 2] & 0x03) << 4) | (uint8[i - 1] >> 4)]; result += base64abc[(uint8[i - 1] & 0x0f) << 2]; result += "="; } return result; }